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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/21/05 14:56
Read: times


 
#88066 - a bit of advise
Responding to: ???'s previous message
Ro said:
0 is inputted from the mt8870 as 0101 (which is bin for 10) How will I edit my code(posted below) so it will be recognised as a zero.


   ORG 0013h
ISR:
   push PSW
   PUSH ACC
   CJNE R0,#06h,ISR_X1   
ISR_X1:
   jnc  ISR_Exit       ;buffer full - accept no more DTMF codes
   inc  R0
   mov  A,P3
   cjne A,#0101,ISR_X2 ;the DTMF value for 0 - I doubt it is, but Ro said so...
   clr  A
ISR_X2:
   mov  @R0,A
ISR_Exit:
   pop  acc
   pop  psw
   reti


List of 7 messages in thread
TopicAuthorDate
More help please.            01/01/70 00:00      
   Advice !!!!            01/01/70 00:00      
      lookup table ?            01/01/70 00:00      
   a bit of advise            01/01/70 00:00      
      thanks            01/01/70 00:00      
   new binary codes?            01/01/70 00:00      
   second bit of help :-)            01/01/70 00:00      

Back to Subject List