PDA

View Full Version : Port A Question


cssinc
08-28-00, 06:16 PM
I have the NMIY-0020 board and am trying to turn on and off the 8 data pins for port A using the following code:<p>pokeb (REG_BASE+DDRA, 0xFF);<br>while (1)<br>{<br> pokeb (REG_BASE+PORTA, 0x00);<br> delay (1000);<br> pokeb (REG_BASE+PORTA, 0xFF);<br> delay (1000);<br>}<p>PA4-6 do turn on and off, but the other pins do not. Anything else I need to do to get access to the other 5 channels?<p>----------<br>Thanks<br>Oliver

nmitech
08-29-00, 12:53 PM
PortA bit 0,1,2 are input only. Bit 4,5,6 are out put only. Bit 3, 7 are bidirectional.<p>For more info on PORT PIN ASSIGNMENT, please download a Technical data book from motorola. FYI, Here is the link,<br>http://www.mot-sps.com/mcu/documentation/pdf/erg.pdf