LCD display icon


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    thanks for the help
    here are my code for day

    symbol mon = 0
    symbol tue = 1
    symbol wed = 2
    symbol thu = 3
    symbol fri = 4
    symbol sat = 5
    symbol sun = 6

    hour var byte
    day var byte
    day = 0 ' initial day at mon when program run

    if hour > 24 then
    day = day + 1
    endif

    if day > 7 then
    day = 0
    endif

    lcdout $fe,$c0, dec3 day

    *the display only show 000, not mon.
    how i write the code to display date:month:year

  2. #2
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Code:
    loop:
        hour = hour + 1
        if hour > 24 then
        day = day + 1
        endif
    
        if day > 7 then 
        day = 0
        endif
    
       lcdout $fe,$c0, dec3 day
       pause 200 
    goto loop
    lcdout $fe,$c0, dec3 date ,":", dec3 month ,":", dec3 year

  3. #3
    Join Date
    Oct 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    code :
    loop:
    hour = hour + 1
    if hour > 24 then
    day = day + 1
    endif

    if day > 7 then
    day = 0
    endif

    lcdout $fe,$c0, dec3 day
    pause 200
    goto loop

    i already try but the LCD display 000
    is it because my declare wrong here
    code:
    symbol mon = 0
    symbol tue = 1

    day var byte
    Last edited by cyber88; - 26th October 2007 at 08:17.

  4. #4
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    try this

    loop:
    hour = hour + 1
    pause 100
    if hour > 24 then
    day = day + 1
    endif

    if day > 7 then
    day = 0
    endif

    lcdout $fe,$c0, dec3 day
    pause 1000
    goto loop

  5. #5
    Join Date
    Oct 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    thanks....it work well now...now i want to made an alarm for my clock, i connect my buzzer at PORTB.0 for pic16f84.how should i write the alarm coding and it auto send signal to buzzer when the alarm is match?

  6. #6
    Join Date
    Oct 2007
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    does anyone have a code for an alarm clock?my code for alarm seem not running.it cannot save the time i set to alarm the buzzer and whole alarm code not running.how can i save the time i set to alarm the buzzer and it auto wake me up everyday on that time without everyday set the alarm again?now i only left the alarm part for my LCD clock.can anyone please help me?
    i read the asm code, it say move the part i want to save into eeprom.how can i do that in picbasic?
    Last edited by cyber88; - 29th October 2007 at 07:14.

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

Similar Threads

  1. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 22:18
  2. LCD display not working properly
    By dilpkan in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 2nd February 2008, 07:43
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. LCD Display not working - PIC heating...
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 24th September 2006, 07:35
  5. A/D display result on LCD
    By winsthon in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th January 2004, 10:09

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