PIC12C5XX
DS40139A-page 80
Advanced Information
1996 Microchip Technology Inc.
LIST OF EXAMPLES
Example 3-1: Instruction Pipeline Flow ............................10
Example 4-1: Indirect Addressing.................................... 17
Example 4-2: How To Clear RAM Using Indirect
Addressing................................................. 17
Example 5-1: Read-Modify-Write Instructions on an
I/O Port ...................................................... 20
Example 6-1: Changing Prescaler (Timer0
Example 6-2: Changing Prescaler (WDT
→
Timer0.........) 24
WDT.........) 24
→
LIST OF FIGURES
Figure 3-1:
Figure 3-2:
Figure 4-1:
PIC12C5XX Block Diagram......................... 8
Clock/Instruction Cycle .............................. 10
Program Memory Map and Stack for the
PIC12C5XX ............................................... 11
PIC12C508 Register File Map................... 12
PIC12C509 Register File Map................... 12
STATUS Register (Address:03h)............... 14
OPTION Register....................................... 15
Loading of PC Branch Instructions -
PIC12C508/C509....................................... 16
Direct/Indirect Addressing.......................... 17
Equivalent Circuit for a Single I/O Pin........ 19
Successive I/O Operation.......................... 20
Timer0 Block Diagram ............................... 21
Timer0 Timing: Internal Clock/
No Prescale ............................................... 22
Timer0 Timing: Internal Clock/
Prescale 1:2............................................... 22
Timer0 Timing With External Clock ........... 23
Block Diagram of the Timer0/
WDT Prescaler .......................................... 24
Configuration Word for PIC12C508 or
PIC12C509 ................................................ 25
Crystal Operation (or Ceramic Resonator)
(XT or LP OSC Configuration)................... 26
External Clock Input Operation
(XT or LP OSC Configuration)................... 26
External Parallel Resonant Crystal
Oscillator Circuit......................................... 27
External Series Resonant Crystal
Oscillator Circuit .........................................27
RC Oscillator Mode.................................... 28
MCLR Select.............................................. 29
Simplified Block Diagram of
On-Chip Reset Circuit................................ 30
Time-Out Sequence on Power-Up
(MCLR Pulled Low).................................... 31
Time-Out Sequence on Power-Up
(MCLR Tied to Vdd): Fast Vdd Rise Time . 31
Time-Out Sequence on Power-Up
(MCLR Tied to V
DD
): Slow Vdd Rise Time 31
Watchdog Timer Block Diagram................ 33
Brown-Out Protection Circuit 1 .................. 34
Brown-Out Protection Circuit 2 .................. 34
Typical In-Circuit Serial Programming
Connection................................................. 36
General Format for Instructions................. 37
Load Conditions - PIC12C5XX .................. 56
External Clock Timing - PIC12C5XX ......... 57
I/O Timing - PIC12C5XX........................... 58
Reset, Watchdog Timer, and Device
Reset Timer Timing - PIC12C5XX............. 59
Timer0 Clock Timings - PIC12C5XX ......... 60
Calibrated Internal RC Frequency
Range vs. Temperature (V
Figure 4-2:
Figure 4-3:
Figure 4-4:
Figure 4-5:
Figure 4-6:
Figure 4-7:
Figure 5-1:
Figure 5-2:
Figure 6-1:
Figure 6-2:
Figure 6-3:
Figure 6-4:
Figure 6-5:
Figure 7-1:
Figure 7-2:
Figure 7-3:
Figure 7-4:
Figure 7-5:
Figure 7-6:
Figure 7-7:
Figure 7-8:
Figure 7-9:
Figure 7-10:
Figure 7-11:
Figure 7-12:
Figure 7-13:
Figure 7-14:
Figure 7-15:
Figure 8-1:
Figure 10-1:
Figure 10-2:
Figure 10-3:
Figure 10-4:
Figure 10-5:
Figure 10-6:
DD
= 5.5V)........ 61
Figure 10-7:
Calibrated Internal RC Frequency Range
vs. Temperature (V
DD
Calibrated Internal RC Frequency Range
vs. V
DD
at Temperature = -40
Calibrated Internal RC Frequency Range
vs. V
DD
at Temperature = 25
Figure 10-10: Calibrated Internal RC Frequency Range
vs. V
DD
at Temperature = 85
= 2.5V)................... 61
Figure 10-8:
°
C ............... 62
Figure 10-9:
°
C................. 62
°
C................ 63
LIST OF TABLES
Table 1-1:
Table 3-1:
Table 4-1:
Table 5-1:
Table 6-1:
Table 7-1:
PIC12C5XX Family of Devices.................... 4
PIC12C5XX Pinout Description................... 9
Special Function Register Summary......... 13
Summary of Port Registers ....................... 19
Registers Associated With Timer0 ............ 22
Capacitor Selection For Ceramic
Resonators - PIC12C5XX ......................... 26
Capacitor Selection For Crystal
Oscillator - PIC12C5XX............................. 26
Reset Conditions For Registers ................ 28
Reset Condition For Special Registers ..... 29
Summary of Registers Associated with
the Watchdog Timer.................................. 33
TO/PD/GPWUF Status After Reset........... 34
Events Affecting TO/PD Status Bits .......... 34
OPCODE Field Descriptions ..................... 37
Instruction Set Summary........................... 38
Development Tools From Microchip.......... 52
External Clock Timing Requirements -
PIC12C5XX............................................... 57
Timing Requirements - PIC12C5XX.......... 58
Reset, Watchdog Timer, and Device
Reset Timer - PIC12C5XX ........................ 59
Timer0 Clock Requirements -
PIC12C5XX............................................... 60
MCLR Pull-up Resistor Ranges ................ 60
Table 7-2:
Table 7-3:
Table 7-4:
Table 7-5:
Table 7-6:
Table 7-7:
Table 8-1:
Table 8-2:
Table 9-1:
Table 10-1:
Table 10-2:
Table 10-3:
Table 10-4:
Table 10-5: