• Compiling only the code under IF part in C
    Hi All, Till now I have written code in assembly language for 8051 controller. Now I would like to write code in C. Here I have a problem. I will explain it clearly. When I write code in assembly...
  • Compiling only the code under IF part in C
    Hi All, Till now I have written code in assembly language for 8051 controller. Now I would like to write code in C. Here I have a problem. I will explain it clearly. When I write code in assembly...
  • why these codes can't work?
    I want to get a 1000HZ PWM. @15MHz VPB Clock codes like this void ini_pwm() { PINSEL0 =0x02<<14; /* Enable P0.7 as PWM output */ PWMPR=0x00; PWMMCR=0x02; PWMPCR=0x0400; PWMMR0=0x16E360; PWMMR2...
  • why these codes can't work?
    I want to get a 1000HZ PWM. @15MHz VPB Clock codes like this void ini_pwm() { PINSEL0 =0x02<<14; /* Enable P0.7 as PWM output */ PWMPR=0x00; PWMMCR=0x02; PWMPCR=0x0400; PWMMR0=0x16E360; PWMMR2...
  • code location (part c8051f120.h)
    I'm trying to use the updater_F02x.c file and project to load my firmware and reset to run it. But the part I'm using is c8051f120.h. I understand the 02 code should work with the 120. I understand...