#include<reg51.h>
sbit tgl=P1^1;
unsigned long int i=0;
void main()
{
while(1)
{
i=0;
tgl= 0;
for(i=0;i<100000;i++);
tgl=1;
for(i=0;i<100000;i++);
}
}
When I load the .hex through uc the P1^1 goes on blue and red but when I delete the hex in uc and load it in eprom and ground the EA pin which directs the fetch to eprom and starts from 0x0000 base address nothing happens the P1^1 is red.It doesnt turn blue and even the CE is red I have gien the connections a correct as for as I can see...also I notice this all happens if I give simulate fetch option in uc to default when I give a yes the address lines see to increament continuously and the PSEN pin also blinks still P1^1 is red....
Sorry it took me sometime to get back..i tried pullingup but it didnt work.....please get back and answer this post and help me also where can i get libraries for various ucs that are not present in proteus...
It is working fine. See video inside .rar file. The uc should have a hex file which is different from the hex of eeprom. Put a blank hex file for uC and see.
Can a genius point out the logic contention error in my program,when I try to run it from eeprom.
EA pin does not matter as it should here.If simulate opcode fetch is "no" then it runs well from uc if "yes" it runs from EEPROM.
simple programs like led blink runs good on from eeprom but this program doesnot run...well....the basic logic behind the program is(ignoring the commented lines)...get the input from the adc and display it in the lcd..I dont expect to see sane characters but the lcd does not respond at all...When executed from uc I get the crazy characters its fine....but ut doesnt happen with the eeprom...pleese help...
Logic Contention error occurs if any pin is configured and used as output or if any pin is configured as output and used as input. Post your Proteus file and Code.