Hi...I have a doubt with LPC3250 ISR.How to enable an isr in LPC3250? We are doing simply in LPC2468 like below. ex: void uart_isr (void) __irq { //read received byte //clear uart int reg //clear vic int reg } void enable_vic (void) { //set addr of isr fun - uart_isr //set priortiy //VICIntEnable } It is looking very simple in lpc2468. But how to do in LPC3250?
i am confused. what is it? shall i read err data sheet?
No. Your processor has something called "user manual" or "data sheet" which describes how to work with it. IT is available at the website of NXP.
User manual is available. But there is no separate VIC register in lpc3250 (but available in lpc2468). That's y I got confusion. Any idea?
Have a look at the Keil example code.
Typically in:
\Keil\ARM\Boards\Phytec
There's even one there for ISR use.
And read the user manual, chapter 5, titled:
LPC32x0 Interrupt controller
There IS sufficient information there.
So read the Datasheet (and/or "User Manual", or whatever) to find out what registers it does have - and how to use them!
There is no particular reason to assume that, just because one chip has a certain register with a certain name, all chips have to have the same register with the same name!
s. i got it. available in examples.... thank u.