• timer0 interrupt does not work with printf statement
    I got several warnings when I compile the following code using TIMER0 interrupt when it overflows. void main(void) { //----------------------------------------// interrupt TMOD = (TMOD & 0xF0)...
  • timer0 interrupt does not work with printf statement
    I got several warnings when I compile the following code using TIMER0 interrupt when it overflows. void main(void) { //----------------------------------------// interrupt TMOD = (TMOD & 0xF0)...
  • Code works after giving a debug statement
    Hi, I have experienced a strange problem. When a particular variable is initailised to a particular value, sometimes it never works. But if a debug statement is put before the initialisation statement...
  • Code works after giving a debug statement
    Hi, I have experienced a strange problem. When a particular variable is initailised to a particular value, sometimes it never works. But if a debug statement is put before the initialisation statement...
  • declaration may not appear after executable statement
    #include<lpc214x.h> void init(void); void delay_ms(int); int main(void) { int i,j,k,A,B,C; IODIR0=0; A=0; B=IOPIN0; C=B^A; unsigned char c[]="I L*** NITC \n"; unsigned char r[]="I L*** EMBEDDED SYSTEMS...