25 R/F COnVeRTeR (RFC)
25-8
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
Reference oscillation completion interrupt
To use this interrupt, set EREFIE/RFC_IMSK register to 1. If EREFIE is set to 0 (default), interrupt requests
for this cause will not be sent to the ITC.
When the measurement counter overflows and a reference oscillation is completed normally, the R/F converter
sets EREFIF/RFC_IFLG register to 1. If reference oscillation completion interrupts are enabled (EREFIE = 1),
an interrupt request is sent simultaneously to the ITC.
Sensor a oscillation completion interrupt
To use this interrupt, set ESENAIE/RFC_IMSK register to 1. If ESENAIE is set to 0 (default), interrupt re-
quests for this cause will not be sent to the ITC.
When the time base counter reaches 0x0 and a sensor A oscillation is completed normally, the R/F converter
sets ESENAIF/RFC_IFLG register to 1. If sensor A oscillation completion interrupts are enabled (ESENAIE =
1), an interrupt request is sent simultaneously to the ITC.
Sensor B oscillation completion interrupt
To use this interrupt, set ESENBIE/RFC_IMSK register to 1. If ESENBIE is set to 0 (default), interrupt re-
quests for this cause will not be sent to the ITC.
When the time base counter reaches 0x0 and a sensor B oscillation is completed normally, the R/F converter
sets ESENBIF/RFC_IFLG register to 1. If sensor B oscillation completion interrupts are enabled (ESENBIE =
1), an interrupt request is sent simultaneously to the ITC.
Measurement counter overflow error interrupt
To use this interrupt, set OVMCIE/RFC_IMSK register to 1. If OVMCIE is set to 0 (default), interrupt requests
for this cause will not be sent to the ITC.
When the measurement counter overflows and a sensor oscillation is terminated abnormally, the R/F converter
sets OVMCIF/RFC_IFLG register to 1. If measurement counter overflow error interrupts are enabled (OVMCIE
= 1), an interrupt request is sent simultaneously to the ITC.
Time base counter overflow error interrupt
To use this interrupt, set OVTCIE/RFC_IMSK register to 1. If OVTCIE is set to 0 (default), interrupt requests
for this cause will not be sent to the ITC.
When the time base counter overflows and a reference oscillation is terminated abnormally, the R/F converter
sets OVTCIF/RFC_IFLG register to 1. If time base counter overflow error interrupts are enabled (OVTCIE = 1),
an interrupt request is sent simultaneously to the ITC.
For more information on interrupt processing, see the “Interrupt Controller (ITC)” chapter.
notes: • To prevent interrupt recurrences, the interrupt flag must be reset in the interrupt handler rou-
tine after an RFC interrupt has occurred. The interrupt flag is reset by writing 1.
• To prevent unwanted interrupts, reset the interrupt flags before enabling interrupts with the in-
terrupt enable bits.
Control Register Details
25.8
8.1 List of RFC Registers
Table 25.
address
Register name
Function
0x5067
OSC_RFC
RFC Clock Control Register
Selects the operating clock.
0x53a0
RFC_CTL
RFC Control Register
Controls R/F converter.
0x53a2
RFC_TRG
RFC Oscillation Trigger Register
Controls oscillations.
0x53a4
RFC_MCL
RFC Measurement Counter Low Register
Measurement counter data
0x53a6
RFC_MCH
RFC Measurement Counter High Register
0x53a8
RFC_TCL
RFC Time Base Counter Low Register
Time base counter data
0x53aa
RFC_TCH
RFC Time Base Counter High Register
0x53ac
RFC_IMSK
RFC Interrupt Mask Register
Enables/disables interrupts.
0x53ae
RFC_IFLG
RFC Interrupt Flag Register
Indicates/resets interrupt occurrence status.