mpc8309 UCC5(HDLC2) RX not working ,UCCS register shows Flags are not being received,its 0x00.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mpc8309 UCC5(HDLC2) RX not working ,UCCS register shows Flags are not being received,its 0x00.

579 Views
mdmuazzam
Contributor III

Hi,all

      I am configuring ucc5(hdlc2) in mpc8309,and my TX is working properly but while receiving, i check uccs register which shows me 0x00 value in it some time also shows 0x01.means Rx line is idle or busy.actually i need it's value ox04 which means currently flasg(0x7E) are being received.

Please let me know if anybody has some idea. :smileyhappy:

Thanks.

Muazzam(india)

0 Kudos
3 Replies

422 Views
alexander_yakov
NXP Employee
NXP Employee

If TX is working, than the first suggestion is to check in loopback mode, i.e. connect TX back to RX and check.

0 Kudos

422 Views
mdmuazzam
Contributor III

hi ,

    When i am using software loopback like using gumr then i am getting line is busy.

my code is

if (1) { 
         gumr = ioread32be(&uhdlc->uf_regs->gumr); 
         gumr |= (UCC_FAST_GUMR_LOOPBACK | UCC_FAST_GUMR_CDS | UCC_FAST_GUMR_TCI);
         gumr &= ~(UCC_FAST_GUMR_CTSP | UCC_FAST_GUMR_RSYN);
         iowrite32be(gumr, &uhdlc->uf_regs->gumr);
    }
so now i got UCCS =0x04 .which means currently 7E flags are being received.
i will attach my source code please look once if possible 
thanks.
0 Kudos

422 Views
mdmuazzam
Contributor III

Hi,

   We have looped back ,TX and RX but still our UCCS shows 0x00 only that means unable to receive 7E flags.

please suggest.

0 Kudos