2014-10-16 04:02 PM
Hi guys,
Sorry for my bad English. I would set up with 9-bit UART. So I want the UART interrupt only when I get a character with 9 bits. If I get the 8-bit character, I do not want to be interrupted. Is it possible? Thanks.2014-10-17 07:43 AM
gonzalez.laurent
Thanks for your reply. But the address mark in STM not working for me because my network is not limited the 16 devices and all the information are encypted in AES256. All the slave must be receive address, validate and start conversation with master the only one who validate address.Unfortunately I have to work around this situation, because in the project, when the master start conversation with a slave, the others slave will not receive anything.The Microchip PIC, I set the ADDEN in the control register of the UART and the interrupt handler will occur only ninth bit is received. It's work fine. I already tested. Thus, I send the address in 9-bit mode, the slave (addressed) switch the uart to 8-bit mode and the master comunicate only the slave addressed, without others slave recognize.Thanks for help guys.2014-10-17 08:31 AM
9-bit USART + RXNE Interrupt + State Machine
This is a five minute exercise which can handle incoming data and handle all framing and reception issues, and have minimal interrupt loading even when it's ignoring someone elses traffic.