The PIC Microcontroller is an electronic device that is easy-to-use in both hardware and software. Sensing the environment by receiving inputs from many sensors, PIC Microcontroller affects its surroundings by controlling lights, motors, and a number of other accessories. It's intended for anyone making interactive hardware projects by connecting it with a power source, few leds and resistors.
This course is designed to introduce the PIC Microcontroller hardware and programming environment to get you started on building projects as soon as possible.
Unleash Your Inner Hero With this Course
-PIC Microcontroller Inner structure and Programming Introduction
-Leds, Resistors and Pushbuttons
-LCD Screens and Seven Segment Displays
-Motor and Keypad.
-DIY Projects and Quick Tips
A Tool for Creating Any Device Imaginable become a favorite of electronic Students and anyone interested in Device manufacturing because of their ease of use and extremely low cost.
Example projects include Ardupilot, a UAV platform able to control aerial drones.
Contents and Overview This course is designed for anyone interested in learning electronic design. No experience is required, and all you need is PIC Microcontroller and several low cost components.
With hours of content in many lectures, this course will take you from zero experience in electronics or programming to PIC Microcontroller Master.
Limited time offer
50% off
Join Today:https://goo.gl/WQIFNY
2. ow to install Proteous
In this lesson you will learn how to install Proteus Software which is used
to make electric circuit simulation and will be used mainly to test your
code using PIC Microcontroller Simulation.
First Step is downloading the Software From this Link:First Step is downloading the Software From this Link:
http://1drv.ms/1OpVxOB
http://www.mediafire.com/download/pfis
M89.zip
Now extract the file using Winrar Software.
Do exactly like what I do in these steps to get the software up and runnin
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
Proteous Professional
In this lesson you will learn how to install Proteus Software which is used
to make electric circuit simulation and will be used mainly to test your
code using PIC Microcontroller Simulation.
First Step is downloading the Software From this Link:First Step is downloading the Software From this Link:
http://www.mediafire.com/download/pfis93kmq85s0es/P.8.3.SP2_EngA
Software.
Do exactly like what I do in these steps to get the software up and runnin
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
3. ow to Install MikroC Pro for PIC Programmin
MikroC is the programming interface software in which we will write our
code in c language to communicate with PIC Microcontroller, using this
software it will be really easy to compile and run the code and get a .hex
file which will be used in Proteus simulation or can be burned to PICfile which will be used in Proteus simulation or can be burned to PIC
Microcontroller using a certain type of programmers that we will talk
about in next chapter.
To Download the software use this link:
Now do exactly like what I do to get the software up and Running.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
Pro for PIC Programmin
is the programming interface software in which we will write our
code in c language to communicate with PIC Microcontroller, using this
software it will be really easy to compile and run the code and get a .hex
file which will be used in Proteus simulation or can be burned to PICfile which will be used in Proteus simulation or can be burned to PIC
Microcontroller using a certain type of programmers that we will talk
To Download the software use this link:
Now do exactly like what I do to get the software up and Running.
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
4. MikroC and Proteous First Design and Program
In this lesson we will make a simple circuit to get everything up and
running to start building beautiful things using PIC Microcontroller.
This circuit will include PIC microcontroller and writing a simple code to
test all ports and turn these ports on and off.test all ports and turn these ports on and off.
You will be introduced to TRIS register.
You will be introduced to Hex files.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
First Design and Program
In this lesson we will make a simple circuit to get everything up and
running to start building beautiful things using PIC Microcontroller.
This circuit will include PIC microcontroller and writing a simple code to
test all ports and turn these ports on and off.test all ports and turn these ports on and off.
You will be introduced to TRIS register.
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
5. TRIS AND PORT Registers
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
TRIS AND PORT Registers
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
6. ow to deal with PIC Ports
As we mentioned, PIC Ports are the physical connection used to allow
communicate with the outer world.
It allows receiving signals from control devices to PIC, and sending signa
from PIC to control devices.from PIC to control devices.
The full control over PIC Ports is achieved using TRIS and PORT register
which can be done using C programming Language.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
ow to deal with PIC Ports
As we mentioned, PIC Ports are the physical connection used to allow
It allows receiving signals from control devices to PIC, and sending signa
The full control over PIC Ports is achieved using TRIS and PORT register
which can be done using C programming Language.
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
7. ow to deal with PIC Ports
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
ow to deal with PIC Ports
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
8. Necessary Connections (PIC16F877A)
PIC can be bread-boarded, with the following important
connections:
Power
Ground Ground
Reset signal
Crystal (oscillator)
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
Necessary Connections (PIC16F877A)
boarded, with the following important
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
9. LED example: code
//LED example program written for
//PIC programming tutorial. From
//(http://seniord.ece.iastate.edu/dec0604/index_files/tutorialDec
//standard include files
#include <stdlib.h>
#include <pic.h>
#include “delay.h”#include “delay.h”
//main function
void main()
{
PORTA = 0x00; //set RA0-RA5 low
TRISA = 0x00; //set PORTA to output
//superloop
while(1)
{
PORTA = ~PORTA;
DelayMs(250);
}
}
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
/index_files/tutorialDec0604.pdf)
low
; //set PORTA to output
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
10. asher circuit PIC Microcontroller
We will make a flasher circuit in
which a LED will light for 1 Second
after that it will be turned off.
This process will be repeatedThis process will be repeated
indefinitely.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
asher circuit PIC Microcontroller
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
11. ghting Led follower
In this example we will make all
the LED’s light one after another
with 1 Second delay.
After that the LED’s will light in aAfter that the LED’s will light in a
reverse order from last to first.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
ghting Led follower
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
12. ontrol Led using Push Button
We will make a program to light
the LED for 10 Seconds when
the button is pressed.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
ontrol Led using Push Button
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
13. ontrolling Seven Segment using PIC
Microcontroller
Make a Circuit to display
counting from 0 to 9 then turn
off.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
ontrolling Seven Segment using PIC
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
14. Controlling Seven Segment using BCD Counte
IC Microcontroller
Make a Circuit to display
counting from 0 to 9 then turn
off.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
Controlling Seven Segment using BCD Counte
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
15. ontrolling LCD using PIC Microcontroller
Make a Program that writes “I’M
THE KING OF
Microcontrollers” on LCD
Screen.Screen.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
ontrolling LCD using PIC Microcontroller
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
16. isplay and Move Text on LCD
Make a Program that writes “I’M
THE KING OF
Microcontrollers” on LCD
Screen and moves it to Right orScreen and moves it to Right or
Left.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
isplay and Move Text on LCD
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
17. tepper Motor Control
Make a Program to control
stepper motor in such away to
make it move 5 seconds in the
left direction and 5 seconds inleft direction and 5 seconds in
the right direction.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
tepper Motor Control
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
18. ot Matrix Control
Make A program that writes the
letter A on the Dot Matrix.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
19. eypad Interface and control with PIC
Microcontroller
Write a program that shows the
number you press on portd as
binary number.
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
eypad Interface and control with PIC
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
20. Device Programmer
Need device to store machine code
into PIC’s memory (EEPROM or
Flash)
Can be external device, but ICSP is
easier:
Don’t have to remove chip from its Don’t have to remove chip from its
circuit
Provides interface between computer
(USB) and PIC
Specific to circuit (due to
interconnect scheme and
surrounding circuit)
Communication protocol requires 5
signals
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
Device Programmer
Need device to store machine code
Can be external device, but ICSP is
Don’t have to remove chip from itsDon’t have to remove chip from its
Provides interface between computer
Communication protocol requires 5
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
21. Device Programmer
Five Signals:
• Vpp (programming voltage)
• Vdd (power)
• Vss (ground)
• IC SPCLK (clock)
• IC SPDAT (data)
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer
Device Programmer
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off
22. Slide 21
A1 Vpp - Programming mode voltage. This must be connected to the MCLR pin, or the Vpp pin of the optional ICSP port available on some
large-pincount PICs. To put the PIC into programming mode, this line must be in a specified range that varies from PIC to PIC. For 5V
PICs, this is always some amount above Vdd, and can be as high as 13.5V. The 3.3V only PICs like the 18FJ, 24H, and 33F series use a
special signature to enter programming mode and Vpp is a digital signal that is either at ground or Vdd. There is no one Vpp voltage
that is within the valid Vpp range of all PICs. In fact, the minimum required Vpp level for some PICs can damage other PICs.
Vdd - This is the positive power input to the PIC. Some programmers require this to be provided by the circuit (circuit must be at least
partially powered up), some programmers expect to drive this line themselves and require the circuit to be off, while others can be
configured either way (like the Microchip ICD2). The Embed Inc programmers expect to drive the Vdd line themselves and require the
target circuit to be off during programming.
Vss - Negative power input to the PIC and the zero volts reference for the remaining signals. Voltages of the other signals are implicitly
with respect to Vss.
ICSPCLK - Clock line of the serial data interface. This line swings from GND to Vdd and is always driven by the programmer. Data is
transferred on the falling edge.
ICSPDAT - Serial data line. The serial interface is bi-directional, so this line can be driven by either the programmer or the PIC
depending on the current operation. In either case this line swings from GND to Vdd. A bit is transferred on the falling edge of PGC.
1. Select device
2. Load HEX file
3. Program PIC
Author, 9/15/2015
24. ng Ashraf Said AlMadhoun
Mechatronics Engineer
972595399311
ng.asm.89@gmail.comng.asm.89@gmail.com
kype: EngASM89
oin the Course now
IMITED TIME OFFER
0% OFF
ttps://www.udemy.com/master-
ic-microcontroller-using-mikroc-
rotuesprofessional/learn/?coupo
Code=limitedoffer50off
https://www.udemy.com/master-pic-microcontroller
protuesprofessional/learn/?couponCode=limitedoffer50off
microcontroller-using-mikroc-
protuesprofessional/learn/?couponCode=limitedoffer50off