Saturday, August 22, 2009

PIC16F84a Chaser


This is an other kind of a LED Chaser in which the 'PIC16F84A' microcontroller, IC1, is used. The program that runs on this chip controls the LEDs attached to the output port pins. Resistors R1 - R8 limit the current through LED1 - LED8 to a safe level. Resistors R9-R13 provides a pull-up for the input connected to switches S1-S5. 4 MHz crystal is used for clock pulse generator & capacitors are used to ground the unwanted pulses.



click on image to zoom


Note that VCC should not exceed 5v.
  • Resistors, R1 - R8 220 ohm 0.25W
  • Resistors, R9 - R13 10k ohm 0.25W
  • IC1 PIC61F84A
  • Socket for IC1
  • Red LEDs (8)
  • S1 - S5, Push Switches
  • Ceramic Capacitors,C1-C2 27pF
  • 4 MHz Crystal



Hex code:
Note: Just copy the below code and paste it in notepad and save it with '.hex' extension, as chaser.hex.

:020000000528D1
:0800080005288316FF30850076
:1000100086018312FF308600051C1720851C3320C3
:10002000051D4F20851D6820051E96200C28FE30DA
:100030008600C020FD308600C020FB308600C02036
:10004000F7308600C020EF308600C020DF30860009
:10005000C020BF308600C0207F308600C020FF3027
:100060008600C02008007F308600C020BF30860098
:10007000C020DF308600C020EF308600C020F7307F
:100080008600C020FB308600C020FD308600C020E6
:10009000FE308600C020FF308600C02008007E3081
:1000A0008600C020BD308600C020DB308600C02026
:1000B000E7308600C020DB308600C020BD308600DF
:1000C000C0207E308600C020FF308600C02008009F
:1000D000FE308600C020FD308600C020FA30860049
:1000E000C020F5308600C020EA308600C020D53020
:1000F0008600C020AA308600C02055308600C0206F
:10010000AB308600C02057308600C020AF3086005C
:10011000C0205F308600C020BF308600C0207F3006
:100120008600C020FF308600C02008000030860016
:10013000CC20FF308600CC2000308600CC20FF3061
:100140008600CC2000308600CC20FF308600CC20FA
:1001500000308600CC20FF308600CC2000308600A6
:10016000CC20FF308600CC20080002308D00F93012
:100170008C00000000008C0BB9288D0BB7280800FC
:1001800064308E00B5208E0BC228080005308F0029
:10019000C0208F0BC828080002309000C620900BAA
:0401A000CE2808005D
:02400E00F23F7F
:00000001FF


Now burn the ucontroller using JDM Programmer. For more details read my article "Getting Started with ucontroller".

In Eagle 3D LED Chaser looks like:

No comments:

Post a Comment