PIC16C7X
PIC16C7X
8 level deep stack Direct, Indirect & Relative addressing modes Power saving SLEEP mode Power On Reset (POR) PWRT, OST, WDT Programmable Code protection
Serial Communication SPI, I2 C, USART Brown Out Reset except in PIC16C73/74 Interrupt Sources
PIC16C72 PIC16C73/73A/76 PIC16C74/74A/77 8 sources 11 sources 12 sources
Architecture of PIC16C72
Architecture of PIC16C73/73A/76
Architecture of PIC16C74/74A/77
Clocking Scheme
Clock input is internally divided by 4 (Q1, Q2, Q3 and Q4) each of 5MHz. PC is incremented for every Q1 Instruction is latched for every Q4
Data Memory
PIC16C72 Register File Map
PIC16C73/73A/74/74A Register File Map
PORT C 8 bit bidirectional port Data Direction Register TRIS C Each pin can be configured as I/O using TRIS C register Peripheral functions are multiplexed with Port C
RC0/T1OSO/T1CK1 I/O or Timer 1 Oscillator Output or Timer 1 Clock input RC1/T1OSI/CCP2 I/O or Timer 1 Oscillator input or Capture2 input, Compare2 output, PWM2 output RC2/CCP1 - I/O or Capture1 input, Compare1 output, PWM1 output RC3/SCK/SCL I/O or Synchronous serial clock for both SPI and I2C modes RC4/SDI/SDA I/O or SPI Data input in SPI mode or data I/O in I2C mode RC5/SDO I/O or SSP data output RC6/TX/CK - I/O or USART asynchronous transmit or USART synchronous clock RC7/RX/DT - I/O or USART asynchronous receive or USART synchronous clock
Some peripherals may override TRISC. So, TRISC destination should be avoided
PORT D applicable to PIC16C74/74A/77 Data Direction Register - TRISD Can be programmed as Input or Output Configured as 8 bit wide Microprocessor Parallel Slave Port The PSP mode can be selected by setting bit 4 in TRISE register
PORT E applicable to PIC16C74/74A/77 Data Direction Register TRISE Port E is the control port for the Parallel slave port (Port D) Port E pins are multiplexed with analog inputs PORT E - RE0/RD/AN5, RE1/WR/AN6 and RE2/CS/AN7
STATUS Register
OPTION Register
INTCON Register
PCON Register
Program Counter
PCL & PCLATH PC register 13 bits wide PCL (0 7) readable & writable PCH (8 12) not readable PCH writable using PCLATH register
Addressing Modes
The method of specifying the data to be used in the instruction Types
Direct Addressing Mode Indirect Addressing Mode Relative Addressing Mode
Instruction Set
Instruction Set
Instruction Set