Dear all:
I'm write a simply program to test C for NXP. I only open timer 1 to use,Then i set a breakpoint in the interrupt, But the interrupt never be break,I don't why? Can anyone tell me why? //************************************************ void interrupt(void) { if(Timer_bit) { if(Timer_bit) { Timer_bit=0; TimerH=(65536-time1_base)/256; TtimerL=(65536-time1_base)%256;
if(!(--A)) A=10; } } } // void main() { initial(); while(1) { ClearwatchGod(); r_cnt++; } } //
ClearwatchGod
At divine powers involved?
To use any tool effectively, you have to follow its instructions!
The instructions for posting source code on this forum are clearly stated:
www.danlhenry.com/.../keil_code.png
If you missed that one, maybe there are also details you missed in the "instructions" - ie, the Datasheet, user manuals, etc - for your chip & the simulator.
So your first step should be to go back and check carefully in the "instructions".
You might do well to start here: http://www.keil.com/support/man/docs/gsac/ http://www.keil.com/support/man/docs/uv4/uv4_ex_hello.htm http://www.keil.com/support/man/docs/uv4/uv4_examples.htm