mycortex_googlecode_com_svn_trunk_LPC_2148_easyARM_Finals_02.pdf

  • Upload
    crsarin

  • View
    216

  • Download
    0

Embed Size (px)

Citation preview

  • 7/21/2019 mycortex_googlecode_com_svn_trunk_LPC_2148_easyARM_Finals_02.pdf

    1/2

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    #include /* LPC214x definitions */

    #define BUZZER (1

  • 7/21/2019 mycortex_googlecode_com_svn_trunk_LPC_2148_easyARM_Finals_02.pdf

    2/2

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    { BUZZER_OFF; } else { BUZZER_ON; }

    EXTINT |= 0x04; /* ACK to peripheral block */ VICVectAddr = 0x00; /* ACK to VIC Block */}

    int main (void){

    PINSEL0 = 0x80000000; /* Pin select to External INT2 */

    // EXTMODE = 0x04;VICVectCntl13 = (VIC_INT_CH_EN | 16 ); /* Select IRQ Channel and Enable it */

    VICVectAddr13 = (unsigned int)ExtInt2_ISR; /* AssignISR Handler address */

    VICIntSelect &= (~VIC_EXTI2_CH); /* This is optional to ensure the IRQ Mode */ VICIntEnable = VIC_EXTI2_CH; /* Enabel the Interrupt for listening request */

    BUZZER_ON; delay(10000); BUZZER_OFF; while (1)

    { }}

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fmycortex.googlecode.com%2fsvn%2ftrunk%2fLPC_2148_easyARM%2fFinals%2f02_Interrupts%2fmain.c&id=ma-150319142434-592f5494http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf