im doing a small project. Im a newbie. Ive done a program to toggle a bit with time delay. When i select 89S52 controller it works fine. But when i select 89C2051 it is only working in debugging mode and not with the hardware. In debugging mode when i look at the pheripherals only the port bits are getting enabled and disabled with the time delay and not the pin bits...
We need schematic and code!!! The only differences are ports... The 2051 doesn't have port 2 or port 0, so if you are toggling one of these bit it won't work!!
I use ISIS but it is mega expensive.... MCU 8051 IDE is free but you need to compile it??? Or you can pay a small charge for the compiled version on windows.. Freewap is free so compilation shouldn't be too hard.
Hi
The 89c2051 device has only 2048 bytes of code memory and it has compiler limitation. The LJMP & LCALL will not possible here because the call functions are 16bits addressable call or jump ahy where in the 64K block.
for 2051 device you must use AJMP ACALL function they are 13 bits addressable i.e., jump 0r call with in the 2K block so you have to do
in Keil compiler open new project and select 89c2051 as target device, right click 'Taget1 foleder' option for target in the 'device target tab' popup 'code ROM size' to 'small programme 2K or less' and select oK button then compile it will be OK see the attachments its works fine