hello, iam using mcxa153 mcu in this mcu what is the alternate of
(BRG; /**< Baud Rate Generator register. 16-bit integer baud rate divisor value)
this is not there in mcxa153 mcu how i can implement BRG?
Hello @syedhashmiraza
In MCXA153, the division rate for the baud rate generator register is SBR, as described in 39.6.6 Baud Rate (BAUD). Please note that there may be a difference between SBR and BRG. In MCXA153, the baud rate is calculated as baud clock ÷ ((OSR + 1) × SBR). There is no need to add 1 to SBR. For details, please refer to the User Manual (UM).
Hope it helps you.
BR
Alice
hello, how can i write in this method?
Hello @syedhashmiraza
For MCXA153, the formula for the Uart baud rate is as follows:
baud rate = baud clock ÷ ((OSR + 1) × SBR)
I don't know the meaning about "CARD_CLK_DIV * etu" in your formula.
BR
Alice