This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem LPC2148 VIC IRQ request

For example, the following two lines assign slot 0 to SPI0 IRQ interrupt request(s) and slot
1 to TIMER0 IRQ interrupt request(s):
VICVectCntl0 = 0x20 | 10;
VICVectCntl1 = 0x20 | 4;

HOW TO GET VALUE OF VIC CHANNEL(10,4)?CAN YOU EXPLAIN ?

  • How to get _what_ value?

    Have you checked the user manual for the processor? Specifically the registers for the VIC? You can enable, and poll, interrupt state for all channels.

  • TIMER0 Match 0 - 3 (MR0, MR1, MR2, MR3) 4 0x0000 0010 Capture 0 - 3 (CR0, CR1, CR2, CR3)

    sir i am also confused. i just want to ask that when we use above code then according to manual slot 1 assign to TIMER 0 . HOW ????????

    for example according to second line (Connection of interrupt sources to the Vectored Interrupt Controller (VIC)) VIC CHANNEL # IS 4 AND HEX MASK IS 0X00000010
    HOW WE GET THESE TWO VALUES FROM SINGLE CODE VICVectCntl1 = 0x20 | 4;???????????