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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/08/00 12:30
Read: times


 
#4969 - RE: 8031 hanging during delay routine
Peter, Steve, Eric, Craig;

Here is my code, note my LED's are on Port A of an 8255 PPI, (addressed thru A8 and A9), Peter unfortunatly I am dealing with a PCB and Port 1 of the 8031 is not accessible. As soon as I remove the call to LONG_DELAY, OR remove the two djnz statements my leds will turn on, otherwise they stay off. I assume that it is returning from the call??? With a scope I was able to see that the LED's were actually turning on and off several thousand times/sec. After rough calculation this seemed to be about correct. I am not sure what memory locations you are talking about, Eric, but my program code is correct. Is there something else that I may be missing here, I should mention that I am using an Intel 80C31BH, does this make any difference? Thanks for all the support thus far.

org 0
ljmp initialize
org 30h
initialize:
mov dptr, #0300h
mov a, #080h
movx @dptr, a
mov a, #00h
test:
call LONG_DELAY
inc a
mov dptr, #0000h
movx @dptr, a
jmp test
LONG_DELAY:
mov r0, #00h
TIME:
mov r1, #00h
WASTE:
djnz r1, WASTE
djnz r0, TIME
ret
end


List of 16 messages in thread
TopicAuthorDate
8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      
RE: 8031 hanging during delay routine            01/01/70 00:00      

Back to Subject List