Data Sheet (PIC16C74B-20/L)Table of Contents1.0 General Description51.1 Family and Upward Compatibility51.2 Development Support52.0 PIC16C63A/65B/73B/74B Device Varieties72.1 UV Erasable Devices72.2 One-Time-Programmable (OTP) Devices72.3 Quick-Turnaround-Production (QTP) Devices72.4 Serialized Quick-Turnaround Production (SQTPSM) Devices73.0 Architectural Overview93.1 Clocking Scheme/Instruction Cycle143.2 Instruction Flow/Pipelining144.0 Memory Organization154.1 Program Memory Organization154.2 Data Memory Organization154.2.1 General purpose Register File154.2.2 Special Function Registers164.2.2.1 STATUS Register194.2.2.2 OPTION Register204.2.2.3 INTCON Register214.2.2.4 PIE1 Register224.2.2.5 PIR1 Register234.2.2.6 PIE2 Register244.2.2.7 PIR2 Register244.2.2.8 PCON Register254.3 PCL and PCLATH264.3.1 computed GOTO264.3.2 Stack264.4 Program Memory Paging264.5 Indirect Addressing, INDF and FSR Registers275.0 I/O Ports295.1 PORTA and TRISA Registers295.2 PORTB and TRISB Registers315.3 PORTC and TRISC Registers335.4 PORTD and TRISD Registers345.5 PORTE and TRISE Register355.6 Parallel Slave Port (PSP)376.0 Timer0 Module396.1 Timer0 Interrupt396.2 Using Timer0 with an External Clock406.3 Prescaler407.0 Timer1 Module437.1 Timer1 Operation in Timer Mode447.2 Timer1 Operation in Synchronized Counter Mode447.3 Timer1 Operation in Asynchronous Counter Mode457.3.1 Reading and writing Timer1 in asynchronous counter mode457.4 Timer1 Oscillator457.5 Resetting Timer1 using a CCP Trigger Output457.6 Resetting of Timer1 Register Pair (TMR1H, TMR1L)457.7 Timer1 Prescaler458.0 Timer2 Module478.1 Timer2 Prescaler and Postscaler478.2 Output of TMR2479.0 Capture/Compare/PWM ModuleS499.1 Capture Mode519.1.1 CCP pin Configuration519.1.2 Timer1 Mode Selection519.1.3 Software Interrupt519.1.4 CCP Prescaler519.2 Compare Mode529.2.1 CCP Pin Configuration529.2.2 timer1 Mode Selection529.2.3 Software Interrupt Mode529.2.4 Special Event Trigger529.3 PWM Mode (PWM)529.3.1 PWM period539.3.2 PWM Duty Cycle539.3.3 Set-Up for PWM Operation5310.0 Synchronous Serial Port (SSP) Module5510.1 SSP Module Overview5510.2 SPI Mode5510.3 SSP I2C Operation6010.3.1 SLAVE Mode6010.3.1.1 Addressing6110.3.1.2 Reception6210.3.1.3 Transmission6310.3.2 Master Mode6410.3.3 Multi-master Mode6411.0 Addressable Universal Synchronous Asynchronous Receiver Transmitter (USART)6511.1.1 SAMPLING6711.2.1 USART Asynchronous Transmitter6811.2.2 USART Asynchronous Receiver7011.2.4 USART Synchronous Master Transmission7211.3.1 USART Synchronous Slave Transmit7612.0 Analog-to-Digital Converter (A/D) Module7912.1 A/D Acquisition Requirements8212.2 Selecting the A/D Conversion Clock8312.3 Configuring Analog Port Pins8312.4 A/D Conversions8312.5 A/D Operation During SLEEP8312.6 Effects of a RESET8312.7 Use of the CCP Trigger8313.0 Special Features of the CPU8513.1 Configuration Bits8513.2 Oscillator Configurations8613.2.1 Oscillator Types8613.2.2 Crystal Oscillator/CERAmic Resonators8613.2.3 RC Oscillator8713.3 Reset8813.4 ResetS8913.4.1 Power-On Reset (POR)8913.4.2 Power-up Timer (PWRT)8913.4.3 Oscillator Start-up Timer (OST)8913.4.4 Brown-Out Reset (BOR)8913.4.5 Time-out Sequence8913.4.6 Power Control/Status Register (PCON)8913.5 Interrupts9313.5.1 INT Interrupt9413.5.2 TMR0 Interrupt9413.5.3 PortB INTERRUPT-ON-CHANGE9413.6 Context Saving During Interrupts9513.7 Watchdog Timer (WDT)9513.7.1 WDT Period9513.7.2 WDT Programming Considerations9613.8 Power-down Mode (SLEEP)9713.8.1 Wake-up from SLEEP9713.8.2 Wake-Up Using Interrupts9713.9 Program Verification/Code Protection9813.10 ID Locations9813.11 In-Circuit Serial Programming9814.0 Instruction Set Summary9914.1 Instruction Descriptions10115.0 Development Support10715.1 MPLAB Integrated Development Environment Software10715.2 MPASM Assembler10715.3 MPLAB C17 and MPLAB C18 C Compilers10715.4 MPLINK Object Linker/ MPLIB Object Librarian10815.5 MPLAB SIM Software Simulator10815.6 MPLAB ICE High Performance Universal In-Circuit Emulator with MPLAB IDE10815.7 ICEPIC In-Circuit Emulator10815.8 MPLAB ICD In-Circuit Debugger10915.9 PRO MATE II Universal Device Programmer10915.10 PICSTART Plus Entry Level Development Programmer10915.11 PICDEM 1 Low Cost PIC MCU Demonstration Board10915.12 PICDEM 2 Low Cost PIC16CXX Demonstration Board10915.13 PICDEM 3 Low Cost PIC16CXXX Demonstration Board11015.14 PICDEM 17 Demonstration Board11015.15 KeeLoq Evaluation and Programming Tools11016.0 Electrical Characteristics11316.1 DC Characteristics11616.2 AC (Timing) Characteristics12216.2.1 Timing Parameter Symbology12216.2.2 Timing Conditions12316.2.3 Timing Diagrams and Specifications12417.0 DC and AC Characteristics Graphs and Tables13918.0 Packaging Information15318.1 Package Marking Information15318.2 28-Lead Skinny Plastic Dual In-line (SP) – 300 mil (PDIP)15518.3 28-Lead Ceramic Dual In-line with Window (JW) – 300 mil (CERDIP)15618.4 28-Lead Plastic Small Outline (SO) – Wide, 300 mil (SOIC)15718.5 28-Lead Plastic Shrink Small Outline (SS) – 209 mil, 5.30 mm (SSOP)15818.6 40-Lead Plastic Dual In-line (P) – 600 mil (PDIP)15918.7 40-Lead Ceramic Dual In-line with Window (JW) – 600 mil (CERDIP)16018.8 44-Lead Plastic Thin Quad Flatpack (PT) 10x10x1 mm Body, 1.0/0.10 mm Lead Form (TQFP)16118.9 44-Lead Plastic Metric Quad Flatpack (PQ) 10x10x2 mm Body, 1.6/0.15 mm Lead Form (MQFP)16218.10 44-Lead Plastic Leaded Chip Carrier (L) – Square (PLCC)163Index169A169B169C169D170E170F170G170I170K170L170M170O171P171R172S172T172U173W173Z173The Microchip Web Site175Customer Change Notification Service175Customer Support175Reader Response176Corporate Office186Atlanta186Boston186Chicago186Cleveland186Fax: 216-447-0643186Dallas186Detroit186Indianapolis186Toronto186Fax: 852-2401-3431186Australia - Sydney186China - Beijing186China - Shanghai186India - Bangalore186Korea - Daegu186Korea - Seoul186Singapore186Taiwan - Taipei186Fax: 43-7242-2244-393186Denmark - Copenhagen186France - Paris186Germany - Munich186Italy - Milan186Spain - Madrid186UK - Wokingham186Worldwide Sales and Service186Size: 1.79 MBPages: 186Language: EnglishOpen manual