General Description............................................................................................................................................... 4
I/O Port ................................................................................................................................................................ 21
Timer0 Module and TMR0 Register .................................................................................................................... 25
Special Features of the CPU ............................................................................................................................... 35
Instruction Set Summary ..................................................................................................................................... 47
Development Support.......................................................................................................................................... 59
Index ........................................................................................................................................................................... 105
PIC12C5XX Product Identification System ................................................................................................................ 109
Sales and Support: ..................................................................................................................................................... 109
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
9.0
10.0
11.0
12.0
13.0
To Our Valued Customers
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner
of any page. The last character of the literature number is the version number. e.g., DS30000A is version A of doc-
ument DS30000.
Errata
An errata sheet may exist for current devices, describing minor operational differences (from the data sheet) and rec-
ommended workarounds. As device/documentation issues become known to us, we will publish an errata sheet. The
errata will specify the revision of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
• The Microchip Corporate Literature Center; U.S. FAX: (602) 786-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet
(include literature number) you are using.
Corrections to this Data Sheet
We constantly strive to improve the quality of all our products and documentation. We have spent a great deal of time
to ensure that this document is correct. However, we realize that we may have missed a few things. If you find any
information that is missing or appears in error, please:
• Fill out and mail in the reader response form in the back of this data sheet.
• E-mail us at webmaster@microchip.com.
We appreciate your assistance in making this a better document.
Because the speed of writing flash to the node is too slow under the tinyos system, I began to suspect that there was something wrong with the speed of SPI, so I later directly read and wrote FLASH on...
A composite USB device (including HID class interface and other types of interfaces). A CE driver has been written. It works OK. However, when you insert the USB device for the first time, you have to...
1. StatementThe author does not understand embedded development. The entire reverse process is figured out step by step based on his own reverse experience. Please criticize and correct any mistakes, ...
In recent years, as the country has vigorously carried out the construction of communication projects, the annual investment in both fixed and mobile networks has reached tens of billions. In 1999, th...
I have seen that some PCBs have strictly double-sided crossing wiring. Is there any purpose for this?
Just like this picture, Top is horizontal and Button is vertical....
1. Introduction
RFID (radio frequency identification) is a non-contact automatic identification technology that emerged in the 1990s. It uses the characteristics of radio frequency signal prop...[Details]
Electronic systems are located at different points on the automotive power bus and therefore often need to operate under very stringent power requirements. These include load dump, cold crank, very lo...[Details]
Power management solutions for today's portable application processors are becoming increasingly integrated. Total power consumption, standby and sleep current consumption affect battery size, bill...[Details]
5. Identifiers and keywords of C language
A complete PIC microcontroller C language program usually consists of six parts: include files (i.e. header files 1, variable definitions, variable de...[Details]
1. Introduction
Testing the temperature of steel billets before rolling is an important measure to ensure the quality of steel. Traditional manual testing is difficult to ensure product qu...[Details]
As a simple and practical input device, buttons have been used in various microcontroller application systems and are ubiquitous. However, the buttons used in different practical occasions are also...[Details]
In today's body control module (BCM) designs, savvy engineers are moving away from electromechanical relays whenever possible. Their next step is to eliminate fuses. But is eliminating fuses a nece...[Details]
Abstract: In recent years, with the establishment and grid-connected power generation of a large number of solar photovoltaic power stations at home and abroad, photovoltaic grid-connected inverter...[Details]
To understand how and why OLED power supply affects display image quality, you must first understand OLED display technology and power supply requirements. This article will explain the latest OLED...[Details]
introduction
Incandescent bulbs can emit a variety of light, but in specific applications, only green, red, and yellow light are usually needed - such as traffic lights. If an incand...[Details]
1 Introduction
Ultrasound refers to elastic vibration with a frequency higher than the audible frequency limit (i.e., in the frequency band above 20 kHz). The propagation process of this vib...[Details]
The power consumption of a switching power supply includes fixed losses caused by parasitic resistances such as semiconductor switches, magnetic components, and wiring, as well as switching losses ...[Details]
The automotive power electronics market has grown rapidly as comfort and active safety features become more common. As traditional mechanical functions shift to electronic applications, the demand ...[Details]
Multimedia processors are often the most power-hungry devices in portable electronic devices. Common ways to reduce CPU power requirements are to reduce clock frequency or operating voltage, but th...[Details]
1 Introduction
At present, advocating health has become the focus of people's attention, and the emergence of treadmills has become more and more popular. People can exercise at home or in the ...[Details]