Commodore modem 300 User Manual page 73

Table of Contents

Advertisement

DETECTING TELEPHONE RINGING
To detect whetheryourtelephone is ringing usingaCommodore 128
or 64, use the following statement:
if(peek(56577) and 8) = 0 then print " ringing"
If location 56577 contains a value other than 0, the phone is not
ringing.
To detect whether your telephone is ringing using a VIC 20, enter the
following statement:
if(peek(37136)and8) = 0then print " ringing"
If location 37136 does not contain 0, the phone is not ringing.
PROGRAMMING THE TELEPHONE TO BE
ON OR OFF THE HOOK
To program the phone to be off the hook using a Commodore 128 or
64, enter the following statements in a program:
oh = 56577:hi = 32:lo = 255-32
poke(oh + 2),(peek(oh + 2)or hi)
poke oh,(peek(oh) and lo)
To hang up the phone with a Commodore 128 or 64, enter these
statements in a program:
poke oh,(peek(oh) or hi)
To program the phone to be off the hook using a VIC 20, use these
statements in a program:
oh = 37136:hi = 32:lo = 255-32
poke (oh + 2),(peek(oh + 2)or hi)
poke oh,(peek(oh)and lo)
To hang up the phone with a VIC 20, enter this statement in a
program:
poke oh,(peek(oh) and hi)
Here is the procedure to dial and originate a communication link:
1) Set the answer/originate switch tothe " O" fororiginate
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

1660

Table of Contents