MC145572AAE Freescale Semiconductor, MC145572AAE Datasheet - Page 159
![no-image](/images/manufacturer_photos/0/2/262/freescale_semiconductor_sml.jpg)
MC145572AAE
Manufacturer Part Number
MC145572AAE
Description
Manufacturer
Freescale Semiconductor
Datasheet
1.MC145572AAE.pdf
(264 pages)
Specifications of MC145572AAE
Number Of Line Interfaces
1
Control Interface
HDLC
Lead Free Status / Rohs Status
Compliant
- Current page: 159 of 264
- Download datasheet (2Mb)
MOTOROLA
9.4
9.5
GCI 2B+D MODE PROGRAMMING EXAMPLE
This example shows how to program the MC145572 when the GCI 2B+D format is selected instead
of IDL 8– and 10–bit modes. See Section 5.4.3 for a description of the GCI 2B+D mode.
Procedure GCI2B+Dinit();
/*
PURPOSE:
INITIAL CONDITIONS:
Timeslot assignment:
When the DCL clock frequency = 4.096MHz there are 8 possible 32–bit GCI timeslots. In this
example we will program the MC145572 to transmit and receive in the 4th GCI timeslot.
*/
BEGIN
NR0(b3) <–
NR0(b3) <–
BR10(b0) <–
OR5
OR6(3)
OR10(b0) <–
END;
BLOCK ERROR RATIO CALCULATION USING
This example shows how to use the MC145572 febe and nebe counters to calculate a BLock Error
Ratio (BLER). The BLER is a useful measure of the channel quality as well as a measure of the
far–end and near–end receiver’s performance. Using a timed interrupt, the procedures BLER_init and
BLER_ISR determine the BLER by calculating the number of far–end and near–end block errors that
occurred in the last 100 superframes. By subtracting the value of the febe/nebe counters read during
an interrupt from the value read in the previous interrupt, the error count over a specific time interval
can easily be determined.
The MC145572 has febe and nebe status bits, as well as febe and nebe counters. BR3 contains
the status bits, BR4 is the febe counter and BR5 is the nebe counter. When a febe or nebe is
detected, the status bit is set and the counters are incremented. Section 7.5 describes the operation
of the febe/nebe bits in detail. The MC145572 adds a febe/nebe counter rollover feature which
was not available in the MC145472. When this feature is enabled, the febe/nebe counters will
rollover from $FF to 00 instead of saturating at $FF. The interrupt period of this example has been
set to 1.2 seconds to guarantee that the febe/nebe counters do not roll over more than once
between interrupts.
Since the superframe period is 12 ms, 100 superframes will be transmitted or received in 1.2 se-
conds. The 1.2–second interrupt can easily be implemented using the timer function on any Motorola
MC68HC05 series microcontroller. For greater accuracy, the BLER generated at each interrupt can
be summed over longer periods of time.
By reading BR4 and BR5 once per second it is easy to modify the above procedure to calculate error
seconds and error free seconds.
Program GCI timeslot in IDL–2 GCI 2B+D data format
MC145572 configured for IDL–2 slave mode
DCL clock rate = 4.096 MHz
<–
<–
1;
0;
1;
03;
1;
0;
Freescale Semiconductor, Inc.
For More Information On This Product,
/* Assert software reset. Only required at power–up initialization.*/
/* De–assert software reset. Only required at power–up initialization.*/
/* Select Init Group Overlay registers.*/
/* Select the 4th GCI timeslot */
/* Enable 4th GCI timeslot */
/* Timeslot initialization over. Deselect overlay registers and return
to normal byte register operation */
Go to: www.freescale.com
MC145572
febe
/
nebe
COUNTERS
9–11
Related parts for MC145572AAE
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MC14-S-10110](/photos/19/14/191482/4674979_tmb.jpg)
Part Number:
Description:
CONTACTOR, 1NO, 110VAC, 14A, DIN RAIL
Manufacturer:
IMO PRECISION CONTROLS
Datasheet:
![MC14-S-10230](/photos/19/14/191482/4674979_tmb.jpg)
Part Number:
Description:
CONTACTOR, 1NO, 230VAC, 14A, DIN RAIL
Manufacturer:
IMO PRECISION CONTROLS
Datasheet:
![MC14-S-1024](/photos/19/14/191482/4674979_tmb.jpg)
Part Number:
Description:
CONTACTOR, 1NO, 24VAC, 14A, DIN RAIL
Manufacturer:
IMO PRECISION CONTROLS
Datasheet:
![MC14560BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC12034AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MPIC2112P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14520BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC12026AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC145152P2](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC68HC11A0P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MCM6726DWJ10](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC44355](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC13282AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14519BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14495P1](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet: