+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Banned
    Points: 1,178, Level: 7

    Join Date
    Mar 2007
    Posts
    8
    Helped
    0 / 0
    Points
    1,178
    Level
    7

    LED flasher circuit (hex file and source code)

    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
    [img]


    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.
    [/b]

    •   AltAdvertisement

        
       

  2. #2
    Member level 4
    Points: 1,738, Level: 9

    Join Date
    Jun 2004
    Posts
    73
    Helped
    1 / 1
    Points
    1,738
    Level
    9

    LED flasher

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



    •   AltAdvertisement

        
       

  3. #3
    Banned
    Points: 1,178, Level: 7

    Join Date
    Mar 2007
    Posts
    8
    Helped
    0 / 0
    Points
    1,178
    Level
    7

    Re: LED flasher

    enogogo:

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


    I debugged by MPLAB. It's better to display the SFR, File Register, and Stack windows beforehand on the screen.

    For Downloading Links are given Below:

    http://<br /> <a href="http://ww1.m...eDoc/mp752.zip

    Added after 27 minutes:

    All the beginners can learn more about MPLAB by the following document:



--[[ ]]--