Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

LED flasher circuit (hex file and source code)

Status
Not open for further replies.

qureshi

Banned
Joined
Mar 4, 2007
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
0
I made LED flash circuit which is often used as the PIC software making practice.
This circuit controls the blink of eight LEDs with the software of PIC.
The blinking pattern can be changed with five switches.

Parts List:

PIC: PIC16F84A
Processor Frequency: 10MHz
LED: High brightness LED x 8
Blink pattern: Five kinds
24_1173510455.gif


Circuit Explanation:
Five pins from RA0 to RA4 are used as the input pin.
These pins are pull-uped with 10K ohm resisters. So, when a switch isn't pushed, the input becomes H level ( +5V ). and when a switch is pushed, it will become L level ( 0V ). When the switch closes, the chattering occurs. The chattering is the phenomenon which occurs with the bound of the point of contact. The opening and shutting of a point of contact is repeated in short time..
I don't put the prevention circuit of the chattering at the circuit this time. When the software detects that the switch is closed once, the blink processing of LEDs are executed in the time which is longer than the chattering.

Here is the Source Code and hex file:

Thanks to all.
 
Last edited by a moderator:

LED flasher

what kind of programmer are u using, can u list me your development environment, compilers board etc.
 

Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top