Digital clock project


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86


    Did you find this post helpful? Yes | No

    Default

    I would use 3 lookup commands

    Code:
    lookup digit, [$0D,$04, ...], patternA
    lookup digit, [$C1,$80, ...], patternB
    lookup digit, [$B7,$92, ...], patternC
    Lookup2 allows for 16 bits, but that still would not meet your needs for 20 bits.

  2. #2
    Join Date
    Nov 2008
    Posts
    41


    Did you find this post helpful? Yes | No

    Default

    An ugly way that would probably work are two long select case commands for HH and MM. If HH = 1 then... if HH = 2 then... etc etc. Maybe have one go from 00 to 59 and the other in reverse order to save instruction time.

Similar Threads

  1. Digital clock thermometer Calendar PIC 16F628
    By valdirdf in forum Code Examples
    Replies: 0
    Last Post: - 31st May 2009, 02:52
  2. Replies: 2
    Last Post: - 1st May 2009, 09:23
  3. Digital Clock With Alarm Using DS1307.
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2007, 03:43
  4. 6-Digit Digital Clock using PIC16F84
    By emavil in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2006, 20:04
  5. digital clock
    By jojokatada in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st February 2005, 12:16

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