I am using the UART module which uses:
Code: Select all
#define UART_BIT_TIME ((XS1_TIMER_HZ) / (UART_BIT_RATE))
However, I changed the reference frequency to 500MHz in my XN file, and this does not work (changing back the reference frequency makes it work). How do I change this so it works with a 500 MHz reference frequency? I tried the obvious x5 and /5, but I feel as if I am missing something obvious.
EDIT: So a timer usually increments every 10 ns. With a reference frequency of 500MHz, is it 2 ns?