Not applicable
Aug 03, 2015
09:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 03, 2015
09:21 PM
hi.
I just use SSC U1C0 of XC2365B in my project.
the receive buffer is somthing wrong in slave mode.
I sent data is 10010011,
but i received 11011011.
It seems if the previous bit is 1, the next bit will be changed to 1.
the code is:
while(!(U1C0_PSR & 0x8000));
U1C0_PSCR |= 0x8000; // clear alternate receive indication flag
ui_TempIn = U1C0_RBUF; // U1C0_SSC_uwGetData();
I change U1C0 in master mode,
the same code, the receive buffer is right.
So what's the problem?
I just use SSC U1C0 of XC2365B in my project.
the receive buffer is somthing wrong in slave mode.
I sent data is 10010011,
but i received 11011011.
It seems if the previous bit is 1, the next bit will be changed to 1.
the code is:
while(!(U1C0_PSR & 0x8000));
U1C0_PSCR |= 0x8000; // clear alternate receive indication flag
ui_TempIn = U1C0_RBUF; // U1C0_SSC_uwGetData();
I change U1C0 in master mode,
the same code, the receive buffer is right.
So what's the problem?
Labels
0 Replies