Monday , February 20 2017
Home / Embedded Systems / PIC Microcontroller

PIC Microcontroller

External Event Counter – Seven Segment Displays

External event counters are pretty useful things to have around. Once I had a feud with a shopkeeper for selling 4 motors in 3 different RPMs. Well, I don’t know if you have ever tried making a robot that had wheels rotating at different speeds, I did. It wan’t a very memorable experience.  The shopkeeper agreed that the RPM on one of the motors was of a different RPM and other ‘slightly-off’ but the others where just fine. It took me a …

Read More »

Arduino Like Serial / UART Library for PIC 18 Microcontrollers

PIC with serial port

In my last post describing the implementation of a circular buffer I mentioned that I was working on a serial UART library for PIC 18. Well it is now completed! Yesterday I tested all the functions of the library and its working like a charm! In this post I will explain some key aspects of the code and how to download and use it in your code. What is UART? Universal Asynchronous Receiver and Transmitter is a serial communication protocol. …

Read More »

PIC Pin Diagram: A printable copy for quick reference

Today when I was hooking up my PIC micro on to a breadboard for a quick demonstration to a friend of mine, I realized how often I needed the Pin Diagram from the datasheet. All this while I have been opening the datasheet and scrolling through to page 4. I don’t know about you, but, I bet there are a couple of people out there who did the same thing I did over and over again. You may have made a …

Read More »

Getting Started with PIC Microcontrollers

Having worked with any one Microcontroller, moving from one of its family to another is  just a matter of matter knowing the right tools and understanding how things have to be done in terms of software (compiler specific addressing like that of the SRFs) and hardware (circuitry, design practices, etc., ) In this post we will have a look at everything you will need while getting started with PIC microcontrollers. Thing you will need, Here is a very small list …

Read More »

PIC Timer Calculator : giveAway#1

Timers are one of the mostly used modules in microcontroller. Almost every system that has to be reliably produce time interval or delays will have to use timers modules. The PIC timer calculator is a cool tool will make life much simple. If you haven’t worked with timers, I suggest you read about the timer/counter module in microcontrollers in general and then move on to read about the ones on PIC micros. PIC Timer Calculator! I found this great GUI …

Read More »

Interrupt On Change (IOC) in PIC Microcontrollers

The interrupt on change is a cool feature on microcontrollers. Like you guessed, the interrupt occurs when there is a state change in any of the port pin associated with this feature. In PIC microcontrollers, PORT B is has the Interrupt on Change feature. The controller jumps into the interrupt vector when there is a change in the state of any of the pins in the port. In my previous post on interfacing matrix keypad, we used the conventional polling …

Read More »

Migrating to HI-TECH C Compiler from the Microchip C18 Compiler

Migrating to HI-TECH C compiler for PIC MCU is not really hard task. The developers have taken much care in keeping it that way. In addition to the existing features of the C18 compiler, there are a lot of other added features in the HI-TECH C compiler. This post will give you an introduction to the compiler, its features and how to write C programs in it. This compiler can be used to program all 8 bit PIC MCUs. There is …

Read More »

Interface 4×4 Matrix Keypad With Microcontroller

In this post we will discuss logic and interface of a matrix keypad (4×4 for this post) with microcontroller to reduce the number of port pins required to read a certain number of inputs (digital). The same logic applies to any matrix keypad of order NxN. Where, N is the order of the matrix. Why Matrix Keypad? Typically one port pin is required to read a digital input into the controller. When there are a lot of digital input that has …

Read More »

Standalone BreadBoard Breakout for PIC Microcontrollers

I wanted to make a breadboard breakout for PIC microcontrollers after seeing this arduino breadboard breakout from adafruit. This product is fully standalone and yet has very small footprint so that it can be conveniently plugged into the breadboard. The most amazing part was that it still had 2 rows on each side of the breadboard for the user to jump wires. First I thought of making a breakout board for the 40 Pin DIP package that I usually use. Then I realized …

Read More »

Stepper Motor Interface with PIC Microcontroller

stepper motor interface

In my previous post Introduction to Stepper Motors and How they Work, we had a look at stepper motors and how they work. This post will deal with the programming and circuitry involved in the stepper motor interface with PIC Microcontrollers. Usually a microcontroller is used to produce the stepping sequence for the stepper motor. But this is not the only method of producing the stepping sequence. It can be produced by using flip flops, logic gates and some knowledge about digital …

Read More »
Keep in touch with the current trends!
Did you like this article? Sign up and get our latest posts delivered to your inbox!
  We hate spam and never share your details.