Answering a Cermetek 1840 DAA
MikeyMustang
Posts: 22
Forum,
I am a newbie and I am trying to something that should be easy but for some reason escapes me. Here is what I have working when the phone rings I have P0 detecting the pulse low from the RI (ring indicator) of the DAA which only goes low DURING the ringing process and latch a relay (p12) to pick up the phone on the first ring...That all works
What I want is to call the phone and answer on the first ring and keep P12 latched for 10-15 minutes and then drop p12 and wait for another low on P0 (remember P0 is only low during the ring process)
here is what works for the first ring and stay latch forever
RI_ VAR IN0
MAIN:
IF RI_ = 0 THEN
HIGH 12
ENDIF
GOTO MAIN
I have tried different timers and pausing but all seem to make the P12 relay pulse? I know this is easy but for some reason it escapes me for now
Thanks for the help
Mike
I am a newbie and I am trying to something that should be easy but for some reason escapes me. Here is what I have working when the phone rings I have P0 detecting the pulse low from the RI (ring indicator) of the DAA which only goes low DURING the ringing process and latch a relay (p12) to pick up the phone on the first ring...That all works
What I want is to call the phone and answer on the first ring and keep P12 latched for 10-15 minutes and then drop p12 and wait for another low on P0 (remember P0 is only low during the ring process)
here is what works for the first ring and stay latch forever
RI_ VAR IN0
MAIN:
IF RI_ = 0 THEN
HIGH 12
ENDIF
GOTO MAIN
I have tried different timers and pausing but all seem to make the P12 relay pulse? I know this is easy but for some reason it escapes me for now
Thanks for the help
Mike
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
·Yea it is kind of overkill using the Basic Stamp for this but, I am going to incorperate DTMF decode at a later date...
I figured out I can "line up" PAUSE 65535 ~ a minute 10 times to get the desired 10·Mins... and this works for 5 mins...UGLY but works.
' {$STAMP BS2e}
' {$PBASIC 2.5}
RI_ VAR IN0
ANSWER:
IF RI_ = 0· THEN CONNECT
GOTO ANSWER
CONNECT:
HIGH 12
PAUSE 65535
PAUSE 65535
PAUSE 65535
PAUSE 65535
PAUSE 65535
LOW 12
GOTO restart
restart:
PAUSE 250
DIRL = %0000
·GOTO answer
Thanks
Mike
·