Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Speed 12 Clock/instruction cycle 4 Clock/instruction cycle 1 clock/ instruction cycle 1 clock/ instruction cycle
Flash, SDRAM,
Memory ROM, SRAM, FLASH SRAM, FLASH Flash, SRAM, EEPROM
EEPROM
ISA CISC RISC RISC RISC
Modified Harvard
Memory Architecture Harvard architecture Harvard architecture Harvard
architecture
Power Consumption Average Low Low Low
PIC16,PIC17, PIC18, Tiny, Atmega, Xmega,
Families 8051 variants ARMv4,5,6,7 and series
PIC24, PIC32 special purpose AVR
Community Vast Very Good Very Good Vast
NXP, Atmel, Silicon Labs, Apple, Nvidia,
Manufacturer Dallas, Cyprus, Infineon, Microchip Average Atmel Qualcomm, Samsung
etc. Electronics, and TI etc.
Cost (as
compared to features Very Low Average Average Low
provide)
High speed operation
Other Feature Known for its Standard Cheap Cheap, effective Vast
I/0 Ports = 4 (P0, P1, P2, P3) I/0 Ports = 5 (PORTA - PORTE)
Interrupt Sources = 6 Interrupt Sources =18
ADC = 8 (10-bit resolution)
CCP modules = 2
I/O ports
7-bit PORTA (RA0 – RA6)
8-bit PORTB (RB0 – RB7)
8-bit PORTC (RC0 – RC7)
8-bit PORTD (RD0 – RD7)
3-bit PORTE (RE0 – RE2)
Analog channels (AN0 – AN7)
Vdd , Vss
External Interrupts
INT0
INT1
INT2
COMPILER USED TO PROGRAM
MPLAB C-18
Mikro-C
Very minor
difference in
syntax!!!
REGISTER ADDRESSING SYNTAX
• How to move data in any particular register of PIC???
PORTA.RA2=1;
PORTA.F2=1;
PORTA.B2=1; They all
are same
PORTA2_bit=1;
RA2_bit=1;
State of pins
Analog All pins multiplexed with ADC’s are by default Analog inputs.
Digital Rest all pins are by default digital inputs.