hello, I want to use nested interrupts in LPC2148. I am doing program in which I have to use nested interrupts of only serial. when any interrupt comes, controller clears interrupt enable bit to mask the other interrupt coming. How to avoid this ?? I want to use serial interrupt in the ISR of serial. Is it possible?? plz help
why do you want to do this? have you considered the consequences in terms of stack usage going haywire...?
I meant to say: possibly going haywire.
Sir, here I am doing connecting multiple LPC2148s by serial mode. here one is master and others are slave.master will decide the slave to talk with. first it will send wake up to all slave (ie I am using 0x00). on receiving this all slaves will wake up because the next data coming from master is slave addrs. on receiving this addrs all slave will check it with their own and only one slave will found match. further communication will be between this slave and master.
so after receiving 0x00 from master all slave will take addrs from master and for this I need nested UART0 interrupt
is it possible??
First - it's Tamir, not "Sir"...
Yes, what you plan to do is possible but you do not need nested interrupts for it. You need to understand how to work with your chip's UART - interrupt driven (preferably) or not, and appropriate hardware. Read the user manual, learn the available samples and get started.
thanks Tamir,
use of nested interrupts was really headache. in that case stack was used and that was making my work slow. so I have scratched that idea. I just wanted to do that to change ISR location. now I am doing it directly without using nested interrupts.
on this thing I understand that instead of going in tedious way one should study more. there is always bypass..