伊莉討論區

標題: urgent!!! debug in C!!!(it is new, related to last one) [打印本頁]

作者: cwfw    時間: 2012-4-10 10:20 PM     標題: urgent!!! debug in C!!!(it is new, related to last one)

First of all, you may answer in chinese if you want...

I am using C to write a programme to create a clock.(yes, a clock!)
However, there are some problems in the calulation of date and time. The programme can run, but the display is no good. The date and time are freezed. I think the programme maybe loop.(I don't know)

Please find the attached and help debug. The programme is quite long.
The following are the description of the frogramme.

1)There are some functions used to calulated the date and time. I suppose that is the main programme, now the result display is 00-00-01   mon
                                    00:85:80   Cheng              (something like that)
2)I use keil C as compiler.
3)The date and time are freeze. They cannot count. They are always display as the above.
4)The chip is DS1302 connected to 8051 and display in LCD, in case you need to know.

Thank you again! I really need help!






歡迎光臨 伊莉討論區 (http://www.eyny.com/) Powered by Discuz!