CART
  • Cart is empty.

    ItemQuantityPrice

    Total: $0

SDCC 8051 Development System Support & Frequently Asked Questions


[1] How can I set or reset port bits ?

[2] How do I get the SDCC environment to work with the online debugger?


[1] How can I set or reset port bits ?

To clear Port 1.1 (P1.1) you use P1_1 = 0

To set Port 1.1 (P1.1), you use P1_1 = 1


[2] How do I get the SDCC environment to work with the online debugger?

The debugger uses a 2K kernel that occupies the first 2K of 8051 code memory. So to make the debugger work, you can relocate your program to address 2048 ( 0x800 hex ) using:

--code-loc 0x800
on linker command line under Project->Settings->Linker.