2004-02-02 08:15 AM
2011-05-17 02:58 AM
I'm having some problems to configure PA to be a Input, I make a simple code as folow:
main{ PSD8xx_reg.VM |= 0x80; PSD8xx_reg.DIRECTION_A = 0x00; PSD8xx_reg.DIRECTION_B = 0x00; While(1){ printfLCD(''PA = %x \n'', PSD8xx_reg.DATAIN_A); printfLCD(''PB = %x \n'', PSD8xx_reg.DATAIN_B); } } I don't have problems with PortB, just with Port A. Does I have to make somethink special in the port A ?2011-05-17 02:58 AM
If you want your Port A to behave the same way as your Port B which is in MCU I/O mode, then do not set bit 7 of the VM register, since setting this bit will put your Port A to Peripherial I/O mode.