Hi All

I use SDCC to write program in C for AT89c52 at the first time.
After compiling a simple program like this

------- led.c --------------------
#include <at89x52.h>
void main(void)
        P1 = 0x0F;

c:\sdcc\mycode>sdcc led.c

I get the file led.ihx
Then I use "packihx < led.ihx > led.hex"
to generate Intel Hex file.

I use "EZ Uploader V3.0" to load led.hex to my chip AT89c52 sucessfully.
But the code don't work, All 8 LEDs on my board are off (4 of them must be on).

I also try to load led.ihx to AT89C52 but It still doesn't work.

Please tell me what I need to do to make my code work.