help plz i want to make a digital clock using 74hc164 and picbasic pro


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2009
    Posts
    36

    Question help plz i want to make a digital clock using 74hc164 and picbasic pro

    please help i want to make a digital clock using picbasic pro and pic 16f84a and shift register ic 74hc164 4 digit lcd and i tested the instriction shiftout it works good but i dont know much about variables and this if my first test program it count from 0 to 9 please i need help how to use variables with shiftout and if there r any other ways thank you .


    Include "modedefs.bas"

    DEFINE SHIFT_PAUSEUS 1000


    TRISB = 0
    TRISA = 1
    main:
    porta.0 = 0

    SHiftOUT portb.0,portb.1,LSBFIRST,[252\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[96\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[218\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[242\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[102\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[182\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[190\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[224\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[254\8]
    pause 1000
    SHiftOUT portb.0,portb.1,LSBFIRST,[246\8]
    pause 1000


    goto main


    end
    Last edited by malwww; - 1st May 2009 at 03:13.

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by malwww View Post
    i dont know much about variables and this if my first test program it count from 0 to 9 please i need help how to use variables with shiftout and if there r any other ways thank you
    Variables are just places in memory set aside to store ones and zeros, that place gets an alias (NAME) chosen by you when you write the program. Here is a thread to a tachometer I wrote using shiftout to a 4 digit LED display. A lot of what you need to do was done here. Look the code over and read all the posts. http://www.picbasic.co.uk/forum/showthread.php?t=9037
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Apr 2009
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    thank you joe about ur reply and helps hope your doing great

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts