Hello,
I am using RA2L1 MCU and I wanted to invert the UART I/O on P301 and P302 (SCI2), and for that I tried to set the SINV register using,
R_SCI2->SCMR_b.SINV=(uint8_t)1;
I am doing this before initializing UART.
However, I still see the UART signal in same waveform (no inversion). Any suggestions on how to set this register / any additional registers need to be set?
Hi kth,
Thanks for reaching out Renesas Community.
Because when initialize the sci_uart, all the register of sci will be reset, so if you want to change the SINV bit, you can change the default value of SCMR register here:
You can change the 0xF2 to 0xF4, so that the SINV bit will be set:
BR,
NP_Renesas
Thank you for your response!
Does setting the SINV bit of the register only invert the TX data or also the UART TX idle state (which is high). Because I think I can see only the data getting inverted.
If that is the case, is there a way to invert the idle state to low?
Yeah, the idle state cannot be inverted, the only way is to make it work as generic IO and set it as low manually.