Build yourself flashing message on PIC16F877A with assembler
Guys, in this step by step instruction,
I wanna share my private experiment with PIC16F877A and assembly language,
I call it
Build yourself flashing message on PIC16F877A with assembler

Let's prepare the parts

Step 1: The parts needed for this experiment

Build yourself flashing message on PIC16F877A with assembler
Build yourself flashing message on PIC16F877A with assembler
Build yourself flashing message on PIC16F877A with assembler
1. PIC 16F877A chip
2. The board for PIC 16F877A
3. LCD 16x2
4. G540 chip programmer
5. MPLAB
6. Time for editing and understanding assembly

Step 2: Create the code on MPLAB

Build yourself flashing message on PIC16F877A with assembler
Create the code on MPLAB
START
BANKSEL TRISD; 1 for input, 0 for output
movlw 0x00
movwf TRISD
movwf TRISB ;RB are all outputs
banksel PORTB
clrf PORTB

clrf PORTB ;Here RW is pulled down to ground
;LCD routine starts
call delay10ms
call delay10ms
;give LCD module to reset automatically
;Fundtion for 8-bit, 2-line display, and 5x8 dot matrix
movlw 0x38
call instw
;Display On, CUrsor On, No blinking
movlw 0x0E ;0F would blink
call instw
;DDRAM address increment by one & cursor shift to right
movlw 0x06
call instw
;DISPLAY CLEAR
movlw 0x01
call instw
;Set DDRAM ADDRES
movlw 0x80 ;00
call instw
;WRITE DATA in the 1st position of line 1
movlw 0x52 ;R
call dataw
movlw 0x49 ;I
.
.
.

Step 3: Test and enjoy yourself message flashing on LCD...

Build yourself flashing message on PIC16F877A with assembler
Test and enjoy yourself message flashing on LCD...
Video :
 
 

Tag cloud

make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel