Download Microcontroladores PIC primera parte

Document related concepts
no text concepts found
Transcript
0LFURFRQWURODGRUHV
Facultad de Ciencias Exactas
Universidad Nacional del Centro de la Provincia de Buenos Aires
Tema: µC Familia PIC
Dr. Mario Barbaglia
Microcontroladores PIC
Fabricante: 0LFURFKLS7HFKQRORJ\ ,QF
Tecnología: 5,6&
Modelo: +DUZDUG
&DWHJRUtDV
1. Base-Line: 12-bit Instruction Word length
2. Mid-Range: 14-bit Instruction Word length
3. High-End: 16-bit Instruction Word length
Características del 3,&)$
+LJK 3HUIRUPDQFH 5,6&&38
)HDWXUHV
Only 35 single word inst ruct ions t o
learn
{
All inst ruct ions single- cycle
except for program branches
which are t wo- cycle
{
Operat ing speed: DC - 20 MHz
clock input DC - 200 ns
inst ruct ion cycle
{
1024 words of program m em ory
{
68 byt es of Dat a RAM
{
64 byt es of Dat a EEPROM
{
14- bit wide inst ruct ion words
{
8- bit wide dat a byt es
{
15 Special Funct ion Hardware
regist ers
{
Eight - level deep hardware st ack
{
Direct , indirect and relat ive
addressing m odes
{
Four int errupt sources:
- Ext ernal RB0/ I NT pin
- TMR0 t im er overflow
- PORTB< 7: 4> int errupt - on- change
- Dat a EEPROM writ e com plet e
{
3HULSKHUDO )HDWXUHV
13 I / O pins w it h individual direct ion
cont rol
High current sink/ source for direct LED
drive
- 25 m A sink m ax. per pin
- 25 m A source m ax. per pin
TMR0: 8- bit t im er/ count er wit h 8- bit
program m able prescaler
6SHFLDO 0LFURFRQWUROOHU )HDWXUHV
10,000 erase/ writ e cycles Enhanced
FLASH
Program m em ory t ypical
10,000,000 t ypical erase/ writ e cycles
EEPROM
Dat a m em ory t ypical
EEPROM Dat a Ret ent ion > 40 years
I n- Circuit Serial Pr ogram m ing™
( I CSP™) - via
t wo pins
Power- on Reset ( POR) , Power- up Tim er
( PWRT) ,
Oscillat or St art - up Tim er ( OST)
Wat chdog Tim er ( WDT) wit h it s own
On- Chip RC
Oscillat or for reliable operat ion
Code prot ect ion
Power saving SLEEP m ode
Select able oscillat or opt ions
Familia PIC: filosofía de diseño
{
I nst rucciones sim ples y rápidas
{
Repert orio de inst rucciones
ort ogonal ( cualquier operación con cualquier
regist ro)
{
Longit ud de inst rucciones y de
dat os const ant e
16F84A
Estructura interna
16F84A
ALU
Pipeline
16F84A
Denominación de contactos
16F84
Reloj
16F84
Registro de configuración
16F84A
Reset
16F84A
Reset
16F84A
Organización de la memoria
Registro de funciones especiales
(Special Function Register)
16F84A
16F84A
Registro de estado
16F84A
Registro de Opciones