MC145572PB Freescale Semiconductor, MC145572PB Datasheet - Page 160

no-image

MC145572PB

Manufacturer Part Number
MC145572PB
Description
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of MC145572PB

Number Of Line Interfaces
1
Control Interface
HDLC
Lead Free Status / Rohs Status
Not Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC145572PB
Manufacturer:
FREESCAL
Quantity:
4 000
Part Number:
MC145572PB
Manufacturer:
MOTOLOLA
Quantity:
885
Part Number:
MC145572PB
Manufacturer:
FREESCALE
Quantity:
896
Part Number:
MC145572PB
Manufacturer:
ST
Quantity:
550
Part Number:
MC145572PB
Manufacturer:
TI
Quantity:
8
Part Number:
MC145572PB
Manufacturer:
FREESCALE
Quantity:
896
Part Number:
MC145572PB
Manufacturer:
MOT
Quantity:
1 000
Part Number:
MC145572PB
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
9–12
Procedure BLER_init
/*
PURPOSE: BLER_init initializes the febe/nebe counters, enables febe/nebe rollover, and en-
ables the 1.2 second interrupt. Initialization of the febe/nebe registers should be done
upon activation as shown in the NT and TE activation examples previously mentioned in this
section.
*/
BEGIN
END
Procedure BLER_ISR
/*
PURPOSE: BLER_ISR handles the 1.2 second timer interrupt. It calculates the current far end
and near end block error rates and stores them in the memory locations: FE_BLER and
NE_BLER. The febe/nebe values from the last interrupt are stored in the memory locations:
last_febe and last_nebe. These memory locations should be initialized prior to enabling the
interrupt. If the result of subtracting the last febe/nebe from the current febe/nebe is
negative then the result is adjusted module 256.
OUTPUT:
FE_BLER
NE_BLER
last_febe
last_nebe
*/
BEGIN
END
BR4 <– 00;
BR5 <– 00;
BR10(b0) <– 1;
OR7(b1) <– 1;
BR10(b0) <– 0;
* program timer for 1.2 sec interrupt
* enable timer interrupt
IF BLER_timer_int THEN
BEGIN
END
: far end block error rate in errors/100 blocks
: near end block error rate in errors/100 blocks
: BR4 value recorded from previous interrupt
: BR5 value recorded from previous interrupt
febe <– BR4;
FE_BLER <– febe – last_febe
IF FE_BLER <= 0 THEN
last_febe <– BR4
nebe <– BR5;
NE_BLER <– nebe – last_nebe
IF NE_BLER <= 0 THEN
last_nebe <– BR5
Freescale Semiconductor, Inc.
For More Information On This Product,
FE_BLER <– 256 – FE_BLER
NE_BLER <– 256 – NE_BLER
/* Clear febe counter.*/
/* Clear nebe counter */
/* Enable init group registers */
/* Enable febe/nebe rollover */
/* Disable init group registers */
Go to: www.freescale.com
/* store current febe */
/* store current nebe */
MC145572
/* test for febe counter rollover */
/* update last_febe */
/* test for nebe counter rollover */
/* update last_nebe */
/* calculate far end BLER of last 1.2 sec */
/* calculate near end BLER of last 1.2 sec */
/* adjust far end BLER for counter
rollover */
/* adjust near end BLER for counter
rollover */
MOTOROLA

Related parts for MC145572PB