Digital IO on Port-D On MC9S08AW32 44-pin

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Digital IO on Port-D On MC9S08AW32 44-pin

2,210件の閲覧回数
Wave
Contributor I
Hi, how do i make PortD to digit-output on my mcu (MC9S08AW32 44-pin)?
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,072件の閲覧回数
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 件の賞賛
返信

1,072件の閲覧回数
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 件の賞賛
返信

1,072件の閲覧回数
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 件の賞賛
返信