beautypg.com

3 scripts, Scripts – Maxim Integrated 73M1966B User Manual

Page 16

background image

73M1866B/73M1966B GUI User Guide

UG_1x66B_002

16

Rev. 1.1

3 Scripts

If you have a configuration that will be used again later, the configuration can be saved by simple saving
the current configuration by selecting “Save As Script” from the “File” drop-down menu. This will save
ALL the register status information. Once the file has been saved, it can be edited so that only the
registers you are interested in changing are contained in the file. The “Save As Script” function will save
everything including all the read only registers.

Scripts can be used to set up any static state you wish, but are limited to just setting the registers. There
is not a provision to do delays between the sequences of register settings. You cannot, for instance,
pulse dial with a script. Usually this should not be a significant limitation since normally only one static
configuration is used at a time. To load a saved configuration, select the button under the Reset radio
button or Load Script from the File menu and select the file that you want to load.

The CD contains sample scripts that can be used to quickly configure the board for specific purposes.
This is a listing of the “setup-wg-init_ofh.tsf” file. Everything necessary for operation is included in this
script.

' 73M1966B Test Script File - setup-wg-init _ofh.tsf
' This script initializes the the 1966 registers
' after a hardware reset. It selects time slot 0
' operation. Make sure hardware reset is performed
' first! The 1966 will go off hook when executed.
'
' Script Format (All Values in Hex)
' Write Register: W,Mode,BRCT,CID,Address,Data
' Read Register: R,Mode,CID,Address,Data
' Mode: 0=8-Bit, 1=16-Bit
' BRCT: Only used in Write
' CID, Address, Data: Hex Value
'

GPIO5-7 inputs set high

W,1,0,0,3,E0
'

GPIO5-7 =receivers

W,1,0,0,4,E4
'

Enable detectors, polling ID

W,1,0,0,5,1B
'

Enable line side device

W,1,0,0,F,80
'

Enable OFH, DC, AC, FE, ENNOM

W,1,0,0,12,E5
'

Set DCIV=10

W,1,0,0,13,80
'

Set DAA=01, RXG=10

W,1,0,0,14,22
'

Enable THEN

W,1,0,0,15,08
'

Enable TXEN, RXEN, ATEN

W,1,0,0,16,D0
'

Set DX polarity, timeslot 0

W,1,0,0,20,9F
'

Set DR polarity, timeslot 0

W,1,0,0,21,1F
'

Set clock slot for timeslot 0

W,1,0,0,22,3F
'

Enable PCM

W,1,0,0,23,80




This manual is related to the following products: