At a glance

XXMIT allows you to communicate to a Hayes compatible modem using the functions listed in the following table:

Modem Functions

Bit in Command Word

Function

Bit 3

Pulse dial modem

Bit 2

Hangup modem

Bit 1

Tone dial modem

Bit 0

Initialize modem

Pulse Dial Modem

Set Bit 3 of the command word to 1 when using a Hayes compatible dial-up modem and you wish to pulse dial a telephone number. You program the phone number into the MsgOut array. The length of the message must be in MsgLen. Pulse dialed numbers are sent to the modem automatically preceded by ATDP and with carriage return <CR> and line feed <LF> appended. Since the dial message is an ASCII string, bit 9 must be ON prior to sending the number to be dialed.

Hangup Modem

Set Bit 2 of the command word to 1 when using a Hayes compatible dial-up modem if you want to hangup the modem. You must use program logic to turn this bit ON. Since the hangup message is an ASCII string, bit 9 must be ON prior to sending the message. Hang up messages are sent to the modem automatically preceded by +++AT and with carriage return <CR> and line feed <LF> appended. XXMIT looks for a correct disconnect response from the modem before it turns ON the Done output signal, noting a successful completion.

Tone Dial Modem

Set Bit 1 of the command word to 1 when using a Hayes compatible dial-up modem and you wish to tone dial a telephone number. You program the phone number into the MsgOut array. The length of the message must be in MsgLen. Tone dialed numbers are sent to the modem automatically preceded by ATDT and with carriage return <CR> and line feed <LF> appended. Since the dial message is an ASCII string, bit 9 must be ON prior to sending the number to be dialed.

Initialize Modem

Set Bit 0 of the command word to 1 when using a Hayes compatible dial-up modem and you want to initialize the modem. You program the initialization message into the MsgOut array and the length of the message into MsgLen. All messages are sent to the modem automatically preceded by AT and with a carriage return <CR> and line feed <LF> appended. Since the initialization message is an ASCII string, bit 9 must be ON prior to sending the message.