English
Language : 

MC9S08RG60 Datasheet, PDF (107/232 Pages) Motorola, Inc – Microcontrollers
SoC Guide — MC9S08RG60/D Rev 1.10
IROPEN — IRO Pin Enable
The IROPEN bit is used to enable and disable the IRO pin. When the pin is enabled, it is an output that
drives out either the CMT transmitter output or the state of the IROL bit depending on whether the
MCGEN bit in the CMTMSC register is set. Also, the state of the output is either inverted or not
depending on the state of the CMTPOL bit. When the pin is disabled, it is in a high impedance state so
it doesn’t draw any current. The pin is disabled during reset.
1 = IRO pin enabled as output
0 = IRO pin disabled
7.6.3 CMT Modulator Status and Control Register (CMTMSC)
The CMT modulator status and control register (CMTMSC) contains the modulator and carrier generator
enable (MCGEN), end of cycle interrupt enable (EOCIE), FSK mode select (FSK), baseband enable
(BASE), extended space (EXSPC), prescaler (CMTDIV1:CMTDIV0) bits, and the end of cycle (EOCF)
status bit.
Bit 7
6
5
4
3
2
1
Bit 0
Read: EOCF
CMTDIV1 CMTDIV0 EXSPC BASE FSK EOCIE MCGEN
Write:
Reset: 0
0
0
0
0
0
0
0
= Unimplemented
Figure 7-10 CMT Modulator Status and Control Register (CMTMSC)
EOCF — End of Cycle Status Flag
The EOCF bit is set when:
• The modulator is not currently active and the MCGEN bit is set to begin the initial CMT
transmission.
• At the end of each modulation cycle while the MCGEN bit is set. This is recognized when a match
occurs between the contents of the space period register and the down-counter. At this time, the
counter is initialized with the (possibly new) contents of the mark period buffer, CMTCMD1 and
CMTCMD2. The space period register is loaded with the (possibly new) contents of the space
period buffer, CMTCMD3 and CMTCMD4.
This flag is cleared by a read of the CMTMSC register followed by an access of CMTCMD2 or
CMTCMD4.
In the case where the MCGEN bit is cleared and then set before the end of the modulation cycle, EOCF
will not be set when MCGEN is set, but will be set at the end of the current modulation cycle.
1 = End of modulator cycle has occurred
0 = No end of modulation cycle occurrence since flag last cleared
Freescale Semiconductor
MC9S08RC/RD/RE/RG
107