Hi,
I am trying to use Serial communication to receive data and PWM to generate 1KHz sine wave on P0.0, both things are interrupt based, both are working as an individual project, however when I integrate them in a single project, LPC2148 device hangs itself,
Below is detailed description what I have tried:
1. Serial communication: I have downloaded Interrupt based UART ring buffer example for LPC2100 from Keil sample codes. UART1, baud rate is 9600 and I have tested that serial communication works very well.
2. 1kHz sine wave generation using PWM: I have followed tutorial from this webpage www.ocfreaks.com/.../ it is generating 1kHz waveform.
I have to receive some data on serial port and send that on PWM pin by modulation.
So after integration I think that problem is with interrupts. If I comment serial communication part PWM works fine, when PWM is commented serial works fine, but no success with simultaneous usage. PWM interrupt is higher priority than serial communication.
Could this problem be because of interrupts? interrupts handling or an ISR is corrupting other ISR data?
Any help in this regard is highly appreciated. I have attached project as zip file here www.filehosting.org/.../Serial and PWM.zip
Thanks