cancel
Showing results for 
Search instead for 
Did you mean: 

access port B as GPIO

babidesai123
Associate II
Posted on August 08, 2003 at 14:38

access port B as GPIO

3 REPLIES 3
babidesai123
Associate II
Posted on May 17, 2011 at 11:55

Hi,

i want to know the address of port B . Can i use the PB as GPIO pins?

Waiting for reply

Purvi
chris_baragnon
Associate II
Posted on May 17, 2011 at 11:55

hi,

yes you can access to port B in GPIO mode. Configure it in PSDSoft and you have to set correct value in direction and drive registers. You can write and read in port B by the DATA_IN or DATA_OUT register but

you can't access by bit

totof
joseph2399
Associate II
Posted on May 17, 2011 at 11:55

The address for DATAIN_B is: PSD_REG_BASE + 02

DATAOUT_B: PSD_REG_BASE + 05

DIRECTION_B: PSD_REG_BASE + 07

DRIVE_B: PSD_REG_BASE + 09

CONTROL_B: PSD_REG_BASE + 03