beautypg.com

Idle code programming examples, Rogramming, Xamples – Rainbow Electronics DS21458 User Manual

Page 109: 1 idle code programming examples

background image

DS21455/DS21458 Quad T1/E1/J1 Transceivers

109 of 270

18.1 Idle Code Programming Examples


The following example sets transmit channel 3 idle code to 7Eh:


Write IAAR = 02h

;select channel 3 in the array

Write PCICR = 7Eh

;set idle code to 7Eh


The following example sets transmit channels 3, 4, 5, and 6 idle code to 7Eh and enables transmission of
idle codes for those channels

:


Write IAAR = 02h

;select channel 3 in the array

Write PCICR = 7Eh

;set channel 3 idle code to 7Eh

Write PCICR = 7Eh

;set channel 4 idle code to 7Eh

Write PCICR = 7Eh

;set channel 5 idle code to 7Eh

Write PCICR = 7Eh

;set channel 6 idle code to 7Eh

Write TCICE1 = 3Ch

;enable transmission of idle codes for channels 3, 4, 5, and 6


The following example sets transmit channels 3, 4, 5, and 6 idle code to 7Eh, EEh, FFh, and 7Eh
respectively:

Write IAAR = 02h
Write PCICR = 7Eh
Write PCICR = EEh
Write PCICR = FFh
Write PCICR = 7Eh

The following example sets all transmit idle codes to 7Eh:


Write IAAR = 40h
Write PCICR = 7Eh

The following example sets all receive and transmit idle codes to 7Eh and enables idle code substitution
in all E1 transmit and receive channels:

Write IAAR = C0h

;enable block write to all transmit and receive positions in the array

Write PCICR = 7Eh

;7Eh is idle code

Write TCICE1 = FEh ;enable idle code substitution for transmit channels 2 through 8

;Although an idle code was programmed for channel 1 by the block write ;function above,
enabling it for channel 1 would step on the frame ;alignment, alarms, and Sa bits

Write TCICE2 = FFh ;enable idle code substitution for transmit channels 9 through 16
Write TCICE3 = FEh ;enable idle code substitution for transmit channels 18 through 24

;Although an idle code was programmed for channel 17 by the block write ;function above,
enabling it for channel 17 would step on the CAS frame ;alignment, and signaling information

Write TCICE4 = FFh ;enable idle code substitution for transmit channels 25 through 32
Write RCICE1 = FEh ;enable idle code substitution for receive channels 2 through 8
Write RCICE2 = FFh ;enable idle code substitution for receive channels 9 through 16
Write RCICE3 = FEh ;enable idle code substitution for receive channels 18 through 24
Write RCICE4 = FFh ;enable idle code substitution for receive channels 25 through 32