Browsed by
Tag: microcontroller

PIC microcontroller | Flashing LED

PIC microcontroller | Flashing LED

In this article I will look at flashing an LED on/off using a external clock delay. If you have not already read my previous articles, Pre-coding preparation and LED On, please do so now. Many of the concepts I have discussed in earlier articles will come into play in this project.

With this project, I will be using an external 20MHz clock instead of the built in 4MHz clock that comes with the PIC16F628A chip. To do this, I looked at the EasyPIC5 manual, to find out where to place and how to configure the board to register the external clock.

Read More Read More

PIC microcontroller | Turn LED on with PIC assembly

PIC microcontroller | Turn LED on with PIC assembly

This is a very good place to start if you are just starting out learning PIC assembly. If you have not yet read my Pre Coding Preparation article about setting up the IDE and testing your configuration, please do that before reading this article.

In this article I am going to describe how to turn on a LED in PIC assembly using the PIC16F628A microcontroller. To start off, open MPLAB IDE and create a new project using the Project Wizard. Then open your ASM file.

Read More Read More

PIC microcontroller | Pre-coding preparations

PIC microcontroller | Pre-coding preparations

In order to ease into the learning process of how to program a PIC microcontroller, I used a PIC development board which took care of hooking up all of the electronic peripherals to the microcontroller. The specific board that I am using is a EasyPIC5 Development System, by MikroElektronika. Below is the image of the board which has all the necessary peripherals for development and the microcontroller can be programed via USB 2.0. Click the image to zoom-in.

easypic5

Read More Read More