
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
992
Freescale Semiconductor
The Filter Delay varies with the filter clock (ETPU_ECR field FPSCK) and the filter mode used, as shown
in the
. For any given transition, it depends on the phase of the filter clock when the input
transition happens. In integration mode (TCRCLK filtering only), it also depends on the state of the
integrator counter. The Total Delay is defined as the number of system clock rising edges between the input
transition and the setting of TDLA/B, TCR1/2 incrementing, or EAC tooth sensing (TCRCLK) in angle
mode. The synchronizer delay is 2 or 3 system clocks, depending on the phase of the synchronizer when
the input transition happens. The edge detection takes 1 more system clock. The total delays are, thus:
Min. Total Delay = Min. Synchronizer Delay + Min. Filter Delay + Edge Detection Delay
Min. Total Delay = 3 + Min. Filter Delay
Max. Total Delay = Max. Synchronizer Delay + Max. Filter Delay + Edge Detection Delay
Max. Total Delay = 4 + Max. Filter Delay
The channel filters can be bypassed, so nullifying the filter delays in the equations above.
The channel output flip-flops drive the eTPU output signals directly, without any synchronous delays.
Consult the MCU Reference Manual for information on additional delays added at the integration.
24.7.2
Initialization code example
The code example below initializes ETPU_1 engine and configures eTPU UART FUNCTION to perform
the receiver at channel 1 and the transmitter at channel 0. The function works without parity and the data
word is 8 bits in size. The initialization code assumes the microcode function previously loaded into SCM.
***********************************************************************************
// Initilization program for eTPU engine 1, function microcode previously loaded into SCM.
// No angle mode, eTPU UART FUNCTION configured to perform at channels 0 and 1.
// Channel0 - Tx_UART
// Channel1 - Rx_UART
// UART Specifications:
// Data word size: 8 bits
// Parity: disabled
// ***************************** Definitions ***********************************
//Bases
#define ETPU_BASE 0x000 //MCU-dependent
#define SPRAM_BASE 0x000 //MCU-dependent
//General Configuration Registers
#define ETPU_MCR_OFFSET 0x000 //Module Configuration Register
#define ETPU_TBCR_1_OFFSET 0x020 //Time Base Configuration Register
#define ETPU_ECR_1_OFFSET 0x014 //Engine Configuration Register
#define ETPU_CIER_1_OFFSET 0x240 //Channel Interrupt Enable Register
#define ETPU_CDTRER_1_OFFSET 0x250 //Data TransF Interrupt Enable Register
//channel0 configuration registers
#define ETPU_C0CR_1_OFFSET 0x400 //Channel0 Configuration Register
#define ETPU_C0SCR_1_OFFSET 0x404 //Channel0 Status Control Register
#define ETPU_C0HSRR_1_OFFSET 0x408 //Channel0 Host Service Req. Register
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...