Professional Documents
Culture Documents
and Interfacing
Lecture # 2
PIC18 Family
Muhammad Naveed Shaikh
Department of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
naveedshaikh@cuiatd.edu.pk
Microprocessor Systems & Interfacing
History of PIC
• Microchip Technology introduced an 8-bit microcontroller
(1989)
• PIC (Peripheral interface controller)
• Small RAM along with few hundred bytes of ROM
• 8 pin package
• One timer
• Few pin for I/O ports
• Now, Microchip is leading microcontroller supplier
• PIC has many families available
• PIC10xx, PIC12xx, PIC14xx, PIC16xx PIC18xx, PIC24xx and PIC32xx
2
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
PIC18 Family
• 8-bit processors
• They are not compatible with other PIC families
• Variety of IC Packages (pin varies from 18 to 80 pin)
• Other families are easier to code for those
programmers
• Who have mastered PIC18
3
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
PIC18 Features
•RISC Architecture •Timers
•On chip ROM •ADC
•Data RAM •USART
•EEPROM •I/O ports
4
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
5
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
UV-EPROM
• PROM Burner is required
• To written down the code into the ROM
• UV –EPROM eraser is also required
• To erase the code from ROM
• Takes 20 to 30 minutes to be erased
• That's why it has been replaced by FLASH type
6
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
Flash ROM
• Can be erased with in seconds
• That’s why its termed as flash
• Indicated by letter F
• Requires ROM Burner
• To write the code into the ROM
• Does not require extra eraser
• Since its Electrical erasable
• Same ROM burner can be used to erase the code from ROM
7
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
OTP ROM
• OTP Stands for one time programmable
• Programmed once
• Can't be erased
• C is designated letter to indicate OTP
• When this will be used??
• Once code is matured and does not require any amendments
• Then OTP type controller is used
• Product Development
• Low priced compared to Flash
8
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
Masked ROM
• These are special on demand ROM type
• Microchip technology develop controller with these ROM
• Code is written down during the fabrication process of
microcontroller
• That’s why it is called Masked ROM
• It is cheapest version
9
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
10
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
I/O pins
• PIC18 can have pins between 16 to 72 I/O pins
• PIC18F452 can have maximum 34 I/O pins
• Package pins goes from 18 to 80 pins
• PIC18F452 have 40 dual inline package
11
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
PIC onchip-peripherals
•ADC
•USART
•Timers
•Comparator
12
Department of Electrical and Computer Engineering, CUI, Abbottabad Campus
Microprocessor Systems & Interfacing
Thank you