Datasheet

2012 Microchip Technology Inc. DS30684A-page 51
PIC18(L)F2X/45K50
3.20 Active Clock Tuning Update
Disable
When the ACT module is enabled, the OSCTUNE
register is continuously updated every ACT_clk period.
Setting the ACT Update Disable bit can be used to
suspend updates to the OSCTUNE register, without
disabling the module. If the 16 MHz internal oscillator
drifts out of the accuracy range, the ACT Status bits will
change and an interrupt can be generated to notify the
application.
Clearing the ACTUD bit will engage the ACT updates
to OSCTUNE and an interrupt can be generated to
notify the application.
3.21 Interrupts
The ACT module will set the ACT module Interrupt
Flag, (ACTIF) when either of the ACT module Status
bits (ACTLOCK or ACTORS) change state, regardless
if the interrupt is enabled, (ACTIE = 1). The ACTIF and
ACTIE bits are in the PIR1 and PIE1 registers, respec-
tively. When ACTIE = 1, an interrupt will be generated
whenever the ACT module Status bits change.
The ACTIF bit must be cleared in software, regardless
of the interrupt enable setting.
3.22 Operation during Sleep
This ACT module does not run during Sleep and will
not generate interrupts during Sleep.