• the problem read S0BUF to A ,use 89LPC952
    when i use the 89LPC952 serial port 0,the below interrupt response program is work unnormal. if ( S0BUF == '#'){ s0_input_flag = 1; P2 |= 0x08; S0_in_char_n = 0; RI_0 = 0; goto out1; } but when...
  • remainer of division
    C has one shortcoming that keeps bothering me. When converting a number from binary to decimal, we typically do something like : int n,d; for (i=0; i<5; ++i) { d=n%10; n/=10; display_area...
  • Calculate free remaining stack space
    Hi, I would like to calculate the free remaining stack space during run time. I tried to access the r13 register with: LPSTR pcSP; { register volatile int mySP __asm("sp"); pcSP= (LPSTR)mySP;...
  • getting C129 on empty file
    I have two files fsm_right.c and fsm_left.c in my main program, before any other header files, I have this #define FSM 1 #ifdef FSM #ifdef FMSLEFT // note: currently undefined include "fsm_left...
  • Empty Device Database List
    I recently upgraded to the free version of uV4, and was having problems with one of my boards, so I decided to make a new project and try to isolate the problem. When I go to Project->Select Device...