I you already have configured your UART mode, you just have to take care of 3 things in order to use the match address function:
- On the 45.3.11 UART Control Register 4 (UARTx_C4) enable the MAEN1 or MAEN1, depending on which one you want to use.
- Set the address that you want to use for comparison on 45.3.9 UART Match Address Registers 1 (UARTx_MA1) or 45.3.10 UART Match Address Registers 2 (UARTx_MA2).
- Make sure the most significant bit of data received is set, this in order to ensure comparison will be done.
Please review your code and check if you have considered these points, and let me know if this is useful or not.
Have a nice day,
Perla Moncada
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------