Software or Hardware 9 Bit
-
- Posts: 5
- Joined: Fri Apr 15, 2022 7:18 am
Software or Hardware 9 Bit
Hello, I am trying to read 9 bits with esp32 software or hardware, can you show me a way around this? You can share your samples with me.
Thanks.
Thanks.
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: Software or Hardware 9 Bit
9 bits of what, from where?
Re: Software or Hardware 9 Bit
Uart you can use rmt or ulp
-
- Posts: 5
- Joined: Fri Apr 15, 2022 7:18 am
-
- Posts: 5
- Joined: Fri Apr 15, 2022 7:18 am
Re: Software or Hardware 9 Bit
I use two processor. One of them is ESP and the other is a different processor uart and these are connected to each other. The other processor is giving 9 bits of data.
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: Software or Hardware 9 Bit
9 bits of smoke signals?
-
- Posts: 5
- Joined: Fri Apr 15, 2022 7:18 am
Re: Software or Hardware 9 Bit
Incoming data is in the form of 9N1
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: Software or Hardware 9 Bit
Okay, so it's UART then?
In that case, refer to WiFives statement. The UART is incapable of receiving 9-bit data, so you'd have to use some other peripheral.
In that case, refer to WiFives statement. The UART is incapable of receiving 9-bit data, so you'd have to use some other peripheral.
Re: Software or Hardware 9 Bit
I think it is possible to receive or send 9 bytes using the parity bit.
SERIAL_8E1
But is it possible to set the parity bit manually on ESP UART ?
(parity = Mark / Space)
SERIAL_8E1
But is it possible to set the parity bit manually on ESP UART ?
(parity = Mark / Space)
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: Software or Hardware 9 Bit
Well, you'd have to change the parity mode for each byte sent/received... which is fairly inefficient, as the UART normally uses a FIFO, but you'd have to bypass that (change parity, send 1 byte, wait until the fifo is empty etc) on Tx. Not sure how Rx would work.
Who is online
Users browsing this forum: Google [Bot] and 77 guests