2906 views|5 replies

4

Posts

1

Resources
The OP
 

430f149 interrupt can't enter? [Copy link]

I made a board before, and the same program can work normally on other boards, but this one can't enter the interrupt, I don't know why. void main(void) { WDTCTL = WDTPW + WDTHOLD; //Turn off watchdog// P6DIR |= BIT2;P6OUT |= BIT2; //Turn off level conversion CCTL0 = CCIE; //Enable CCR0 interrupt CCR0 = 16384; //Set period 0.5S TACTL = TASSEL_1 + ID_0 + MC_1; //Select ACLK as the clock source of timer A, up counting mode P4DIR = 0x3E; //Set P1.3, P1.4 port direction to output P4OUT = 0x00; _EINT(); //Enable global interrupt LPM3; //CPU enters LPM3 mode//while(1) // { // } }#pragma vector = TIMERA0_VECTOR __interrupt void Timer_A (void) { }
This post is from Microcontroller MCU

Latest reply

Follow the debug to see where the program stops. ——No response, but the moment of stopping debug is displayed in ISR_TRAP.ASM, then check whether the interrupt vector ID is correct and add the interrupt response function. The key configuration is the following three sentences, confirm them, and you can confirm whether it is OK. CCTL0 = CCIE; //Enable CCR0 interrupt CCR0 = 16384; //Set the period to 0.5S TACTL = TASSEL_1 + ID_0 + MC_1; //Select ACLK as the clock source of timer A, count up mode  Details Published on 2018-10-15 14:38
 

1059

Posts

1

Resources
2
 
Keep while infinite loop
This post is from Microcontroller MCU
 
 

4

Posts

1

Resources
3
 
qwerghf posted on 2018-9-12 14:10 Keep the while dead loop
Even after keeping it, I can't get in,,,
This post is from Microcontroller MCU

Comments

Shut down to low power consumption level 3  Details Published on 2018-9-13 09:10
 
 
 

1059

Posts

1

Resources
4
 
TANGOLA posted on 2018-9-13 09:07 Can't enter even after saving,,,
Turn off and enter low power consumption level 3
This post is from Microcontroller MCU
 
 
 

1

Posts

2

Resources
5
 
I also encountered a similar problem
This post is from Microcontroller MCU
 
 
 

3

Posts

0

Resources
6
 
Follow the debug to see where the program stops. ——No response, but the moment of stopping debug is displayed in ISR_TRAP.ASM, then check whether the interrupt vector ID is correct and add the interrupt response function. The key configuration is the following three sentences, confirm them, and you can confirm whether it is OK. CCTL0 = CCIE; //Enable CCR0 interrupt CCR0 = 16384; //Set the period to 0.5S TACTL = TASSEL_1 + ID_0 + MC_1; //Select ACLK as the clock source of timer A, count up mode
This post is from Microcontroller MCU
 
 
 

Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list