Archive for category: PIC

Tutorials based around the PIC microcontroller.

Getting started with Assembly for PIC microcontrollers

18 September, 2009 (03:34) | PIC, Tutorials | By: Lucian

Hi everybody. This is my first post of a series related to assembly programming for PIC Microcontrollers. In this first tutorial I will show you how to set-up the compilers and IDEs that you will use for building code in assembly.
We will start with installing the tools for Linux based operating systems. I am using [...]

ID Location Space on a PIC

18 August, 2009 (03:53) | PIC, Tutorials | By: Joshua

There is a special location set aside on PIC microcontrollers called the ID location that is used for either storing checksum or identification purposes of the PIC.  It has four location spaces, but only the 7 least significant spaces are used.  The different applications of this space is limited only by your imagination.  For my [...]

Linking Files with Hi-Tech C

28 July, 2009 (00:17) | PIC, Tutorials | By: Joshua

When writing programs for the PIC, there are certain things that you will want to do that aren’t specific to one particular project.  The functions written to perform these tasks might also be rather large and make the main function longer than desired.  Or perhaps the function is specific to this project but makes the [...]

sprintf() on the PIC 10/12/16 Series

19 June, 2009 (18:27) | PIC, Tutorials | By: Joshua

I mentioned sprintf() briefly in my post about communicating between your PIC and the computer but have since learned a couple things I think others could benefit from. So this is going to be a kinda hodge-podge post.
First, I threw together a quick function that will take any number, convert it to ASCII, [...]

Crystal Oscillators – As Easy As It Seems

15 March, 2009 (17:38) | PIC, Tutorials | By: Joshua

I just wanted a quick post for people like me who think that some things can’t be as easy as they seem. In this case, using a crystal oscillator.
Looking in the data sheet for your PIC, it will show you the different ways the PIC’s clock can be driven. You’ll notice that in terms of [...]

RS232 (or UART) Communication between your PIC and your PC

4 December, 2008 (06:00) | PIC, Tutorials | By: Joshua

In a previous post, we went through the different aspects of a UART and how to set it up and use it to communicate either between PICs or other peripherals. In this post, I’d like to address the specifics of communicating between your PIC and your PC through Hyperterminal or PuTTY. It is [...]

Setting up and Using the UART for the PIC

15 November, 2008 (21:37) | PIC, Tutorials | By: Joshua

In a previous post I explained many of the registers and bits used in the UART. This time we’re going to put those pieces together to make a functional UART.
First thing you need to set is the baud rate. The baud rate is dependent on the clock speed. It’s important to know what you [...]

Understanding the A/D Converter of your PIC

20 October, 2008 (06:00) | PIC, Tutorials | By: Joshua

A built in analog to digital converter (A/D Converter or ADC) makes life easy when you’re using your PIC. As you know, an ADC is a powerful and even necessary tool in many projects. There are a lot of options, registers, and bits that can get confusing so this post will be dedicated [...]