??? 04/24/04 09:11 Read: times |
#69103 - Keil Halt - Primer Responding to: ???'s previous message |
I wrote simple demostration program.
When I start GO debug function, debbuger stops ! Why? Please advice ! Program: #include "defs.h" //BEGIN,END,TRUE,FALSE... #include "89C51RD2.h" //SFR void IE0_Irq(); //IE0 interrupt proc bit bdata IsIE0 = FALSE; /* Ini Program IE0 interrupt on 200mS signal void HP(void) { PORT3 |= 0x04;//H swatch(10); while (1) { PORT3 &= ~0x04;//H->L = IE0 interrupt swatch(0.1); // PORT3 |= 0x04; //H swatch(0.1); // }//while }//proc */ void main () using 0 BEGIN //[ while (TRUE){ //After GO stops here if (IsIE0) { //Brekpoint : I'm waiting to stop on //this line. (It happens after few GO!) IsIE0 = FALSE; } }//Konec while TRUE END //] void IE0_Irq() interrupt IE0_VECTOR using 1 BEGIN //[ IsIE0 = TRUE; END //] Iztok |
Topic | Author | Date |
Keil Halt | 01/01/70 00:00 | |
Use Assembler. | 01/01/70 00:00 | |
RE: Keil Halt | 01/01/70 00:00 | |
RE: Keil C51 uses DJNZ | 01/01/70 00:00 | |
RE: Keil C51 uses DJNZ | 01/01/70 00:00 | |
RE: Keil C51 uses DJNZ | 01/01/70 00:00 | |
Optimise your C | 01/01/70 00:00 | |
RE: DJNZ | 01/01/70 00:00 | |
RTFM? | 01/01/70 00:00 | |
RE: RTFM? | 01/01/70 00:00 | |
RE: RTFM? | 01/01/70 00:00 | |
RE: RTFM? | 01/01/70 00:00 | |
RE: RTFM? | 01/01/70 00:00 | |
RE: RTFM? | 01/01/70 00:00 | |
Keil Halt - Primer | 01/01/70 00:00 | |
RE: Keil Halt - Primer | 01/01/70 00:00 | |
This way lies disaster!!![]() | 01/01/70 00:00 | |
RE: Keil Halt | 01/01/70 00:00 |