The reason why I'm using a LCD display is because it allow me to display many characters and it doesn't need to be "refreshed" as 7-segment Led displays. Also, the interface requieres less I/O pins. Taken from http://www.josepino.com For this project I used a 16x1 LCD Display with 4-bits interface.
Schematic:
22pF capacitors keeps the clock accurate. Read the XTAL specifications to determine what capacitor value is the indicated for it.
Time and date are displayed as HH:MM:SSx mmm dd, where:
HH = Hours
MM = Minutes
SS = Seconds
x = AM/PM
mmm = Month (Jan, Feb, Mar)
dd = Day.
I/O pins A2, A3, A4 and A5 of the 16F628 are not used. I reserved these pins to connect a LM75 (LM75 uses I2C communication) and display the temperature. Actually, I'm not developing any application using communication, so, any modification will be done until next year. (The name will change to LCD clock with Thermometer and Calendar).
Another way to build a thermometer without using any protocol is using a thermistor. Unfortunately, thermistors are not accurate and need calibration. However, The microcontroller doesn't need an A/D converter to connect it.
08/18/09 - 22:19:26 Pedro from Brasil wrote: Todos o meses tem 31 dias. Como resolver isso?
08/30/09 - 18:05:50 SHIVENDRA from INDIA wrote: PL ITS CAN U SEND ME ASM FILE .MY MAIL [shivendrakumarsahu77@yahoo.com]. PL MOD.IT WITH ALARME ON-TIME\OFF-TIME. IN ON-TIME MODE 1 SEC - OR + AS REQ.EVRYDAY.
09/09/09 - 05:39:33 ronie from philippines wrote: hey, nyc project, but can you give me the code of this project? you used a mikro C prog???
09/09/09 - 05:42:52 ronie from philippines wrote: i already tested ur work, but theres a problem in displaying the months and days, it doesnt appear in the lcd
09/09/09 - 05:45:42 José Pino wrote: That is an issue with some LCD hitachi compatible displays. Using a two-lines display will show month and days in the second line. Regarding the code, sorry, it's currently unavailable.
09/10/09 - 04:20:08 ronie from philippines wrote: so you do not have the code yet? how you get the hex file sir?? what program you used on it??
09/10/09 - 04:24:52 José Pino wrote: To get the HEX file, just click the link indicated as "Download the HEX code HERE". I did use JAL to develop the first version.
10/11/09 - 21:31:42 Rizwan from Pakistan wrote: nice clock, will it work with 16F628A also?
10/11/09 - 21:40:03 José Pino wrote: It should work with the 16F628A, just set the configuration fuses as indicated.
11/09/09 - 03:32:12 CR from sweden wrote: How do you download the hex? When I try to download the hex I got sent to a non existing webpage
11/09/09 - 03:35:08 José Pino wrote: Right click on the link "Download the HEX code HERE" and choose "Save link as..."
11/09/09 - 22:29:09 TL from Sweden wrote: Many Tnx José. This was the first HEX file that works to test my LCD panel. Offcourse was my first LCD broken so i hade to buy a new one. Tnx again from TL in Sweden.
11/16/09 - 16:02:07 John from Lebanon wrote: hello, may you send me the code file? my e-ail is John.francis1978@yahoo.com
11/19/09 - 06:07:39 Francis from Philippines wrote: Sir jose. as i read on the comments that theres something wrong with the display of monts and day? i would like to use this in our project at school. can you send the projct files to me? just for educational purpose. what language you used? Thanks in advance.