I have been struggling with lost or corrupted characters using hsersetup, get characters from the scratchpad and hserout. The problem is definitely on input as debug data is wrong. Hsersetup is set for background operation. My program does not use PWM or interrupts but does use pulsout and pause commands. If I run just the serial input routine and feed the results out with hserout it works perfectly. The serial data on hserin line ( B.6-IC pin 12) is clean and correct.
My program uses a lot of basic math and is required to a create pulses to a stepper driver and needs to run at 32MHz. The main program works well but when the whole program is running I miss characters or get garbage on the serial input.
Is there any interaction between pulsout or pause commands and hser background operation? Is there anything that would write to the serial input scratchpad?
Can someone point me the right way.
Thanks
Richard
My program uses a lot of basic math and is required to a create pulses to a stepper driver and needs to run at 32MHz. The main program works well but when the whole program is running I miss characters or get garbage on the serial input.
Is there any interaction between pulsout or pause commands and hser background operation? Is there anything that would write to the serial input scratchpad?
Can someone point me the right way.
Thanks
Richard