Other Parts Discussed in Thread: TM4C123GH6PM
Hi,
I'm having some issues while calculating some specific delays. I want 250us, 60us and 120us delays and I'm using a formula I found in another thread:
uint32_t TS_OSC=(250*10e-6)/((1/80000000)*3);
uint32_t TS_FS=(60*10e-6)/((1/80000000)*3);
uint32_t TS_TR=(120*10e-6)/((1/80000000)*3);
and my SysCtlClockSet line is:
SysCtlClockSet (SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);
Furthermore, I'm having a warning related to the values of TS_OSC, TS_FS and TS_TR:
#224-D floating-point operation result is out of range main.c
I wish to know if my calculations are OK and how to avoid the warning.
PS: I'm using TM4C123GH6PM.
Thanks in advance,
Alberto