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.
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-12)0
= OSCO is a general purpose digital I/O pin
The oscillator pin functions are provided in Table 12-34.
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 |
MS | x | 01 | OSCI | OSCO |
EC | 1 | 00 | OSCI | Clock Output |
EC | 0 | 00 | — | Digital I/O |
Note:
|