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)
If TX is working, than the first suggestion is to check in loopback mode, i.e. connect TX back to RX and check.
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.
Hi,
We have looped back ,TX and RX but still our UCCS shows 0x00 only that means unable to receive 7E flags.
please suggest.