12.4.3.2 Primary Oscillator Pin Functionality
The POSC pins (OSCI and OSCO) can be used for other functions when the oscillator is not being used. The POSCMD[1:0] bits in the Oscillator Configuration register (OSCCFG) determine the oscillator pin function. The POSCIOFNC bit (OSCCFG) determines the OSCO pin function.
POSCMD[1:0]: Primary Oscillator Mode Selection bits:
11
= Off (Enables GPIO on CLKI pin)10
= High-Frequency mode (HS 10-32 MHz)01
= Primary Oscillator: Medium Frequency mode (XT 0-10 MHz)00
= External Clock mode (EC)
POSCIOFNC: OSCO Pin Function bit (except in XT and HS modes):
1
= OSCO is the clock output, and the instruction cycle (FCY) clock is output on the OCSO pin (see Figure 12-7).0
= OSCO is a general purpose digital I/O pin.
The oscillator pin functions are provided in Table 12-7.
Oscillator Source | POSCIOFNC Value | POSCMD[1:0] Value | OSCI Pin Function(1) | OSCO Pin Function(2) |
---|---|---|---|---|
POSC Disabled | 1 | 11 | Digital I/O | Clock Output |
POSC Disabled | 0 | 11 | Digital I/O | Digital I/O |
HS | x | 10 | OSCI | OSCO |
XT | x | 01 | OSCI | OSCO |
EC | 1 | 00 | OSCI | Clock Output |
EC | 0 | 00 | — | Digital I/O |
Note:
|