Skip to main content
Visitor II
August 8, 2003
Question

access port B as GPIO

  • August 8, 2003
  • 3 replies
  • 709 views
Posted on August 08, 2003 at 14:38

access port B as GPIO

    This topic has been closed for replies.

    3 replies

    Visitor II
    May 17, 2011
    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
    Visitor II
    May 17, 2011
    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
    Visitor II
    May 17, 2011
    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