PIC16F877A LED BLINK PROGRAM

BREAD BOARD CONNECTION

PROGRAM


#chip 16f877a,16

dir portb.0 out
Do Forever
set portb.0 on
wait 1 s
set portb.0 off
wait 1 s
Loop


After compiling PROGRAM ,open pic kit 2 programming software.
GOTO FILES>IMPORT >goto the location we save and compile the program.The hex data is visible at the folder ie the file we need to burn to the IC.

HEX FILE

This file is automatically generated in IDE while compiling.
:020000040000FA
:060000008A110A12052816
:1000080009002C2083160313061083120313061409
:100018000130F400242006100130F40024200928BF
:1000280063001428F30A6C30F1000B30F000F00B79
:100038001B28F10B1928F20B1728F30B17280800B7
:10004800E830F2000330F3001620F40B24280800EF
:10005800831603139F13831203131F1083160313AE
:100068009F111F159F141F1007309C008312031344
:0C007800850186018701880189010800CC
:02400E007A3FF7
:00000001FF

Why we need hex file
Hex file is the only file needed for the IC to work.If we are no using the IDE just copy the hex file to notepad and save with the extension as name.hex, sothat we can directly burn the IC using PIC programmer.

What IDE is doing
IDE is just a compiling platform to perform HIGH LEVEL LANGUAGE to MACHINE LANGUAGE.

Comments

Popular posts from this blog

ARDUINO-ALANWALKER-FADE

ARDUINO MUSIC PLAYER