Skip to main content
Visitor II
January 11, 2006
Question

uPSD3334D uart 1 not working

  • January 11, 2006
  • 2 replies
  • 705 views
Posted on January 11, 2006 at 09:02

uPSD3334D uart 1 not working

    This topic has been closed for replies.

    2 replies

    icasasAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:09

    Hi,

    I'm trainning unsucessfully to set up the uart1 at 19200 bps using timer1 / 40MHz clk. I've changed all stuff on the mcu getting just a high level output on P1_3. What would be missing in set-up code ??

    uPSD looks like running well for I/O port's working routines.

    P1SFS0 = 0x0C;

    SCON = 0x70;

    SCON1 = 0x70;

    T2CON = 0xC0;

    TMOD = 0x22;

    PCON = 0x40;

    IE = 0x00;

    IEA = 0x12;

    IP = 0x00;

    IPA = 0x00;

    TI1 = 1;

    ET1 = 1;

    PT1 = 1;

    TH1 = 0xF5;

    TCON = 0x40;

    any help would be appreciate,

    thanks in advance,

    ic

    icasasAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:09

    sorry friends, it just works and nice !! the problem was in a secundary file invoking by the compiler changing WDKEY value.

    best regards,

    ic