Category Archive: Beginner

Material for those starting out in the world of embedded electronics

Feb 06

Getting Started with PIC Microcontrollers – The ADC

This time, we shall take a look at the Analogue to Digital Converter (ADC) This peripheral is the link between the analogue world and the digital domain of the microcontroller. It can be used for many things, e.g. (analogue) sensor/transducer readings such as microphones, thermistors, light sensors, pressure sensors, accelerometers, and much more. In this …

Continue reading »

Jan 17

PWM LED Comet Effect using a PIC Micro 2

This is a short follow up to the previous post on creating a comet effect with a PIC. The previous post used an 18F4550 but this time I will use a 16F690, to demonstrate how relatively easy it is to change between different microcontrollers in the PIC family. I have also used the preprocessor statements …

Continue reading »

Sep 02

PWM LED Comet Effect using a PIC Micro

This is a response to a comment on Getting Started with PIC Microcontrollers – the PWM Peripheral from Jayanath, which requested some example code for a “12 LED chaser with comet tail  effect”. I thought since this would be a pretty good example of using PWM on multiple pins I would post a rough example. …

Continue reading »

Aug 11

Getting Started with PIC Microcontrollers – The PWM Peripheral

In this tutorial, we will take a look at the PWM (Pulse Width Modulation) peripheral, as it is one of the most common and widely used peripherals. Almost every microcontroller has a PWM peripheral in one form or another, usually as part of a larger peripheral. For example in the PIC16F690, the peripheral we are …

Continue reading »

Mar 20

Getting Started with PIC Microcontrollers–The Timer Peripheral and Interrupts

This time we shall take a look at the timer peripheral; one of the most common peripherals, available on just about every microcontroller. We will also have a brief look at interrupts and how useful they are. An excellent way of demonstrating both is by revising the original LED blink code in Getting Started with …

Continue reading »

Jan 26

Getting Started with PIC Microcontrollers – The Header File

This time we’ll have an in depth look at a specific area which can present problems for the beginner. Using the simple code presented in Getting Started with Microcontrollers as our example. we will talk a bit about the main xc.h header file, how it works, and how important it is. Understanding this file, and …

Continue reading »

Jan 04

Getting Started with PIC Microcontrollers

How to get started with microcontrollers is a very common question, and can be quite daunting for the newcomer. We will start right from the beginning, assuming almost no prior knowledge of the subject. Although we will probably cover other micros in later tutorials, we will start with the very popular PIC microcontroller range from …

Continue reading »