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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/28/00 07:43
Read: times


 
#1329 - RE: Can anyone checkmy source code
Dear Melvyn

I'd like to help you. But you have to send some more information.

First of all do you have a specific problem that you want me to concentrate on?

Second, I need the circuit diagram since you input and output some signals


On first look there is a fatal error:
DIRECTION: MOV DPTR, #INPORT
MOVX A, @DPTR
ANL A, #03H ; MASK OFF OTHER INPUT BITS
;after that instruction,
CJNE A, #01H, NEXT ; CHECK COUNT = 10
JMP CW
NEXT: CJNE A, #10H, DIRECTION
; it's impossible that ACC contain #10H
;since you've masked upper 6 bits.
;At that step ACC only can get #00H,#01H, #02H and #03H
JMP CCW

Well, I've not checked all your code but if you correct your mistake and send more info I can go one more step.

Best regards

Selim Dilmac
MSc Electronics Engineer


List of 2 messages in thread
TopicAuthorDate
Can anyone checkmy source code            01/01/70 00:00      
RE: Can anyone checkmy source code            01/01/70 00:00      

Back to Subject List