| ??? 11/08/00 06:36 Read: times |
#6308 - RE: Caller Id on 8052 weird incident |
.include c:w923icecaid2.sfr
;::::::::::::::::::::::::::::::::::::::::::::::::: org 00h ljmp Start org 03h reti org 13h reti org 1bh reti org 23h reti org 2bh reti org 3bh reti org 43h reti org 4bh reti org 53h ljmp CidInterrupt org 5bh reti org 63h reti org 6bh reti ;-------------------------------------------------- org 90h CidInterrupt: push acc push psw call ChkCidInt anl exif,#fbh mov cidfg,#00h pop psw pop acc reti ;-------------------------------------------------- Start: mov sp,#c0h mov a,#00h call CidInit clr ediv clr diva jmp Main CidInit: setb ea mov cidfg,#00h ;mov cidpcr,#00h mov cidpcr,#10h mov exif,#00h setb ecid ret Main: nop jmp Main ;--------------------------------------------------- ChkCidInt: ;vardef: CasEnable equ 00010010b FskEnable equ 00010100b mov a,cidfg jnb a.0,c1 ljmp CidRing c1: jnb a.1,c2 ljmp CidAlgo c2: jnb a.2,ChkCidIntEnd ljmp CidFsk CidRing: nop orl cidpcr,#CasEnable ljmp ChkCidIntEnd CidAlgo: nop orl cidpcr,#FskEnable ljmp ChkCidIntEnd CidFsk: nop ljmp ChkCidIntEnd ChkCidIntEnd: ret ;______________________________ i wrote this simple callerid routine. to my understanding, if there is incoming ring(line reversal-BT specs) the program should stop at ChkCidInt if i put a break there. the problem is when i let it free run, the program won't stop at chkCidInt. but when i stop the program and then run it again from where it left off. the program only then would jmp to ChkCidInt even though the cid data sending is well over. do you know what's wrong w/ my settings? |
| Topic | Author | Date |
| Caller Id on 8052 | 01/01/70 00:00 | |
| RE: Caller Id on 8052 | 01/01/70 00:00 | |
| RE: Caller Id on 8052 | 01/01/70 00:00 | |
| RE: Caller Id on 8052 weird incident | 01/01/70 00:00 | |
RE: Caller Id on 8052 | 01/01/70 00:00 |



