Predefined Channel Mode Summary - NXP Semiconductors MPC5644A Reference Manual

Microcontroller
Table of Contents

Advertisement

DATA_UART_TX = DATA_WORD_TX(0x000000AA); //load first byte to be transmitted=AA
DATA_SIZE_TX = DATA_SIZE_TRANS(8);
MATCH_RATE_RX = MATCH_RATE_REC(0x412);
DATA_SIZE_RX = DATA_SIZE_REC(8);
//Write to Channel host service request registers(ETPU_CxHSRR) to
//initialize active channels(Channel 0 and 1)
ETPU_C0HSRR_1 = HOST_SERV_REQ(3);
ETPU_C1HSRR_1 = HOST_SERV_REQ(2);
//write to Channel priority field to enable each channel by
//assigning it a high,middle or low priority
ETPU_C0CR_1 =(ETPU_C0CR_1 | CHANNEL_PRIORITY_HIGH);
ETPU_C1CR_1 =(ETPU_C1CR_1 | CHANNEL_PRIORITY_HIGH);
//Monitor channel host service request register for completion
//of initialization
//HSR should be zero in the end of initialization
do
{
temp = ETPU_C0HSRR_1;
} while (temp != 0);
do
{
temp = ETPU_C1HSRR_1;
} while (temp != 0);
//Write GTBE bit to start TCR1 and TCR2 time bases counting
//at the same time
ETPU_MCR = (ETPU_MCR | GTBE);
}// end of etpu_initialization routine
***********************************************************************************
24.7.3

Predefined channel mode summary

Table 24-129
explains channel double match predefined submode functionality by showing all event sequence possibilities. The initial
state considered for all submodes is channel flags MRLA, MRLB, TDLA and TDLB reset. From initial state one can follow the table
and verify how each submode behaves in a determined sequence of events. Note that the actions performed by an event type depend
on all previous events following the initial state, for a given channel submode.
//8-bit data word for transmitter
//setup match rate for receiver
//8-bit data word for receiver

Advertisement

Table of Contents
loading

Table of Contents