Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 22nd June 2008, 12:27 PM   (permalink)
Default Countdown timer + LCD + Keypad

Hi,

I am facing a problem in my programming. Any button press on the keypad didt display any character in the LCD.
Attached Files
File Type: txt code.txt (12.1 KB, 7 views)
josephkim87 is offline  
Reply With Quote
Old 22nd June 2008, 01:18 PM   (permalink)
Default

This is my countdown timer code. My keypad code is from nigel. If any key is press, will it go to the Hours?

countdown
;Secs
S1
call Delay250
call Delay250
call Delay250
call Delay250
call Chk_Keys
movf key, w
movwf Hours
movf Hours, w
movwf NumL
call DisplayH
movlw ':'
call LCD_Char
movf Mins, w
movwf NumL
call DisplayM
movlw ':'
call LCD_Char
movf Secs, w
movwf NumL
call DisplayS
movf Secs,w
btfss STATUS,Z
goto cd_Secs
call Display_Secs

;Mins
movf Mins,w
btfss STATUS,Z
goto cd_Mins
call Display_Mins

;Hours
movf Hours,w
btfss STATUS,Z
goto cd_Hours
call Display_Hours


cd_Secs
decf Secs, f
goto S1

cd_Mins
decf Mins, f
goto S1

cd_Hours
decf Hours, f
goto S1

Display_Secs
movlw d'59'
movwf Secs
return

Display_Mins
movlw d'59'
movwf Mins
return

Display_Hours
movlw d'00'
movwf Hours
return
josephkim87 is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Countdown Timer Please HELP! FABASQ Micro Controllers 0 15th May 2008 10:09 PM
countdown timer RoyalMaster Electronic Projects Design/Ideas/Reviews 6 10th June 2007 08:13 AM
Countdown Timer ParkingLotLust Electronic Projects Design/Ideas/Reviews 17 15th August 2006 04:02 PM
can anyone help me with a countdown timer? dicko44 Electronic Projects Design/Ideas/Reviews 2 24th July 2005 06:33 AM
Countdown Timer ctduong1 Electronic Projects Design/Ideas/Reviews 6 2nd November 2004 04:50 AM



All times are GMT. The time now is 02:07 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.