ATM Pace Control
MPC885 PowerQUICC Family Reference Manual, Rev. 2
40-20
Freescale Semiconductor
40.10 Combined APC and PTP Programming Example
The following example describes the steps to program the APC in a combined APC and PTP configuration
which is described in
Figure 40-9
. The example describes a single 25-Mbps PHY system working at
50Mhz system clock.
1. Program APCST=0x7808 - Define ATM on SCC4, ESAR mode enabled.
2. Program APCPTR=0x200 - the start address of the APC priority levels.
3. Program level1:
— Address 0x200: APCT_BASE1=0x0300 (start address of APC scheduling table 1)
— Address 0x202: APCT_END1=0x0322 (pointing to the next entry after the end of table—table
size = 16 entries)
— Address 0x204: APCT_PTR1=0x0300
— Address 0x206: APCT_SPTR1=0x0300
— address 0x210: APC_MI=0x0004
— Address 0x212: NCITS=0x0002 (each APC timer request schedules 2 cells)
— Address 0x214: APCNT=0x0000
— Address 0x218: EAPCST1=0x0018 - Equal priority to APC scheduling table and PTP, ESAR
mode
— Address 0x21A: PTP_COUNTER=0x0000 - initialize the PTP counter
— Address 0x21C: PTP_TxCh=0x0001 - channel 1 is the PTP transmitting channel of this priority
level.
4. Program level2:
— Address 0x220: APCT_BASE2=0x0330 (start address of APC scheduling table 2)
— Address 0x222: APCT_END2=0x0342 (pointing to the next entry after the end of table—table
size = 8 entries)
— Address 0x224: APCT_PTR2=0x0330
— Address 0x226: APCT_SPTR2=0x0330
— Address 0x238: EAPCST2=8008 - ESAR mode, The PTP of this priority level is of a higher
priority than the APC scheduling table, APCO interrupts are masked at this level.
— Address 0x23A: PTP_COUNTER=0x0000 - initialize the PTP counter
— Address 0x23C: PTP_TxCh=0x0002 - channel 2 is the PTP transmitting channel of this priority
level.
5. Program level3:
— Address 0x258: EAPCST3=0x200C - ESAR mode, The APC scheduling table at this level is
disabled, L=1 - this is the last level.
— Address 0x25A: PTP_COUNTER=0x0000 - initialize the PTP counter
— Address 0x25C: PTP_TxCh=0x0003 - channel 3 is the PTP transmitting channel of this priority
level.
Содержание PowerQUICC MPC870
Страница 1: ...MPC885 PowerQUICC Family Reference Manual Supports MPC885 MPC880 MPC875 MPC870 MPC885RM Rev 2 04 2006 ...
Страница 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Страница 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Страница 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Страница 192: ...MPC885 Instruction Set MPC885 PowerQUICC Family Reference Manual Rev 2 5 22 Freescale Semiconductor ...
Страница 242: ...Instruction and Data Caches MPC885 PowerQUICC Family Reference Manual Rev 2 7 30 Freescale Semiconductor ...
Страница 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Страница 416: ...External Bus Interface MPC885 PowerQUICC Family Reference Manual Rev 2 13 42 Freescale Semiconductor ...
Страница 440: ...Clocks and Power Control MPC885 PowerQUICC Family Reference Manual Rev 2 14 24 Freescale Semiconductor ...
Страница 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Страница 606: ...SDMA Channels and IDMA Emulation MPC885 PowerQUICC Family Reference Manual Rev 2 19 20 Freescale Semiconductor ...
Страница 738: ...SCC Asynchronous HDLC Mode and IrDA MPC885 PowerQUICC Family Reference Manual Rev 2 25 16 Freescale Semiconductor ...
Страница 780: ...SCC Ethernet Mode MPC885 PowerQUICC Family Reference Manual Rev 2 27 24 Freescale Semiconductor ...
Страница 794: ...SCC Transparent Mode MPC885 PowerQUICC Family Reference Manual Rev 2 28 14 Freescale Semiconductor ...
Страница 848: ...Serial Peripheral Interface SPI MPC885 PowerQUICC Family Reference Manual Rev 2 30 18 Freescale Semiconductor ...
Страница 882: ...Universal Serial Bus USB MPC885 PowerQUICC Family Reference Manual Rev 2 31 34 Freescale Semiconductor ...
Страница 944: ...Parallel I O Ports MPC885 PowerQUICC Family Reference Manual Rev 2 34 26 Freescale Semiconductor ...
Страница 956: ...CPM Interrupt Controller MPC885 PowerQUICC Family Reference Manual Rev 2 35 12 Freescale Semiconductor ...
Страница 1004: ...Buffer Descriptors and Connection Tables MPC885 PowerQUICC Family Reference Manual Rev 2 37 30 Freescale Semiconductor ...
Страница 1022: ...ATM Parameter RAM MPC885 PowerQUICC Family Reference Manual Rev 2 38 18 Freescale Semiconductor ...
Страница 1068: ...ATM Pace Control MPC885 PowerQUICC Family Reference Manual Rev 2 40 22 Freescale Semiconductor ...
Страница 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Страница 1120: ...AAL2 Implementation MPC885 PowerQUICC Family Reference Manual Rev 2 44 30 Freescale Semiconductor ...
Страница 1162: ...Fast Ethernet Controller FEC MPC885 PowerQUICC Family Reference Manual Rev 2 45 40 Freescale Semiconductor ...
Страница 1172: ...SEC Lite Overview MPC885 PowerQUICC Family Reference Manual Rev 2 46 8 Freescale Semiconductor ...
Страница 1176: ...SEC Lite Address Map MPC885 PowerQUICC Family Reference Manual Rev 2 47 4 Freescale Semiconductor ...
Страница 1214: ...SEC Lite Execution Units MPC885 PowerQUICC Family Reference Manual Rev 2 48 38 Freescale Semiconductor ...
Страница 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Страница 1313: ...MPC885 PowerQUICC Family Reference Manual Rev 2 Freescale Semiconductor B 1 Appendix B Serial Communications Performance TBD ...
Страница 1314: ...Serial Communications Performance MPC885 PowerQUICC Family Reference Manual Rev 2 B 2 Freescale Semiconductor ...
Страница 1320: ...Register Quick Reference Guide MPC885 PowerQUICC Family Reference Manual Rev 2 C 6 Freescale Semiconductor ...
Страница 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Страница 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Страница 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Страница 1384: ...Serial ATM Scrambling Reception and SI Programming MPC885 PowerQUICC Family Reference Manual Rev 2 H 6 Freescale Semiconductor ...
Страница 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...