Datasheet
PIC14000
DS40122B-page 144
Preliminary
1996 Microchip Technology Inc.
PCON................................................................................. 22
PD ...................................................................................... 79
PICDEM-1 Low-Cost PIC16/17 Demo Board........... 103, 104
PICDEM-2 Low-Cost PIC16CXX Demo Board ........ 103, 104
PICDEM-3 Low-Cost PIC16C9XXX Demo Board............ 104
PICMASTER
RT In-Circuit Emulator............................. 103
PICSTART
Low-Cost Development System ................. 103
PIE1 ................................................................................... 20
Pin Compatible Devices................................................... 141
PIR1 ................................................................................... 21
POR
Oscillator Start-up Timer (OST) ................................. 80
Power-on Reset (POR).............................................. 80
Power-up Timer (PWRT) ........................................... 80
TO ..............................................................................79
Prescaler ............................................................................39
PRO MATE
Universal Programmer............................... 103
R
RCV_MODE....................................................................... 54
Read Modify Write.............................................................. 35
Register File....................................................................... 14
Reset.................................................................................. 79
RETFIE Instruction............................................................. 99
RETLW Instruction............................................................. 99
RETURN Instruction......................................................... 100
RLF Instruction................................................................. 100
RRF Instruction ................................................................ 100
S
Saving W register and STATUS in RAM............................ 85
SLEEP................................................................................ 79
SLEEP Instruction............................................................ 100
Software Simulator (MPSIM)............................................ 105
Special FUNCTION Registers............................................ 15
SSP
SSPCON.................................................................... 43
SSPSTAT................................................................... 42
Stack .................................................................................. 23
overflows.................................................................... 23
underflow ................................................................... 23
SUBLW Instruction........................................................... 101
SUBWF Instruction ........................................................... 101
SWAPF Instruction........................................................... 102
T
Timer0
TMR0 with External Clock.......................................... 39
Timer1
Switching Prescaler Assignment................................ 40
Timing Diagrams and Specifications................................ 111
TRIS Instruction ............................................................... 102
W
Watchdog Timer (WDT) ..................................................... 79
X
XMIT_MODE...................................................................... 54
XORLW Instruction .......................................................... 102
XORWF Instruction .......................................................... 102
Z
Zero bit................................................................................. 7
LIST OF EXAMPLES
Example 3-1: Instruction Pipeline Flow ........................... 11
Example 4-1: Call Of A Subroutine In Page 1
from Page 0............................................... 23
Example 4-2: Indirect Addressing .................................... 24
Example 5-1: Initializing PORTA ..................................... 25
Example 5-2: Initializing PORTC ..................................... 27
Example 5-3: Initializing PORTD ..................................... 35
Example 5-4: Read Modify Write Instructions
On An I/O Port ........................................... 35
Example 6-1: Changing Prescaler (TIMER0
→
WDT) ....... 40
Example 6-2: Changing Prescaler (WDT
→
TIMER0) ....... 40
Example 10-1: Saving STATUS and W Registers
in RAM........................................................ 84
LIST OF FIGURES
Figure 3-1: PIC14000 Block Diagram ............................ 8
Figure 3-2: Clock/Instruction Cycle .............................. 11
Figure 4-1: PIC14000 Program Memory Map
and Stack .................................................. 13
Figure 4-2: Register File Map ...................................... 14
Figure 4-3: Status Register .......................................... 17
Figure 4-4: Option Register ......................................... 18
Figure 4-5: INTCON Register ...................................... 19
Figure 4-6: PIE1 Register ............................................ 20
Figure 4-7: PIR1 Register ............................................ 21
Figure 4-8: PCON Register .......................................... 22
Figure 4-9: Loading of PC In Different Situations ........ 23
Figure 4-10: Indirect/indirect Addressing ....................... 24
Figure 5-1: PORTA Block Diagram .............................. 25
Figure 5-2: PORTA Data Register ............................... 26
Figure 5-3: Block Diagram of PORTC<7:6> Pins ........ 27
Figure 5-4: Block Diagram of PORTC<5:4> Pins ........ 28
Figure 5-5: Block Diagram of PORTC<3:0> Pins ........ 29
Figure 5-6: PORTC Data Register ............................... 30
Figure 5-7: TRISC Register ......................................... 31
Figure 5-8: Block Diagram of PORTD<7:4> Pins ........ 32
Figure 5-9: Block Diagram oF PORTD<3:2> Pins ....... 32
Figure 5-10: Block Diagram of PORTD<1:0> Pins ........ 33
Figure 5-11: PORTD Data Register ............................... 33
Figure 5-12: TRISD Register ......................................... 34
Figure 5-13: Successive I/O OperatioN ......................... 36
Figure 6-1: TIMER0 and Watchdog Timer
Block Diagram ........................................... 37
Figure 6-2: TIMER0 Timing: Internal Clock/
No Prescale ............................................... 38
Figure 6-3: TIMER0 Timing: Internal Clock/
Prescale 1:2 .............................................. 38
Figure 6-4: TIMER0 Interrupt Timing ........................... 38
Figure 6-5: TIMER0 Timing with External Clock .......... 39
Figure 7-1: I
2
C Start And Stop Conditions ................... 41
Figure 7-2: I
2
CSTAT: I
2
C Port Status Register ............ 42
Figure 7-3: I
2
CCON: I
2
C Port Control Register ........... 43
Figure 7-4: I
2
C 7-bit Address Format ........................... 44
Figure 7-5: I
2
C 10-bit Address Format ......................... 44
Figure 7-6: I
2
C Slave-Receiver Acknowledge ............. 45
Figure 7-7: Sample I
2
C Data Transfer ......................... 45
Figure 7-8: Master - Transmitter Sequence ................. 46
Figure 7-9: Master - Receiver Sequence ..................... 46
Figure 7-10: Combined Format ...................................... 46
Figure 7-11: Multi-master Arbitration (2 Masters) .......... 47
Figure 7-12: I
2
C Clock Synchronization ......................... 47
Figure 7-13: I
2
C Block Diagram ..................................... 48
Figure 7-14: I
2
C Waveforms For Reception
(7-bit Address) ........................................... 50