dsPIC33CH Curiosity Dev Board - MCC UART Baud Rate issue
I am dealing for the first time with a dsPIC22CH Curiosity Development Board, equipped with a dsPIC33CH512MP508 (although it is dual-core, I use it only in Master mode as if it was a single core).
For the sake of simplicity, I configured the UART1 module with MCC and used the functions defined in the tool-generated files 'uart1.c' and ' uart1.h'. To test their functioning, I decided to send some dummy strings to CoolTem serial reader
(with which I'm pretty acquainted).
With the following UART settings everything run smoothly and I see correctly the dummy strings printed on the terminal:
• Clock Source: Fosc/2 = 4 MHz (derived from Primary Oscillator)
• Baud Rate: 38400
• Parity: none
• Data Bits: 8
• Stop Bits: 1
But, once I set a clock source higher than 4 MHz, I do not receive the dummy strings correctly anymore, even if the baud rate is kept the same and everything else (except the clock source itself) is kept equal, and I see the typical non-sense random chars as if there is misalignment of Baud Rate settings between TX and RX.
Checks already performed:
• The code automatically generated by MCC is such that the equation for the final baud rate is satisfied (pag.12 of Microchip document DS70000582E UART dsPIC33 Family reference manual).
• The High Baud Rate Select bit BRGH is set to 1 and the desired Baud Rate lies within the allowed range.
• I've tried to derive the UART clock from other sources without obtaining differences.
Am I missing some requirements and/or limitations?
Thanks in advance