Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/02/03 13:21
Read: times


 
#35406 - RE: P89C557E4
How to make sure the code is running?
comment out all your code except:

assembler:
org 0
jump main

C
main
{
}

Then insert:
assembler
Main: clr a
loop: mov p1,a
cpl a
sjmp loop

C
while (1}
{
P1 = 0
p1 = 1
}

run it and put a scope on a p1 pin.


EA is connected to /PSEN by a 3k3 resistor, and seems to be +5V
EW is +5V (active low, thus disabled)


It Is NOT EA it is !EA, and thus it must be low to enable external program fetch. Connecting it to !PSEN is one of these "why do it the right way or the wrong way, I'll do it my way". Depending on the derivative (and possibly the revision) !PSEN may and may not be generated when !EA is high (for some derivatives maybe high during reset is enough)

!PSEN should pulse if the chip is running, put a scope on.

Erik


List of 15 messages in thread
TopicAuthorDate
P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      
RE: P89C557E4            01/01/70 00:00      

Back to Subject List