EUSART MODULE PIC16LF1705 probleme
I have a probleme with eusart module of PI16LF1705.
I want a synchronous communication with Start and Stop bit at 38.4kbauds with 8 data bits.
Here is my configuration:
BAUD1CON = 0x08;//ABDOVF no_overflow; SCKP async_noninverted_sync_fallingedge; RCIDL idle; BRG16 16bit_generator; WUE disabled; ABDEN disabled;
RC1STA = 0x80;// SPEN enabled; RX9 8-bit; CREN disabled; ADDEN disabled; SREN disabled;
TX1STA = 0x24;// TX9 8-bit; TX9D 0; SENDB sync_break_complete; TXEN enabled; SYNC asynchronous; BRGH hi_speed; CSRC slave;
SP1BRGL = 0x67;// Baudrate parameter
SP1BRGH = 0x00;// Baudrate parameter
Attached is the oscilloscope plot. I send 0xAA in a loop and I see 0xAB with the scope. The bit 1 is always at 1.
Does anyone know the issue ?