PDA

View Full Version : Answering a Cermetek 1840 DAA



MikeyMustang
03-06-2010, 09:03 AM
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

Franklin
03-07-2010, 12:16 AM
Add a 555 timer chip that will hold the line high for the required 10 minutes. you could use the RI to trip it and save a stamp for something else.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen

MikeyMustang
03-07-2010, 02:07 AM
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



ˇ