
Hi, if you want to learn to swim, you should jump into a pool. Right..?
To learn programming microcontrollers, you should have few basic hardware set ups that will provide you required foundation to build your skills. So I suggest you to buy the components listed in the attached file. You need a PIC16F18877 evaluation board, an USB cable, few components and sensors to practice and to check if it really works or not. I have given links for each of these components so that you can order it from your favorite online stores. You may also buy those components from a local store or other places. But check once the links to make sure that you buy the exact component. Small variation in the components like make, color and cost does not matter. But it should have the same functionality and looks so that you can do the required connections by watching the video lessons.
You need few of these components for module 2 and more components/sensors as we use them in subsequent modules.
You also need a computer or laptop for installing IDE, C Compiler and to write codes for PIC microcontroller.
Overview of Embedded Systems
Microcontrollers are used in embedded system designs. Embedded systems are systems like smoke detectors, printers, refrigerators, biometric systems which use microcontroller for decision making, monitoring and control. This lecture puts some light on embedded systems. Contents of this lecture:
This lecture is useful for those who want to know where these microcontrollers find their roles in actual applications.
Introduction to PIC Microcontrollers
Peripheral Interface Controllers (PIC) are produced by Microchip Technologies Inc., USA.
Microchip produces PIC10, PIC12, PIC16, PIC18, PIC24, PIC32 and dsPIC Microcontrollers. This lesson gives you more details about PIC Microcontrollers such as:
This lesson teaches few things you must know to understand the various aspects of embedded system design.
The contents of this video are:
Integrated Development Environments and C Compilers
Topics covered in this lesson are:
Software Installations
This lesson shows you to install the required software tools in your computer. You need to follow the instructions exactly to set the things to work without any issues. I will show you the installation procedure of:
All the above tools are free and can be downloaded from the following links:
MPLAB X IDE : http://www.microchip.com/mplab/mplab-x-ide
XC8 C Compiler: http://www.microchip.com/mplab/compilers
MPLAB Code Configuarator: http://www.microchip.com/mplab/mplab-code-configurator.
Check this for detailed installation instructions:
http://microchipdeveloper.com/mplabx:installation
Also refer the resources attached in this lesson for more help.
Programming microcontrollers is about writing instructions so that microcontrollers can function as per our wish. Microcontrollers can be programmed using programming languages. This lesson explains about the programming languages used for microocntrollers.
Contents of this lecture are:
This lecture explains C program structure and C data types.
1. C Program Structure
2. C Data types
This lecture covers the following topics
This is the last lecture on C programming and also of module 1.
Contents:
Enough of theories and concepts. Let's do some soldering and do some practicals. This video teaches you to setup your hardware for the experiments. Download the zip file to test the hardware setup. Refer the troubleshooting guide for some help.
Device configuration is very important and basic thing you need to know before we get going with programming PIC device. A wrongly configured may not execute the code properly. The configuration bits when properly written, indicate the PIC device about the oscillator sources, supervisory control, watchdog timers and code protection before the code starts executing at start up. Watch this video and make note of few important points about CONFIG registers need to be set. We will use these things in next video lecture.
This lessons explains you step by step procedure in creating your first LED blink code in MPLAB X IDE.
Requiremnets:
1. Latest Version of MPLAB X IDE
2. XC8 C Compiler
3. MPLAB Code Configurator.
MPLAB Xpress is cloud-based IDE tool which works on Web browsers of Laptops, Smart phones and Tablets. It needs no installation and you can start working on it directly without any waiting period. You can use it for free as Microchip provides free access to use it with a free version of XC8 compiler. The community provides you a set of Example files to start your designs. This lesson shows how to use MPLAB Xpress IDE. Also I have explained how to write simple codes without using MCC.
General Purpose Input Output (GPIO) ports allow us to interface simple input/output devices like LEDs, Relays, LCD displays, switch buttons, Discrete components. This lesson explains different ports of PIC, registers associated with GPIO Ports and also analyzes the code generated by the MPLAB Code Configurator.
Namaste, This video explains you about push-pull, open-drain and weak pull ups in PIC.
This video lesson teaches you to interface seven segment LED display with PIC Microcontroller.
Here I explain how to interface tactile switch and control outputs.
Read this before you move on to the new lesson. If you are using the latest version of MPLABX and XC8, then this is very important for you.
Watch this video for details about external interrupts in PIC.
This lesson explains peripheral pin select in PIC Microcontrollers.
Here I explain you about using MPLAB Code Configurator to use INT interrupt and PPS. I used RA0 pin to generate INT interrupt which by default works on RB0.
Interrupt On Change is a feature which can be used to monitor a pin for any change in its state. This can be used to sense any change in the signal level and interrupt the processor. Watch this video for details.
This video explains how to use MPLAB Code Configurator (MCC) to generate the code for Interrupt On change (IOC). Device used: MPLAB Xpress PIC16F18877 Evaluation Board from Microchip.
This video explains how to use Configurable Logic Cells in PIC16F18877.
This video explain the basic concepts about Liquid Crystal Display interfacing and connections.
This lesson teaches you how to write codes to initialize and display a message on 16x2 LCD.
In this video, you will learn to interface 16x2 LCD in 4-bit mode. Also a library is given in the resources to use LCD functions.
This lesson teaches you basic concepts of 4x4 keypad interfacing.
This is the continuation of lecture 28 where you will learn the coding aspects of keypad interfacing with PIC.
This video shows explains features of analog-to-digital converter module in PIC MCU and how to configure it using MCC.
Demonstrations of usage of ADC to measure DC voltage and temperature sensor to display temperature in Degree Centigrade.
Features of Timers, Timer0 Operation.
Demonstrations of timer0 in PIC16f18877 Xpress board.
1. Basic LED blink
2. Traffic Light Controller
3. Counter
Objective of this lesson:
Demonstration of Timer0 as an ADC auto trigger source.
Objective:
Understand the operation of Timer1-type module and gate enable mode of timer1.
Objective:
Understand the operation of Timer2-type module in PIC MCU
This video shows you how to use Timer2 output as gate source for Timer1.
In this lesson, Capture mode of CCP module is explained. CCP module uses timer1 so a basic timer 1 configuration is done in this video. How CCP module can be used is shown in the next video lesson. Do watch it and share your ideas.
Hi, this video demonstrates capture mode of CCP module with an example of reaction timer.
Hi, this video is all about compare mode of CCP. So watch it and let me know you liked it or not.
Thanks
This lesson gives you an insight of the pulse-width modulation module in PIC16F18877.
In this video, a demonstration was given about how PWM technique is used to vary the brightness of LED. Watch it and find yourself more about PWM.
The lesson introduces some basics of serial communication and defines few terminologies used.
This video shows how to use EUSART module for serial communication between PC and PIC devices. It also shows you how to install the drivers for USB-TTL converter and install serial terminal software: Termite.
The operation of Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) is explained in this video.
This is the continuation of the previous video, which explains how to send and receive strings between PC and PIC microcontroller.
Learn the basics of SPI Communication bus in this chapter.
Find the answers for your all questions regarding setting up PIC for SPI communication in this chapter.
Setting up an SPI interface with a sensor is easy.. Don't agree? Check out this lesson.
The video lessons introduces I2C communication protocol.
Understand the basic concepts of EEPROM interfacing and read/write sequences when connected to PIC microcontroller.
Come and have an Idea about the I2C Master mode of operation in PIC device.
A Demo of I2C Master slave configuration. PIC device is configured as a master and serial EEPROM 24C04 is slave. Source files are available in resources for you to download and check.
Hi, welcome you all to this course on PIC microcontrollers.
The course is tailored for the need of students to best understand microcontrollers from scratch till you master your skills. This course is the outcome of the experience we gained after training hundreds of graduate students of engineering and technology, and with our expertise in the field of embedded systems. Few basic C concepts are also covered in initial lectures to help non-IT students to get hold of C coding.
Swadeshee Parinatie invites you all to enroll in this course and explore the world of embedded systems as a step towards excellence. There is no better way to master the PIC microcontroller than joining this course.