coundown problem on LCD


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Are you sure you are using the following line correctly?

    second VAR BYTE [59] 'I WANT TO LIMIT THE TIME

    This doesn't limit the byte to 59 it creates an array of 59 bytes. It sounds like you want 1 byte that doesn't go any higher than 59. I would do the following within a loop:

    IF UP=0 Then ' Button Up command
    While UP=0:Wend
    second = v+1
    IF second > 59 Then second = 1
    LCDOut $FE,1
    EndIF

  2. #2
    Join Date
    May 2005
    Posts
    49


    Did you find this post helpful? Yes | No

    Unhappy Hmmm everybody understand me wrong :(

    i thing every body understand me wrong coz i want to set i timer that start with 00:00:00 and if i push the button that connected to the RA4 it will plus the reverse timer 30 minute 00:00:00 will become 00:30:00 after than countdown beguns 00:29:59 .......00:28:59...... till 00:00:00 but when the countdown starts or continues if i push the button again for example when the time 00:25:19 it will plus 30 minute again and the time will become 00:55:19 every push will plus 30 minute 01:25:19 ... 01:55:19 and goes.My problem is when i try to start the time from 00:00:00 on the LCD i see 0:0:0 if i push the button it becomes 0:30:0 after than it goes 0:29:1=>0:29:0=>0:28:1=>0:28:0 i really cant find the problem
    Asking is not a shame but not learning is a SHAME!!!

  3. #3
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    try:
    LCDOUT DEC2 saat,":",DEC2 dakika,":",DEC2 saniye

    DEC2 will always print two digits to your display.

  4. #4
    Join Date
    May 2005
    Posts
    49


    Did you find this post helpful? Yes | No

    Talking everything works no problem

    ok i resolve the problem the real problem is putting the codes to the right place i am getting to learn programming in pic basic
    Last edited by SuB-ZeRo; - 7th June 2005 at 01:15. Reason: I edit coz i resolve some problems
    Asking is not a shame but not learning is a SHAME!!!

Similar Threads

  1. LCD problem with 16F628
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 19th September 2016, 08:28
  2. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  3. LCD problem
    By Andre_Pretorius in forum General
    Replies: 8
    Last Post: - 27th January 2009, 15:47
  4. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07

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