0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56...

16
0LFURFRQWURODGRUHV Dr. Mario Barbaglia Facult ad de Ciencias Exact as Universidad N acional del Centro de la Provincia de Buenos Aires Tema: μC Familia PIC

Transcript of 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56...

Page 1: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

0LFURFRQWURODGRUHV

Dr. Mario Barbaglia

Facultad de Ciencias ExactasUniversidad Nacional del Centro de la Provincia de Buenos Aires

Tema: µC Familia PIC

Page 2: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

Microcontroladores PIC

Fabricante: 0LFURFKLS�7HFKQRORJ\ ,QF�Tecnología: 5,6&Modelo: +DUZDUG&DWHJRUtDV�1. Base-Line: 12-bit Instruction Word length2. Mid-Range: 14-bit Instruction Word length3. High-End: 16-bit Instruction Word length

Page 3: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

Características del 3,&���)��${ +LJK 3HUIRUPDQFH 5,6&�&38�)HDWXUHV�

� Only 35 single word inst ruct ions to learn

{ All inst ruct ions single-cycle except for program brancheswhich are two-cycle

{ Operat ing speed: DC - 20 MHz clock input DC - 200 nsinst ruct ion cycle

{ 1024 words of program m emory{ 68 bytes of Data RAM{ 64 bytes of Data EEPROM{ 14-bit wide inst ruct ion words{ 8-bit wide data bytes{ 15 Special Funct ion Hardware

registers{ Eight - level deep hardware stack{ Direct , indirect and relat ive

addressing modes{ Four interrupt sources:- External RB0/ INT pin- TMR0 t im er overflow- PORTB< 7: 4> interrupt -on-change- Data EEPROM write com plete

3HULSKHUDO )HDWXUHV�

� 13 I / O pins with individual direct ion cont rol

� High current sink/ source for direct LED dr ive

- 25 mA sink m ax. per pin- 25 mA source max. per pin

� TMR0: 8-bit t imer/ counter with 8-bitprogrammable prescaler6SHFLDO 0LFURFRQWUROOHU )HDWXUHV�

� 10,000 erase/ write cycles Enhanced FLASH

Program memory typical� 10,000,000 typical erase/ write cycles

EEPROMData memory typical

� EEPROM Data Retent ion > 40 years

� I n-Circuit Serial Programming™ ( I CSP™) - via

� two pins

� Power-on Reset (POR), Power-up Timer (PWRT) ,

� Oscillator Start -up Timer (OST)

� Watchdog Timer (WDT) with its own On-Chip RC

Oscillator for reliable operat ion

� Code protect ion

� Power saving SLEEP mode

� Selectable oscillator opt ions

Page 4: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

Familia PIC: filosofía de diseño

{ I nst rucciones simples y rápidas

{ Repertorio de inst rucciones ortogonal (cualquier operación con cualquier regist ro)

{ Longitud de inst rucciones y de datos constante

Page 5: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Estructura interna

Page 6: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A ALU

Page 7: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

Pipeline

Page 8: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Denominación de contactos

Page 9: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84 Reloj

Page 10: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84 Registro de configuración

Page 11: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Reset

Page 12: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Reset

Page 13: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Organización de la memoria

Page 14: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Registro de funciones especiales (Special Function Register)

Page 15: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Registro de estado

Page 16: 0LFURFRQWURODGRUHV · 2004. 6. 23. · Microsoft PowerPoint - clase_5.ppt Created Date: 21:56 6/22/2004 ...

16F84A Registro de Opciones