Re: Mismatched receive data using UART on dsPIC33CH512MP505
Thank you all for your hints!
@du000x1: I tested with 600 Baud but same problem.
I set baud rate to 9600 bit/s:
I also measured the baud rate from PC side and got 105 us/bit = 9523 bit/s
I measured baud rate, generated by dsPIC and got 110 us/bit = 9009 bit/s
so it is 5,7% :(
I switched to PLL mode but same result.
"The code shows UART1 is setup to 115200 and it is fully setup with interrupts ... so can I ask are the pins actually connected or if not in use got pullup/downs ( So RX and TX)?"
Same results if I do not use interrupts, lower frequencies. I directly measured the input signal on the IO-Pin and it ist good. No internal Pullups and Pulldowns are activated.
"jesus christ why use MCC?" This is the first time I am using this tool but I used it configurators from outher manufactures and got working results.
I tried your code but the application stucks in the while loop.