Double Interrupt/ Problems Receiving Large Data Buffer | Cypress Semiconductor
Double Interrupt/ Problems Receiving Large Data Buffer
I have posted here before about a project I am working on receiving and transmitting DMX512 (RS485 250khz) data. I have taken some suggestions from this board and tried to improve it, but I am running into an issue efficiently and correctly receiving the data. Please see the attached project.
The problem that I am having is that if I try to set up interrupts for both 'Break' and 'Data Received' the interrupts fire once, but never reset. Any idea why? If I just set the interrupt for 'Data Received' and check for the break, it works, but the data at the beginning is often garbled or ends up in the wrong slot in the buffer.
See the 'OLD ISR' inside the code to see how I used to get the data. It worked fine, but was very slow, and bogged down the interrupt.
Any suggestions for replicating this in a more efficient way.