PIC32mx270f256b timing issues unresolved - [Solved]
Posted: Thu Apr 06, 2017 1:50 pm
Hi,
I have installed the latest version of FC and have noticed that delay macro works ok now
. To get the UART to work correctly at a given baud rate the peripheral clock divisor needs to be set to /4. In doing this, having a timed interrupt that is also driven from the peripheral clock source, it will roll over at half the desired frequency.
To avoid having to use fiddle factors, should it be set so that with the peripheral clock divisor set to 1, a given baud rate selected will transmit at that rate and also the rollover frequency of the timed interrupt to occur at the rate set in the properties for the timed interrupt? I have not had time to test other functions such as CAN or PWM etc but would they be affected in the same manner?
Any help in getting this resolved would be hugely appreciated.
Thanks
I have installed the latest version of FC and have noticed that delay macro works ok now
To avoid having to use fiddle factors, should it be set so that with the peripheral clock divisor set to 1, a given baud rate selected will transmit at that rate and also the rollover frequency of the timed interrupt to occur at the rate set in the properties for the timed interrupt? I have not had time to test other functions such as CAN or PWM etc but would they be affected in the same manner?
Any help in getting this resolved would be hugely appreciated.
Thanks