定时器中断服务程序不能被执行时怎么回事? 初始化程序部分: M8C_EnableGInt; Timer8_1_EnableInt(); Timer8_1_Start(); boot.asm 中
org 3Ch ;PSoC Block DCB13 Interrupt Vector ljmp _Timer8_1_ISR reti
程序声明:#pragma interrupt_handler Timer8_1_ISR_C 中断服务程序: void Timer8_1_ISR_C() { //Read Port2 and XOR it with 0x01 to change the status from On to Off and vice-versa. time++; PRT0DR|=0x08; } 其中PRT0DR|=0x08; 执行不到?
|