Skip to main content
Visitor II
October 15, 2004
Question

Second uart

  • October 15, 2004
  • 3 replies
  • 904 views
Posted on October 15, 2004 at 04:56

Second uart

    This topic has been closed for replies.

    3 replies

    wdcaiAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:03

    Hi,All!

    Can some SFR about second uart ,such like scon2, be read or written in bit mode? The demo source code provided by ST operates this SFR in BYTE mode!

    Thanks!

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:03

    The second UART in the uPSD33xx devices is bit addressable. The second UART in the uPSD32xx devices is only byte addressable. I am not sure what demo code you are looking at, but it is probably a carryover from the 32xx and was not updated to take advantage of the bit addressability available in the 33xx.

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:03

    Whenever the address of a SFR is divisible by 8, that SFR is bit addressable!