low pin-count pic® flash microcontrollers - htl wien...
TRANSCRIPT
Low Pin-Count PIC® Flash Microcontrollers
Peripheral Rich PIC® Flash Microcontrollers
������
���������
������������ ���
��������� ���
����
������������������
Timer0:• 8-bit timer/counter with 8-bit
programmable prescalerTimer1:• 16-bit timer/counter with prescaler• External gate input mode• Option to use external crystal for real time clockTimer2:• 8-bit timer/counter with 8-bit period register,
prescaler and postscaler
������
��������
Supports RS-232,RS-485, and LIN 1.2Auto baud detectAuto wake-up on start bit
���
10-bit resolutionUp to 8 input channelsVoltage reference input
�����������
Up to two analogcomparatorsProgrammable on-chipvoltage reference(CVREF) module (% ofVDD)Comparator inputs andoutputs externallyaccessible
Enhanced Capture/Compare/PWM (ECCP) Module16-bit Capture, max resolution12.5 nsCompare, max resolution 200 ns10-bit PWM with 1, 2 or 4output channels,programmable deadbandcontrol, max frequency 20 kHz
����������� � ������������� ������� �����������
�
������
����������������
������������
��
��
����
����������
����������� � ���������������� ������� �����������
������ ��
���������
�������� ��
���������
���������
������ ��
���������
�������� ��
������ ��
���������
�������� ��
���������
���������
������ ��
���������
���������
OSC1
OSC2
SLEEP
Primary Oscillator
LP, XT, HS, RC, EC
CPU
Peripherals
Postscaler
MUX
MUX
8 MHz
4 MHz
2 MHz
1 MHz
500 kHz
125 kHz
250 kHz
OSCCON<6:4>
111
110
101
100
011
010
001
00031 kHz31 kHzSource
InternalOscillatorBlock
Power-up Timer, WDT, Fail-Safe Clock Monitor
Internal Oscillator
INTRC
INTOSC
FOSC2:FOSC0, SCS
8 MHzSource
Flexible Clock Management System for PIC Microcontrollers
Tap into the power of versatility in your next embedded system design with Microchip Technology’s Low Pin-CountPIC® Flash microcontrollers. These 8- and 14-pin devices provide a unique combination of robust program memoryand popular peripheral options along with industry leading power management choices. These microcontrollers are well suited for a wide range of applications including home appliances, battery-operated or handheld products, sensors, automotive and general-purpose control functions.
Based on the PIC x14 architecture, these microcontrollers provide leading edge performance via design features such as a modified Harvard 14-bit instruction set, single cycle and single word instructions, sophisticated hardware peripherals and advanced on-chip analog peripherals. Key standard features include a wide operating voltage of 2.0-5.5 volts, on-board EEPROM data memory and precision internal oscillator along with analog peripherals such as up to 8 channels of 10-bit ADC and an analog comparator module with programmable on-chip voltage reference. Additional on-chip peripherals include a Capture/Compare/PWM (CCP) or Enhanced Capture/Compare/PWM (ECCP). The ECCP peripheral provides up to four outputs with programmable dead band delay and auto-shutdown and restart options. Serial communication is offered with the Enhanced USART (EUSART) peripheral that supports communications protocols such as RS232/485 as well as the LIN protocol.
These new PIC devices also provide designers with the most advanced and reliable Flash memory technology available—Microchip’s PMOS Electrically Erasable Cell (PEEC) Flash technology. PEEC Flash increases reliability through in-field reprogrammability that can withstand one million erase/write cycles on each memory location at a wide range of operating temperatures.
Versatile Low Pin-Count PIC® Flash Microcontrollers
For more details on the PIC12F and PIC16F microcontroller families, visit www.microchip.com.
Featuring the proprietary nanoWatt Technology, these Low Pin-Count PIC Flash microcontrollers give you the versatility to reduce system power consumption, increase reliability and performance, and minimize cost by eliminating external components. nanoWatt Technology provides the system designer greater control of on-board peripherals, including an 8 MHz internal oscillator with several software selectable speed options down to 32 kHz. Extremely low sleep current consumption combined with a fast startup internal oscillator enables low power consumption system design. Periodic wake-up mechanisms include low power real time clock (Timer1) operation, ultra low power wake-up feature and an extended low power Watchdog Timer (WDT). Even at very low power, the devices offer reliable operation with a software selectable Brownout Reset (BOR) circuit.
Featuring nanoWatt Technology
Power Management Features · Precision internal oscillator
– Factory calibrated to ±1%– Various software selectable frequency
options from 8 MHz to 31 kHz· Power saving SLEEP mode· Low power Timer 1 · Clock mode switching during operation · Two-speed start-up mode· Extended Watchdog Timer (WDT) with on-chip oscillator (software selectable, nominal 268 seconds with full prescaler) and software enable· Brownout Detect (BOD) with software control option
–Ultra low power wake-up –PEEC Flash reliability
������
���������
������������ ���
��������� ���
����
������������������
Timer0:• 8-bit timer/counter with 8-bit
programmable prescalerTimer1:• 16-bit timer/counter with prescaler• External gate input mode• Option to use external crystal for real time clockTimer2:• 8-bit timer/counter with 8-bit period register,
prescaler and postscaler
������
��������
Supports RS-232,RS-485, and LIN 1.2Auto baud detectAuto wake-up on start bit
���
10-bit resolutionUp to 8 input channelsVoltage reference input
�����������
Up to two analogcomparatorsProgrammable on-chipvoltage reference(CVREF) module (% ofVDD)Comparator inputs andoutputs externallyaccessible
Enhanced Capture/Compare/PWM (ECCP) Module16-bit Capture, max resolution12.5 nsCompare, max resolution 200 ns10-bit PWM with 1, 2 or 4output channels,programmable deadbandcontrol, max frequency 20 kHz
����������� � ������������� ������� �����������
�
������
����������������
������������
��
��
����
����������
����������� � ���������������� ������� �����������
������ ��
���������
�������� ��
���������
���������
������ ��
���������
�������� ��
������ ��
���������
�������� ��
���������
���������
������ ��
���������
���������
Robust Performance in a Single 8/14-Pin Device
������
���������
������������ ���
��������� ���
����
������������������
Timer0:• 8-bit timer/counter with 8-bit
programmable prescalerTimer1:• 16-bit timer/counter with prescaler• External gate input mode• Option to use external crystal for real time clockTimer2:• 8-bit timer/counter with 8-bit period register,
prescaler and postscaler
������
��������
Supports RS-232,RS-485, and LIN 1.2Auto baud detectAuto wake-up on start bit
���
10-bit resolutionUp to 8 input channelsVoltage reference input
�����������
Up to two analogcomparatorsProgrammable on-chipvoltage reference(CVREF) module (% ofVDD)Comparator inputs andoutputs externallyaccessible
Enhanced Capture/Compare/PWM (ECCP) Module16-bit Capture, max resolution12.5 nsCompare, max resolution 200 ns10-bit PWM with 1, 2 or 4output channels,programmable deadbandcontrol, max frequency 20 kHz
����������� � ������������� ������� �����������
�
������
����������������
������������
��
��
����
����������
����������� � ���������������� ������� �����������
������ ��
���������
�������� ��
���������
���������
������ ��
���������
�������� ��
������ ��
���������
�������� ��
���������
���������
������ ��
���������
���������
World-Class Development Tools
Take advantage of Microchip’s world-class development tools for PIC microcontrollers. Operating under the free MPLAB® IDE Integrated Development Environment, Microchip’s development systems are easy to use and help reduce design time.
MPLAB IDE Integrated Development Environment Offering tremendous value, this free Windows® application provides multiple debugging tools in a single development platform. Use the MPLAB IDE to edit source files, compile,and download to a PIC emulator and simulator tools. Debugging is supported for source files, absolute listing files or machine code.
PICkit™ 1 Flash Starter KitA quick, easy and low cost way to develop applications from concept to prototype using 8- and 14-pin PIC microcontrollers, the PICkit 1 Flash Starter Kit provides everything needed to program, evaluate and develop applications and includes tutorial
software and code for various applications along with the MPLAB IDE software.
MPLAB ICD 2 In-Circuit Debugger and ProgrammerThis low cost development tool connects a PC and the designer’s target board for direct in-circuit debugging of the target PIC microcontroller. The tool allows you to execute programs in real time or single step, establish watch variables, set break points, complete memory read/writes and more. The MPLAB ICD 2 also serves as a development programmer for the target PIC microcontroller.
MPLAB ICE 2000 In-Circuit Emulator Small, portable and lightweight, the MPLAB ICE 2000 In-Circuit Emulator provides a complete design tool for the engineer using PIC microcontrollers. Software control of the emulator is provided by MPLAB IDE.
Endless Applications
The Low Pin-Count PIC Flash microcontrollers are ideally suited for a wide variety of applications which
require both analog and digital functionality. Exceptional performance and a range of features bring more versatility
to typical applications.
Related Application Notes and Technical Briefs
AN216 DC/DC Converter Controller Using a PICmicro® Microcontroller
AN234 Hardware Techniques for PICmicro Microcontrollers
AN235 Implementing a LIN Master Node Driver on a PIC18 Microcontroller with USART
AN237 Implementing a LIN Slave Node on a PIC16F73
AN238 Tire Pressure Monitoring(TPM) System
AN513 Analog to Digital Conversion
AN538 Using PWM to Generate Analog Output
AN594 Using the CCP Modules
AN847 RC Model Aircraft Motor Control
AN874 Buck Configuration High-Power LED Driver
AN879 Using the Microchip Ultra Low-Power Wake-Up Module
AN892 Fail-Safe Monitoring and Clock Frequency Switching Using the PIC16F684
AN893 Low-Cost Bidirectional Brushed DC Motor Control Using the PIC16F684
AN905 Brushed DC Motor Fundamentals
AN906 Stepper Motor Control Using the PIC16F684
AN907 Stepper Motor Fundamentals
Other Design Resources
DS40040 Tips ‘N Tricks 8-Pin Flash
DS41200 Tips ‘N Tricks Power Management
DS41214 Tips ‘N Tricks CCP and ECCP
DS41215 Tips ‘N Tricks Comparators
Visit www.microchip.com/versatile for additional information.
Automotive · Body Electronics· Car Seats· Dashboard Controls· LED Drivers
Industrial· Power Supplies· Sensor/Actuator Control · Automation Networks· Point-of-Sale Printers and Card Readers
Home Automation/Sensors· Timers· Smoke Detectors· Security Sensors· Small Appliances: Toasters, Coffee Machines, etc.
Handheld and Battery-Powered Devices· Toys· Cellular Phones/PDA Add-On Modules· Electric Toothbrushes· Power Tools· Battery Chargers
Motor Control· DC Brush Motors· DC Brushless Motors· Stepper Motors· Bidirectional Motors
Low Pin-Count PIC Flash Microcontrollers
Device
FlashProgramMemory
DataRAMBytes
EEPROMData
I/OPins
ADC10-Bits Comparators BOR Timers ICSP™ Comments Packages
Classic
PIC12F629 1792 64 128 6 - 1 Yes1-8-bit, 1-16-bit1-WDT
Yes 4 MHz Internal Oscillator, ICD*
8 Lead PDIP, SOIC and DFN
PIC12F675 1792 64 128 6 4 1 Yes1-8-bit, 1-16-bit1-WDT
Yes 4 MHz Internal Oscillator, ICD*
8 Lead PDIP, SOIC and DFN
PIC16F630 1792 64 128 12 - 1 Yes1-8-bit, 1-16-bit1-WDT
Yes 4 MHz Internal Oscillator, ICD*
14 Lead PDIP, SOIC and TSSOP
PIC16F676 1792 64 128 12 8 1 Yes1-8-bit, 1-16-bit1-WDT
Yes 4 MHz Internal Oscillator, ICD*
14 Lead PDIP, SOIC and TSSOP
Enhanced
PIC12F683 3584 128 256 6 4 1 Yes1-8-bit, 1-16-bit1-WDT
Yes8 MHz Internal Oscillator, ICD*,
CCP
8 Lead PDIP, SOIC and DFN
PIC16F684 3584 128 256 12 8 2 Yes2-8-bit, 1-16-bit1-WDT
Yes8 MHz Internal Oscillator, ICD*,
ECCP
14 Lead PDIP, SOIC and TSSOP
PIC16F688 7168 256 256 12 8 2 Yes1-8-bit, 1-16-bit1-WDT
Yes8 MHz Internal Oscillator, ICD*,
EUSART
14 Lead PDIP, SOIC and TSSOP
Enhanced Battery Optimized
PIC12F635† 1792 64 128 6 - 1 Yes1-8-bit, 1-16-bit1-WDT
Yes
8 MHz Internal Oscillator, ICD*, PLVD, KEELOQ®
Technology
8 Lead PDIP, SOIC and DFN
PIC16F636† 3584 128 256 12 - 2 Yes2-8-bit, 1-16-bit1-WDT
Yes
8 MHz Internal Oscillator, ICD*, PLVD, KEELOQ®
Technology
14 Lead PDIP, SOIC and TSSOP
PIC16F639† 3584 128 256 12 - 2 Yes1-16 bit, 1-8 bit, 1-WDT
Yes
8 MHz Internal Oscillator, ICD*, PLVD, KEELOQ® Technology, AFE
20 Lead PDIP, SOIC and
SSOP
† Contact Microchip for availability * Requires purchase of separate adapter module
Abbreviation: ADC = Analog-to-Digital Converter ICSP™ = In-Circuit Serial Programming™ ICD = In-Circuit Debugger WDT = Watchdog Timer BOR = Brown-Out Reset ECCP = Enhanced Capture/Compare/PWM AFE= Analog Front End CCP= Capture/Compare/PWM PLVD = Programmable Low Voltage Detect
· PIC Microcontrollers · Radio Frequency Products · Mixed-Signal ICs· dsPIC Digital Signal Controllers · MPLAB Development Tools · Interface Devices· Battery Management ICs · Power Management ICs · Serial EEPROMs· Thermal Management ICs · Linear ICs · KEELOQ Security Devices
Innovative Product Portfolio
Microchip Technology has focused its technology, engineering, manufacturing and marketing resources on developing synergistic product lines to provide complete product solutions. Microchip’s diverse product portfolio ranges from 8-bit PIC microcontrollers and KEELOQ® security devices to serial EEPROMs and analog devices. Other innovative offerings include dsPIC® Digital Signal Controllers which seamlessly integrate the control attributes of a 16-bit microcontroller with the computation and throughput capabilities of a digital signal processor.
2355 West Chandler Boulevard • Chandler, Arizona 85224-6199 • (480) 792-7200 • Fax (480) 792-7277
Worldwide Sales & Service
At Microchip, we understand that it takes more than product specifications to create loyal customers. In addition to a broad product portfolio, we understand the value of a complete design solution. That’s why we maintain a worldwide network of sales and support. Our technical support is unmatched with a global network of experienced field application engineers and technical support personnel ready to provide product and system assistance to help you further streamline your design, prototype and production activities.
www.microchip.com/versatile
ASIA/PACIFICAustralia 61-2-9868-6733 China – Beijing 86-10-85282100 China – Chengdu 86-28-86766200China – Fuzhou 86-591-7503506 China – Hong Kong 852-2401-1200China – Shanghai 86-21-6275-5700 China – Shenzhen 86-755-82901380China – Shunde 86-757-28395507 China – Qingdao 86-532-5027355 India 91-80-2290061 Japan 81-45-471-6166 Korea 82-2-554-7200 Singapore 65-6334-8870 Taiwan 886-2-2717-7175Taiwan – Kaohsiung 886-7-536-4818
EUROPEAustria 43-7242-2244-399Denmark 45-4420-9895 France 33-1-69-53-63-20 Germany 49-89-627-144-0 Italy 39-0331-742611Netherlands 31-416-690399 United Kingdom 44-118-921-5869
AMERICASAtlanta 770-640-0034 Boston 978-692-3848 Chicago 630-285-0071 Dallas 972-818-7423 Detroit 248-538-2250 Kokomo 765-864-8360 Los Angeles 949-263-1888 San Jose 650-215-1444 Toronto 905-673-0699
Sales Listing
Technical Support: 480-792-7627Web Address: www.microchip.com
Information subject to change. The Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, MPLAB, PIC, PICmicro, PICSTART, PRO MATE and PowerSmart are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. AmpLab, FilterLab, microID, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartShunt and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Application Maestro, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, microPort, Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPIC, Select Mode, SmartSensor, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. Serialized Quick Turn Programming (SQTP) is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ©2004 Microchip Technology Inc. All rights reserved. Printed in the U.S.A. DS41223A 1/04