ameriq
Junior Member level 3
Hi, I am using proteus 7.4 and just beginning ARM. Here is my basic circuit. In properties i have set the clock freq to 12MHz.
I just want to blink an LED, at present just to set P0.7 high. But is not getting high, instead it stays in indiffterent state.
The code written in keil uvision 4 shows ok in debugger.
I just want to blink an LED, at present just to set P0.7 high. But is not getting high, instead it stays in indiffterent state.
The code written in keil uvision 4 shows ok in debugger.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #include <LPC213X.H> void delay(int); int main(void) { IO0DIR = 0x00000080; while(1) { IO0SET=0x00000080; } return 0; } void delay(int a) { unsigned int i; for(i=0;i<=a;i++); //return 0; }
Last edited by a moderator: