Category: Embedded

LPC2148 Timer Tutorial

LPC2148 Timer Tutorial

The Basics After writing the first blinky program using random delay , now its time to improvise and induce precise delay using timers! The real fun in embedded starts when you start playing with timers (& UARTs , PWM , etc.. ofcourse which we will see in my future posts). I’ll try to keep it [...]

LPC2148 Interrupt Problem and Issue fix

LPC2148 Interrupt Problem and Issue fix

Many guys including me have been facing a problem with KEIL4 where the Interrupts or IRQs wont execute even if the code is correct .. but now I’ve found a simple trick to make the interrupts work. Even I have wasted a long time trying to figure out what the heck was going wrong with [...]

Interfacing 16X2 LCD with LPC2148 tutorial

Interfacing 16X2 LCD with LPC2148 tutorial

On special request of our readers today we are posting a new tutorial for interfacing HD44780U / KS0066U based 16×2 LCD Module with LPC2148 microcontroller.

LPC214x PLL Tutorial for Cpu and Peripheral Clock

LPC214x PLL Tutorial for Cpu and Peripheral Clock

Introduction PLL stands for Phase Locked Loop and is used to generate clock pulse given a reference clock input which is generally from a crystal oscillator(or XTAL). Configuring and using PLL in lpc124x MCUs is pretty simple and straight forward. Lpc214x MCUs have 2 PLL blocks viz. PPL0 and PLL1. PLL0 is used to generate [...]

LPC2148 GPIO Programming Tutorial

LPC2148 GPIO Programming Tutorial

When getting started in embedded programming, GPIO (viz. General Purpose Input Output) pins are one of the first things played with. Its also quite evident that the most popular “hello world” program in embedded systems programming is Blinky i.e a LED connected to pin on the Microcontroller that keeps blinking. The use of GPIO is [...]

Tutorial : Embedded programming basics in C – bitwise operations

Bitwise or bitlevel operations form the basis of embedded programming. A knowledge of Hexadecimal and Binary Numbering system is required along with conversion from binary to hex and vice-verse. A tutorial for that is located @ www.ocfreaks.com/hexadecimal-and-binary-number-system-basics-for-embedded-programming/. If you are less familiar with hexadecimal and binary number systems that will help you. Further , I [...]

Hexadecimal and Binary Number System basics for Embedded Programming

To get started in Embedded programming following things need to be absolutely clear in our heads: Binary and Hexadecimal Number Systems. Interconversion of Binary and Hexadecimal. Bit Level Operations. Pointers , etc.. This tutorial mainly deals with Hexadecimal & Binary Numbering Systems and how to inter-convert them. This lays the foundation for bit level operations. [...]