PIC Microcontroller Primer – Tutorial

Post here to discuss the PIC microcontroller tutorials.

Moderators: Chuckt, Garth, bitfogav

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
lulala
newbie
newbie
Posts: 4
Joined: Sat Aug 20, 2016 3:47 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

PIC Microcontroller Primer – Tutorial

Post by lulala » Mon Aug 22, 2016 5:59 pm

Image
Welcome to the starting line of the PIC Microcontroller Primer. Microchip manufacture a series of microcontrollers called PIC, and this tutorial series will take you from the basic structure of PIC µCs right through to the programming methods and techniques.

Note that there are many different PIC µC packages are now available, from some basic low memory types to ones that have analogue to digital converters (ADC) and even pulse width modulator (PWM) blocks built in. At first, I am going to focus on the emblematic PIC12F675 µC. Once you have learnt how to program one type of PIC µC, learning the rest is sweet and simple!

PIC 12F675 microcontroller (http://www.kynix.com/Search/PIC12F675.html)

PIC 12F675 is an 8-Pin, Flash-Based 8-Bit, PIC ® Mid-Range CMOS µC, comes in 8-pin PDIP, SOIC, MLF-S and DFN packages. One advantage of PIC12F675 when compared to its predecessor PIC 12F629 is that 12F675 has an inbuilt 10-bit ADC. In short, the feature-packed 12F675 has 1024 words of program memory, 64 Bytes of RAM and 128 Bytes of EEPROM, an internal oscillator, timers, an ADC and a comparator. Since this tutorial part contains basic device specific information for the PIC12F675, additional information may be collected from the datasheet published by Microchip.
ImageImage
PIC 12F675 Mini Development Board

As a part of learning, it is recommended to build your own PIC12F675 mini development board. The circuit shown here is easy enough to make a development board yourself. For hardware all we need is a standard piece of perforated prototyping board, ic socket, headers with a 0.1 inch (2.54 mm) pitch, and a handful of discrete components in addition to the fixed voltage regulator chip and the PIC12F675 microcontroller. The components of the development board can be mounted on the top side of the prototyping board (as usual) and soldered on its underside. Then attach the headers to the prototyping board with solder joints on its underside. Remember to leave a little gap between the underside of the prototyping board and the plastic carrier of the headers to allow for soldering there later. Ordinary wire can be used to connect between the components and the header pins. The development board can be powered from any 9-12 V standard dc power supply source.
Image(headers on the prototyping board – an example)
Here is the circuit diagram of the mini development board. The ICSP header in the board allows you to program the PIC 12F675 microcontroller using an ICSP programmer.
Image
PIC USB Programmer
Microchip’s PICKit2 is a USB based ICSP (In Circuit Serial Programming) programmer. This programmer is preferred here because it is much more comfortable, reliable and powerful than any other programmer we can find all over the internet world.
Image
Image

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 7 guests