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
1 post [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
• Page 1 of 1
• Page 1 of 1
- 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
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.
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.
(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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests