Digital IO on Port-D On MC9S08AW32 44-pin

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Digital IO on Port-D On MC9S08AW32 44-pin

2,116 次查看
Wave
Contributor I
Hi, how do i make PortD to digit-output on my mcu (MC9S08AW32 44-pin)?
标签 (1)
0 项奖励
回复
3 回复数

978 次查看
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 项奖励
回复

978 次查看
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 项奖励
回复

978 次查看
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 项奖励
回复