delay function problem
Posted: Sun Apr 30, 2017 2:20 pm
Hello all
Not sure if this should be in the bug report but I am having strange behaviour when using the delay function in conjunction with a UART.
As you can see from the flowcode image a 4mS delay is placed between UART sends but on the logic analyser image, measuring target hardware, it is actually 2mS. This is with a baud rate of 9600. Changing the baud rate to a higher speed makes the delay longer and it gets close to 4mS at 115200.
My clock is defined correctly at 16MHz.
Many thanks
Howard
FC 7.2.0.5
PIC18F46K22
Not sure if this should be in the bug report but I am having strange behaviour when using the delay function in conjunction with a UART.
As you can see from the flowcode image a 4mS delay is placed between UART sends but on the logic analyser image, measuring target hardware, it is actually 2mS. This is with a baud rate of 9600. Changing the baud rate to a higher speed makes the delay longer and it gets close to 4mS at 115200.
My clock is defined correctly at 16MHz.
Many thanks
Howard
FC 7.2.0.5
PIC18F46K22