Enhanced Modular Input/Output Subsystem (eMIOS)MPC5566 Microcontroller Reference Manual, Rev. 217-18 Freescale SemiconductorThe following table lists the binary values for the unified channel operating modes used in the eMIOSchannel control register:24EDPOLEdge polarity. For input modes (except QDEC and WPTA mode), the EDPOL bit asserts which edge triggerseither the internal counter or an input capture or a FLAG. When not shown in the mode of operationdescription, this bit has no affect.0 Trigger on a falling edge1 Trigger on a rising edgeFor WPTA mode, the internal counter is used as a time accumulator and counts up when the input gatingsignal has the same polarity of EDPOL bit.0 Counting occurs when the input gating signal is low1 Counting occurs when the input gating signal is highFor QDEC (MODE[6] cleared), the EDPOL bit selects the count direction according to direction signal (UCninput).0 Counts down when UCn is asserted1 Counts up when UCn is assertedNOTE: UC[n-1] EDPOL bit selects which edge clocks the internal counter of UCn0 Trigger on a falling edge1 Trigger on a rising edgeFor QDEC (MODE[6] set), the EDPOL bit selects the count direction according to the phase difference.0 Internal counter decrements if phase_A is ahead phase_B signal1 Internal counter increments if phase_A is ahead phase_B signalNOTE: To operate properly, EDPOL bit must contain the same value in UCn and UC[n-1]For output modes, the EDPOL bit is used to select the logic level on the output pin. When software selectsany output mode except GPIO, the initial state of the output flip-flop is the complement of EDPOL.0 A match on comparator A clears the output flip-flop, while a match on comparator B sets it1 A match on comparator A sets the output flip-flop, while a match on comparator B clears it25–31MODEMode selection. Selects the mode of operation of the unified channel, as shown in Table 17-10.Table 17-10. Binary Values for Unified Channel Operating ModesMODE[0:6] Unified Channel Operating Modes0000000 General purpose input/output mode (input)0000001 General purpose input/output mode (output)0000010 Single action input capture0000011 Single action output compare0000100 Input pulse-width measurement0000101 Input period measurement0000110 Double-action output compare (with FLAG set on the second match)0000111 Double-action output compare (with FLAG set on both match)0001000 Pulse and edge accumulation (continuous)Table 17-9. EMIOS_CCRn Field Description (continued)Field Description