Tuesday, December 02, 2014

Introduction to PIC 18F2550 Micocontroller


Microcontroller :


Basically, microcontroller is  one kind  of Integrated circuit (IC) which can be defined  as the single chip computer. Microcontroller is very similar with computer and a microcontroller contains processor ,I/O ports, RAM, EEPROM etc. Microcontroller is a little computer which is designed to govern the operation of embedded systems in motor vehicles, robots, office machines, complex medical devices, mobile radio transceivers, vending machines, home appliances, and various other devices. 

If  you like to get more details, here is a link  wikipedia


PIC 18f2550 Micocontroller's Pin out 





 Some necessary information about PIC 18F2550 Microcontroller are given here :

 
PORTA : Pins from RA0-RA7 are included to PORTA. Those pins can perform in
both operation input and output. Those pins are also used for converting Analog signal to Digital signal.

If  we write PORTA.F0 =1, RA0 the pin gets  VDD. When PORTA.F0 =0, the pin gets GND. As we like to use PORTA for I/O, it is required to select related RESISTER. We can initialize RA0 as input by TRISA.F0=1 and TRISA.F0=0 for output.

PORTB : Pins from RB0-RB7 are included to PORTB. Those pins also can perform in both operation input and output. Those pins have ADC functions also. If  we write PORTB.F0 =1, RB0 the pin gets  VDD. When PORTB.F0 =0, the pin gets GND. As we like to use PORTB for I/O, it is required to select related RESISTER. We can initialize RB0 as input by TRISB.F0=1 and TRISB.F0=0 for output.

PORTC : Generally we use RC0,RC1,RC2,RC7,RC6 for input /output. If we write PORTC.F0 =1, RC0 the pin gets  VDD. When PORTC.F0 =0, the pin gets GND. As we like to use PORTC for I/O, it is required to select the RESISTER. We can initialize RC0 as input by TRISC.F0=1 and TRISC.F0=0 for output.

USB Communication Pins : The 14, 15 and 16 number pins are used for USB communication.The microcontroller supports USB 1.0 .
*Pin 14  ----- Vusb                 [Which is connected with 220nf  capacitors in USB communication]
*Pin 16  ----- D+
*Pin 15  ----- D-

Pins for Serial Communication : Basically 17and 18 pins are used for RS232 communication. The 17th pin is RC6 and 18th pin is RC7. Here we use 17th pin or RC6 pin as Tx and 18th pin or RC7 pin as Rx. Tx for transmitting signal and Rx for receiving signal.

VDD , VSS & MCLR :We need to supply 5 volt to run the microcontroller .VDD pin should be connected with +5V and all VSS pins should be connected with groung(GND).

Here is the important thing,  the MCLR pin is used to resetting microcontroller and it's also called the Master RESET pin.

When MCLR==1, it's not activated and in MCLR==0 it's activated.

INTERRUPT : Basically interrupt means restrict something. We can use INT pin for enabling and disabling interrupt in microcontroller. INT=1 for enabling interrupt and INT=0 for disabling the interrupt. During INT=1 others process should be disabled.

Clock : With a view to measuring the time, we need crystal and two 22pf capacitors. If we use 12MHz crystal, we can measure time period by it. 9th and 10th number pins [OSC1 &OSC2  ]      are used for connecting crystal.


Pic microcontroller also has SPI , I2C connection options. I didn't describe about SPI because at beginning state you don't need this. When you will be an expert, automatically you will be informed about this. You will know about I2C communication in Real Time Digital Clock Project

If you are a beginner, I would recommend you continue Newer Posts one by one. From this blog, you can download some software packages also.

 

Thank You!


2 comments:

  1. Very informative, simple and direct! Great article my friend. Hugs from Argentina!!!

    ReplyDelete

Ain't getting any visitors!
Please Share and Bookmark posts.

Tags

: (1) 18F2550 (1) 36KHz (3) and (1) arduino (1) Based (1) battery (1) Bipolar (1) Blinking (1) blinks (1) Bluetooth (1) bluetooth device interfacing (1) bluetooth module (1) button (1) circuit (1) clock (1) control (1) crystal oscillator (3) Db9 (1) DC Motor (2) digital (2) Digital Voting Machine (1) digital voting machine using pic (1) display (2) DS1307 (1) electronic (1) embedded c programming tutorial (11) embedded c tutorial (11) experiment kit (4) external interrupt (4) flash (1) flashing (1) Gas Leakage detector (1) HC-06 (1) home (1) how (1) How to (10) i2c tutorial (1) in (1) indicator (1) infrared Connection (3) interface (8) interfacing (3) Interrupt (3) Introduction (1) IR Connection (3) IR Receiver (4) IR Transmitter (4) key pad (1) keyboard (1) keypad (1) lavel (1) Lcd 16x2 (2) lcd 2x16 (2) led (1) lm35 (2) LPG (1) machine (1) make (1) Make bootloader (1) making (1) matrix (1) max232 (1) membrane keyboard (2) meter (2) Micocontroller (1) microchip (4) microchip pic (2) microchips (3) microcontroller (9) microcontroller based (3) microcontroller programming (3) Microcontroller Project (4) Microcontroller Projects (1) microcontroller_project (2) microcontrollers (4) Microprocessor (2) mikroC (5) mikroc code to start and stopstart and stop dc motor (1) mikroc pro for pic (2) Motion detector (1) MQ-9 Gas Sensor (1) musical (1) NEC Protocol (4) pcb (5) PIC (3) pic controller (11) pic microcontroller (11) pic microcontroller tutorial (11) pic programming (1) pic programming in c (12) pic proteus (1) Pic Tutorial (12) pic18 (2) pic18f2550 (11) picmicrocontroller (4) picRFモジュール (1) PIR Motion Sensor (1) printed circuit board (1) proteus (6) pulse width modulation (1) push (1) push button (1) PWM (1) real (1) rf transmitter (3) Rs 232 (1) Rs232 (1) scroll (1) scrolling (1) Serial communication (1) Serial Connection (1) Serial Port (1) serial port rs232 (1) Servo Motembedded c programming tutorial (1) simulation (2) Soil Moisture Meter (1) speed control (1) step by step (7) step bystep (1) Stepper Motor (2) text (2) Thief Detector (1) time (1) timer (4) timer0 (4) tone (1) TSOP38236 Receiver (4) tutorial (2) Unipolar (1) USART Connection (1) USB (1) usb 1.0 (1) USB bootloadere (1) USB HID (1) using (9) voltmeter (1) voting (1) water level indicator (3) with (2) work (1)

Traffic Feed


Live Traffic Feed
Visitor Tracking

Leave Your Message Here

Name

Email *

Message *

Like on Facebook