Documente Academic
Documente Profesional
Documente Cultură
Chapter Two
Outline
Review of Memory Technologies The PIC 16 Series PIC 16F84A The PIC 16F84A Memory The Oscillator Instruction Cycle Power-up and Reset
Dr. Gheith Abandah 2
16LF84A 16F84A-04
16F873A
28
16F874A
40
16F876A
28
16F877A
40
PIC 16F84A
SRAM
EEPROM SRAM
68 Bytes
64 Bytes 8 x 13 bits
10,000 erase/write cycles Retains data down to 1.5 V 10,000,000 erase/write cycles
11
12
Configuration Word
Allows the user to define certain configurable features of the microcontroller, at the time of program download.
Dr. Gheith Abandah 13
The Oscillator
It is necessary to provide the clock signal. The clock is a continuously running fixed frequency logic square wave. The overall speed of the microcontroller operation is entirely dependent on this clock frequency. Higher frequency -> Higher Performance and higher power consumption.
Dr. Gheith Abandah 15
Instruction Cycle
The main oscillator signal is divided by 4 to produce the instruction cycle time.
16
Pipelining
All PIC microcontrollers implement pipelining. Pipelining fails when one instruction changes the contents of the Program Counter.
17
18
Summary
The PIC 16 Series is a diverse and effective family of microcontrollers. The 16F84A architecture is representative of all 16 Series microcontrollers, with Harvard structure, pipelining and a RISC instruction set. The PIC 16F84A has a limited set of peripherals, chosen for small and low-cost applications. It is thus a smaller member of the family, with features that are a subset of any of the larger ones. The 16F84A uses three distinct memory technologies for its different memory areas. A particular type of memory location is the Special Function Register, which acts as the link between the CPU and the peripherals. Reset mechanisms ensure that the CPU starts running when the appropriate operating conditions have been met, and can be used to restart the CPU in case of program failure.
Dr. Gheith Abandah 19