Книга: Advanced PIC Microcontroller Projects in C
1.3.2 The Clock
1.3.2 The Clock
All microcontrollers require a clock (or an oscillator) to operate, usually provided by external timing devices connected to the microcontroller. In most cases, these external timing devices are a crystal plus two small capacitors. In some cases they are resonators or an external resistor-capacitor pair. Some microcontrollers have built-in timing circuits and do not require external timing components. If an application is not time-sensitive, external or internal (if available) resistor-capacitor timing components are the best option for their simplicity and low cost.
An instruction is executed by fetching it from the memory and then decoding it. This usually takes several clock cycles and is known as the instruction cycle. In PIC microcontrollers, an instruction cycle takes four clock periods. Thus the microcontroller operates at a clock rate that is one-quarter of the actual oscillator frequency. The PIC18F series of microcontrollers can operate with clock frequencies up to 40MHz.
- 1.3.1 Supply Voltage
- 1.3.2 The Clock
- 1.3.3 Timers
- 1.3.4 Watchdog
- 1.3.5 Reset Input
- 1.3.6 Interrupts
- 1.3.7 Brown-out Detector
- 1.3.8 Analog-to-Digital Converter
- 1.3.9 Serial Input-Output
- 1.3.10 EEPROM Data Memory
- 1.3.11 LCD Drivers
- 1.3.12 Analog Comparator
- 1.3.13 Real-time Clock
- 1.3.14 Sleep Mode
- 1.3.15 Power-on Reset
- 1.3.16 Low-Power Operation
- 1.3.17 Current Sink/Source Capability
- 1.3.18 USB Interface
- 1.3.19 Motor Control Interface
- 1.3.20 CAN Interface
- 1.3.21 Ethernet Interface
- 1.3.22 ZigBee Interface