| ??? 11/04/00 10:36 Read: times |
#6205 - what's wrong with this |
Hi all,
I'm working on a 'cid manager'. I use motorola MC145447 and i think i did it the way datasheet tells. So far it can receive cid information fine with delay about 5 secs between each call. but it seems going unpredictable if receiving simultanous calls. Any suggestion why it happens? Since the motorola can detect bell-ring, i use that to detect the beginning of cid streams. this is part of my detection software: ON_HOOKED: ;idle condition JB BIT_HOOK, OFF_HOOKED ;or wait for off-hook JMP ON_HOOKED OFF_HOOKED: ;handset is taken off or ringing ? CLR EX0 ;disable time display CLR TR0 CLR ET0 CLR ES CLR TF0 CLR REN CLR RI CLR TI CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS DETECT_RING: JNB BIT_RING, FIRST_RING ;maybe it's ringing CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS CALL DELAY_50MS JB BIT_HOOK, GOING_OFF_HOOKED SETB EX0 JMP ON_HOOKED GOING_OFF_HOOKED: ;or it's off_hooked CALL EMPTY_BUFFER ;fill buffer with space MOV A,#BARIS2 ;outgoing messages on line 2 MOV DPTR, #MSG_OUTGOING CALL DISPMSG MOV A, #BARIS2 CALL LCDI CLR FDIGIT ;detect odd digit first MOV R0, #CLIP_BUFFER JMP DETECT_MORE ;;incoming call detection FIRST_RING: ;if it's the 1st ring coming in CALL INITBGCLIP MOV SCON, #72H CLR RI SETB REN MOV IE, #00H bla.. bla.. |
| Topic | Author | Date |
| what's wrong with this | 01/01/70 00:00 | |
| RE: what's wrong with this | 01/01/70 00:00 | |
wrong algorithm? | 01/01/70 00:00 |



