Skip to main content
Visitor II
July 18, 2003
Question

Port B in MCU I/O mode bit access !!

  • July 18, 2003
  • 4 replies
  • 917 views
Posted on July 18, 2003 at 06:20

Port B in MCU I/O mode bit access !!

    This topic has been closed for replies.

    4 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 11:55

    Hi,

    I want to access to PB0 but it doesn't work. Maybe I have to change upsd3200.h but i'm not sure.

    I don't know how declared this pin in my soft.

    somebody can help me, please ?

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

    Hi,

    Have you set the Port direction register?

    Also, have you correctly set the PSD register address?

    Simon
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 11:55

    Hello,

    Please see the attached code fragment I wrote to toggle PB0 pin. PB0 is connected to LED2 on the DK3200 eval board. You can just insert the attached code segment to the Main {} loop of the design example 3, dk3200_dsn_3, and complile and download it to a DK3200 board, then watch LED2 blink when Set or Clear PB.0 cmd is issued.
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 11:55

    hi,

    thanks a lot for your answers.

    If i can help it will be a pleasure.

    totof