beautypg.com

Receive boc, Eceive, 3 receive boc – Rainbow Electronics DS26504 User Manual

Page 56

background image

DS26504 T1/E1/J1/64KCC BITS Element

56 of 128

11.3 Receive BOC

The receive BOC function is enabled by setting BOCC.4 = 1. The RFDL register will now operate as the
receive BOC message and information register. The lower six bits of the RFDL register (BOC message
bits) are preset to all ones. When the BOC bits change state, the BOC change of state indicator, SR3.0,
alerts the host. The host then reads the RFDL register to get the BOC message. A change of state occurs
when either a new BOC code has been present for time determined by the receive BOC filter bits, RBF0
and RBF1, in the BOCC register.

To receive a BOC, use the following:

1) Set integration time via BOCC.1 and BOCC.2.
2) Enable the receive BOC function (BOCC.4 = 1).
3) Enable interrupt (IMR3.0 = 1).
4) Wait for interrupt to occur.
5) Read the RFDL register.
6) The lower six bits of the RFDL register is the message.