With smartphones, autonomous vehicles, and 5G wireless connectivity dominating the landscape of embedded design in 2022, Microchip’s 8-bit PIC and AVR microcontroller (MCU) families are gaining market share. Over the past 50 years, the market for 8-bit MCUs has grown steadily and Microchip currently sells one device for every human in the western hemisphere each…
Display custom urdu language characters on 16×2 lcd using pic16f877a microcontroller
In this project i am going to display urdu language characters on 16×2 lcd using pic16f877 microcontroller. Urdu is a language spoken in Pakistan, India and Bangladesh. Character lcd’s generally contains a Hitachi HD4478 controller in it. Hd4478 only contains ASCII character set in it and we can only display the predefined characters that are present in it. It…
Microchip xc8 compiler place data in ram specific location/address of pic microcontroller
This tutorial is about placing data in a specific ram(random access memory) location/address using xc8 compiler and mplabx ide. I am using microchip pic16f877 8-bit microcontroller in this tutorial. It has 8KB of rom (read access memory) and 368 Bytes of ram(random access memory). Its generally not recommended to place data in data memory(ram). Since data…
Displaying ASCII Characters on 16×2 Character lcd Using Microchip PIC16f877 Microcontroller
在本教程中,我将打印/显示ASCIIcharacters on 16×2 lcd using pic16f877 microcontroller. Lcd is interfaced with pic microcontroller in 8-bit mode. Code is written in c language. High tech c compiler is used to compile code and code is written in Mp-lab ide. Interfacing 16×2 lcd with pic microcontroller and displaying characters…
如何构建一个计算器使用Pic16f877 microcontroller
Calculator with Pic 16f877 microcontroller is a comprehensive project. Comprehensive in the way that code is lengthy and logical. It will be hard for newbies to understand the code and circuit components interface with pic microcontroller. I will try to explain each and every thing about code and circuit thoroughly. The project covers all the aspects…
Measuring Temperature using LM74 temperature sensor by Texas Instruments and Pic18f452 Microcontroller
In this post i am going to interface LM74 temperature sensor with Pic18f452 microcontroller. LM74 is a temperature sensor by Texas Instruments. It comes with an SPI (Serial Peripheral Interface) interface. You can operate it in SPI (Serial Peripheral Interface) mode. A processor/microcontroller can read temperature reading from LM74 at any time. LM74 provides resolution of up to…
Display custom characters on 16×2 lcd using Microchip Pic16f877 Microcontroller
Here is a simple project on how to build/generate/make custom characters in 16×2 lcd and then print/display them on lcd using microchip pic16f877 microcontroller. Character lcd contains a set of ascii characters and some Chinese characters in their controllers. We invoke the ascii characters present in the ram for displaying them on lcd. But if…
Toggle/Blink led on specific delay with pic microcontroller using timers: MPLABX and xc8 compiler
This is advance tutorial on blink/toggle led with pic microcontroller using pic microcontroller timers. I am going to teach you how to toggle led on specific delay time generated using timers of pic micrococntroller. This tutorial is not limited to only toggling led, it can be utilized at many other places. Like generating an event…
PicKit2 Clone Designed and Manufactured at Home
PicKit2 is a programmer designed by Microchip to program its pic microcontrollers. PicKit2 supports many 8-bit pic microcontroller series. PicKit2 supports almost all Pic-10/12/16/18/24 and dspic-30/33 flash series microcontroller’s. Pickit 2 is an ICSP (In-circuit serial programmer) programmer. In icsp interface, microcontroller can be programmed while its working in the circuit. An icsp programmer uses 5…
One Second Delay Generation by using internal Timers of Microchip Pic Microcontroller, xc8 compiler with Mplabx Ide
While working with microchip pic microcontrollers i came across a situation where custom delay is required in seconds. I was working with pic18f4580 microcontroller, Mplabx ide and xc8 compiler. I know that __delay_ms() and __delay_us() macros do exists for generating delays. But i want to see how the timer configuration is done for one second delay.…
Interfacing Lcd(8×1,8×2,10×1,10×2, 16×2, 16×4, 20×1, 20×2, 40×1,40×2) in 4 Bit Mode with Microchip Pic16f877A Microcontroller
In this project i am going to interface 16×2 lcd display in 4-bit mode with Microchip Pic16f877 microcontroller. We can interface any size of character lcd display (8×1,8×2,10×1,10×2, 16×2,16×2,16×4,20×1,20×2,40×1,40×2 etc) in 4-bit mode with pic microcontrollers. In 4-bit interface mode only 4 lcd data lines are used to display data on lcd screen. Usually lcd is…
Displaying Scrolling(Moving) text on 16×2 lcd Using Pic16f877 and Pic18f452 Microcontroller
Displaying moving or scrolling text on lcd(16×2,8×1,16×4,8×2,16×1,20×1,20×2 etc) is very easy using any microcontroller. You just need to know how to efficiently use 16×2 lcd commands. In this project i am using pic 16f877 microcontroller to display text and then scroll it on the 16×2 lcd. The lcd which i am using is 16×2. Where…
Push Button as Input and Led as Output with Pic Microcontroller
This is a simple tutorial/project on how to interface a transistor (2n2222), led and push button with Pic microcontroller. In the project i am going to switch on and off(blink) an led with the help of a push button. Since transistors are used at outputs we can drive heavy loads with the same circuit. Pic16f877…
Interfacing Graphical LCD(GLCD-JHD12864E) with Microchip PIC16f877 Microcontroller
In this post/tutorial i am going to teach you how to interface graphical lcd jhd12864E with microchip pic16f877 microcontroller. I am going to display my website name “www.microcontroller-project.com” and a special pattern that displays thick lines on dotted graphical lcd display. In graphical lcd name “jhd12864” the number 128×64 means lcd has 128 coulombs and…
Serial Data Received from PC and Displayed on 16×2 Using USART of Pic16f877 Microcontroller
Here is a simple tutorial on how to receive serial data from PC(Personal Computer) Hyper-terminal and display it on 16×2 lcd using PIC16f877 microcontroller. Its not much difficult you just need to know how to use USART(Universal Synchronous-Asynchronous receiver transmitter) of PIC 16f877. Serial data is transmitted and received by PC using DB-9 OR DB-25 port of PC.…
How to Display Text on 16×2 Character Lcd
Displaying Text on 16×1, 16×2 or any size of character lcd is not a complex task. Once you know about the internal structure of the character lcd, lcd pin out, registers associated with lcd’s and CG-RAM(Character Generated RAM) then its all on your finger tips. If you are really interested in lcd programming, and want to know…
PLC (Programmable Logic Controller) with Microchip Pic Microcontroller
An year ago i made a plc (programmable logic controller) using microchip pic microcontroller. Its a 16 bit digital input and output programmable logic controller. Plc programming is done using a standard ladder logic language. The software that is used for plc programming and ladder logic design is an open source compiler written by Jonathan Westhues…
Interfacing JHD404A (40×4) lcd with Microcontroller
This post covers how to interface JHD404A 40×4 lcd with microcontroller (89c51, Pic16f877, Arduino etc). JHD404A is a 40×4 Character lcd. 40×4 means it has 40 coulombs and 4 rows. On each row of lcd we can display 40 characters/numbers etc. Total characters which we can display on 40×4 lcd is equal to (40×4=160) 160.…
How to display 5×8 and 5×10 size font characters on 16×2 lcd with 8-bit microcontrollers
液晶显示器可以显示字符的字体大小5×8 and 5×10. In 5xn, 5 represents number of coulombs and N represents number of rows. Character lcd’s especially which are controlled by Hitachi HD44780 controller can display 5×8 and 5×10 size font character. Some lcd’s can only display character in 5×8 font. In this project i…
Blink Led with Pic18f2550,PIC18F2455,PIC18F4455,Pic18F4550 Microcontroller….20Mhz Crystal frequency…
This is a simple project aims to start with microchip pic 18 series USB built in microcontrollers. Before going to use USB feature of pic microcontroller i thought to first start with blink led program. Simple Blink led will introduce us with the configuration bits of pic microcontroller. It took me 2 days to study…