Pic Intro
Pic Intro
Peripheral
Interface
Controller
Functional Requirements
Device
Device ON Temperature < 60 deg C
Automotive Mechatronics
Internal
ADC Timers Oscillator
PIC Microcontrollers
Memory Type I/O Pin counts Memory Size (bytes)
Flash 6 – 17 pins 0.5K – 1K
OTP 18 – 27 pins 2K – 4K
ROM 28 – 44 pins 8K – 16K
45 – 80 pins 24K – 32K
48K – 64K
96K – 128K
Special Features
Nano Watt Technology
Motor Control
LCD
USB
KEELOQ
Radio Frequency
PIC Selection
PIC16F84A
Only 35 single word instructions to learn
• All instructions single-cycle except for
program
branches which are two-cycle
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
• 1024 words of program memory
• 68 bytes of Data RAM
• 64 bytes of Data EEPROM
• 14-bit wide instruction words
• 8-bit wide data bytes
• 15 Special Function Hardware registers
Peripheral Features:
Four interrupt sources: • 13 I/O pins with individual direction control
- External RB0/INT pin • High current sink/source for direct LED drive
- TMR0 timer overflow - 25 mA sink max. per pin
- PORTB<7:4> interrupt-on-change - 25 mA source max. per pin
- Data EEPROM write complete • TMR0: 8-bit timer/counter with 8-bit
programmable prescaler
REGISTER FILE MAP
MINIMUM CIRCUIT
+5V
RL
PIC +5V
16F84A
GND
H-Bridge
PWM
Encoder
Speed Control
DC Motor Control
Things Required to use PIC in your Project
• A Good Idea
• An Application Board
• A Personal Computer