Digital IO on Port-D On MC9S08AW32 44-pin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Digital IO on Port-D On MC9S08AW32 44-pin

2,155 Views
Wave
Contributor I
Hi, how do i make PortD to digit-output on my mcu (MC9S08AW32 44-pin)?
Labels (1)
0 Kudos
Reply
3 Replies

1,017 Views
UcTechnoGeek
Contributor II
why not try Processor Expert in Codewarrior?
 
It is easy to use and graphical, so all you have to do is tell it what you want the pin to do.  It will even create the "driver" API for you.
 
examples and help files come with CW.
 
uCTechnoGeek
0 Kudos
Reply

1,017 Views
bigmac
Specialist III
Hello,
 
Each port has an associated data direction register to control whether each pin for the port is an input or output.  For Port D this register is named PTDDD, at address $0007.  When a pin requires to be an output, the corresponding bit in PTDDD is set to logic 1.
 
If you have not already done so, I might suggest you download the data sheet for the MC9S08AW60, which also includes the 'AW32 device, from the Freescale web site.
 
Regards,
Mac
 
0 Kudos
Reply

1,017 Views
quimey
Contributor I
can you sen my a file in C whit the code for turn on a led sorry I are begining to program a hc08db microprosessor
bye
0 Kudos
Reply