It's very possible that changes to frequency will result in a period being calculated that's slightly out from the requested frequency. Similarly, a requested period can result in a frequency that is not an integer. There should probably be a way of printing this information to the UART.
It's very possible that changes to frequency will result in a period being calculated that's slightly out from the requested frequency. Similarly, a requested period can result in a frequency that is not an integer. There should probably be a way of printing this information to the UART.