Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I need to play with parity bit to emulate a 9th bit called wakeup bit. On tx I must set parity to 1 (serial::forced1) to the first byte and parity to 0 (serial::forced0) for the remaining bytes.
ps1.format(8,Serial::Forced1,1);
ps1.putc(*s);
wait_ms(1);
ps1.format(8,Serial::Forced0,1);
for(i=1; i<len; i++){
s++;
ps1.putc(*s);
}
thre is a better way to do this? can i avoid waiting 1ms to switch parity? in ansi c I used to write directly to UART registers with outb sentence of, I thinh, io.h