| Author |
Message |
bingoz2002
Joined: 12 Jul 2005 Posts: 15 Location: Singapore
|
13 Jul 2005 10:26 clock dispaly project onlcd |
|
|
|
|
| i need help in writing the source code to display time/clock on the LCD using PIC16F877. Can anyone provide me with the help??? pls.. the program i'm using is MPLAB. HELP!!!
|
|
| Back to top |
|
 |
VVV
Joined: 26 Nov 2004 Posts: 1584 Helped: 290
|
13 Jul 2005 18:19 dcf clock with pic16f628a |
|
|
|
|
You can start by reading this appnote. www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en011059
It does not matter that the display you have is 2x16, it can be up to 2x40.
If you get stuck, please post.
|
|
| Back to top |
|
 |
bingoz2002
Joined: 12 Jul 2005 Posts: 15 Location: Singapore
|
14 Jul 2005 3:57 ds1307 maxim decode |
|
|
|
|
thanks for your help... at least i could get started now.
Added after 1 hours 35 minutes:
what if i were to use a different PIC controller?? PIC16F876?? Is the programming mrthod the same?? i'm a newbie in MCT stuffs.
Added after 5 minutes:
what if i were to use a different PIC controller?? PIC16F876?? Is the programming mrthod the same?? i'm a newbie in MCT stuffs.
|
|
| Back to top |
|
 |
VVV
Joined: 26 Nov 2004 Posts: 1584 Helped: 290
|
16 Jul 2005 23:52 atmega lcd 2x20 |
|
|
|
|
| The method is the same and the code can stay the same. Just make sure you specify the correct device in your code and make sure you define the pins correctly.
|
|
| Back to top |
|
 |
zristic
Joined: 29 Aug 2004 Posts: 29
|
18 Jul 2005 13:11 16f87 dcf77 clock |
|
|
|
|
This link could be of help:
http://mikroelektronika.co.yu/english/product/compilers/mikrobasic/project0005/
|
|
| Back to top |
|
 |
Turbokeu
Joined: 25 Apr 2005 Posts: 16 Helped: 3
|
19 Jul 2005 8:16 pic16f628 and dcf77 |
|
|
|
|
| bingoz2002 wrote: |
| i need help in writing the source code to display time/clock on the LCD using PIC16F877. Can anyone provide me with the help??? pls.. the program i'm using is MPLAB. HELP!!! |
Where are you located?
I made a LCD clock with PIC16F628 and DCF77 time signal reception module.
It displays time, date, winter/summertime, day of week, month and reception/decoding status of DCF signal.
It also has a free running clock routine when DCF is not available.
The code is easily transportable to a 16F87x
CD
|
|
| Back to top |
|
 |
eYe
Joined: 12 Aug 2001 Posts: 105 Helped: 1
|
19 Jul 2005 8:39 dcf avr hd44780 bascom |
|
|
|
|
You can seperate to 3 Parts.
1. MCU, The difference is what features do you want. ARM, PIC, AVR, 8051 etc.
2. RTC, Real Time Clock, the chip that keep you accurate time.
3. LCD, you can use Character LCD, Graphics LCD. but it effects the data/control pins on your MCU
0. Development Software, Most of programs supports both LCD Types. You can call the routine for Print, Clear etc. like PiCBasicPro, Proton, ImageCraft, BASCOM, Keil and many others.
|
|
| Back to top |
|
 |
bingoz2002
Joined: 12 Jul 2005 Posts: 15 Location: Singapore
|
19 Jul 2005 10:10 dcf pic16f877 |
|
|
|
|
| i'm located in Singapore.. actually i'm quite a newbie in this stuffs and i am required to display time on LCD for my MAjor Project. The programming language i'm advised to use by my supervisor is Assembly language (MPLAB). I'm quite stuck at the source code for displaying real time clock. However, i've quite done the initialisation part. HELP!!
|
|
| Back to top |
|
 |
Google AdSense

|
19 Jul 2005 10:10 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Turbokeu
Joined: 25 Apr 2005 Posts: 16 Helped: 3
|
19 Jul 2005 10:26 mikrobasic ds1307 |
|
|
|
|
| bingoz2002 wrote: |
| i'm located in Singapore.. actually i'm quite a newbie in this stuffs and i am required to display time on LCD for my MAjor Project. The programming language i'm advised to use by my supervisor is Assembly language (MPLAB). I'm quite stuck at the source code for displaying real time clock. However, i've quite done the initialisation part. HELP!! |
I can send you my ASM code and a schematic if you want.
As you're located in Singapore DCF reception is impossible.
You will have to remove the DCF reception and decoding routines and add input routines to set the clock manually, but the code will serve you as a starting point for your own.
CD
|
|
| Back to top |
|
 |
bingoz2002
Joined: 12 Jul 2005 Posts: 15 Location: Singapore
|
19 Jul 2005 10:32 dcf signal help |
|
|
|
|
sure Turbokeu.
i'll be gald to have the ASM codes.
thank u
|
|
| Back to top |
|
 |
eYe
Joined: 12 Aug 2001 Posts: 105 Helped: 1
|
19 Jul 2005 10:35 ds1307 mikrobasic library |
|
|
|
|
For using ASM,
You may need to learn how to operate LCD, You cound find the interface command easily. also flowchart how to write ASCII to LCD.
Using HD44780 LCD type would be easily programming.
check this link to learn how to use LCD
http://ouwehand.net/~peter/lcd/lcd.shtml
|
|
| Back to top |
|
 |
Turbokeu
Joined: 25 Apr 2005 Posts: 16 Helped: 3
|
19 Jul 2005 10:36 how to display time in lcd |
|
|
|
|
I have the code for a 2x20 and a 2x16 LCD, which one do you prefer?
Can you give me an email address where to sent it?
CD
|
|
| Back to top |
|
 |
bingoz2002
Joined: 12 Jul 2005 Posts: 15 Location: Singapore
|
19 Jul 2005 10:41 ds1307 code |
|
|
|
|
2X16 LCD..
send me at bingoz2002(at)yahoo.com.
thanks..
|
|
| Back to top |
|
 |
ferds
Joined: 08 Jul 2005 Posts: 6
|
19 Jul 2005 10:45 time of day (rtc) display on the lcd in arm7 |
|
|
|
|
| Quote: |
I have the code for a 2x20 and a 2x16 LCD, which one do you prefer?
Can you give me an email address where to sent it?
|
i also want to see your code , i prefer the 2x20 lcd.
my email:
ferds.calma(at)gmail.com
thanks
ferds
|
|
| Back to top |
|
 |
Turbokeu
Joined: 25 Apr 2005 Posts: 16 Helped: 3
|
19 Jul 2005 11:19 avr dcf77 decoder |
|
|
|
|
Just sent the files to both of you.
CD
|
|
| Back to top |
|
 |
leemarrow
Joined: 03 May 2001 Posts: 294 Helped: 1
|
19 Jul 2005 11:22 lcd mplab |
|
|
|
|
for picbasic user try this code example:
http://www.melabs.com/resources/samples/x1/pbp/clockx.bas
this code is for LAB-X1 Experimenter Board with 16f877.
You can download schematic here:
http://www.melabs.com/downloads/labx1sch.pdf
Lcd is connect on port d
|
|
| Back to top |
|
 |
bingoz2002
Joined: 12 Jul 2005 Posts: 15 Location: Singapore
|
20 Jul 2005 5:55 assemble source code for displaying on lcd |
|
|
|
|
| which RTC IC would u recommend me to use n do i need to have a separate program to set the time to the IC? And do i connect the RTC IC to the same PIC as the LCD??i'm a little confused here about the connections.
|
|
| Back to top |
|
 |
Turbokeu
Joined: 25 Apr 2005 Posts: 16 Helped: 3
|
20 Jul 2005 7:18 supercap with ds1307 |
|
|
|
|
| bingoz2002 wrote: |
| which RTC IC would u recommend me to use n do i need to have a separate program to set the time to the IC? And do i connect the RTC IC to the same PIC as the LCD??i'm a little confused here about the connections. |
I recommend the DS1307 from Maxim (you can ask a free sample!).
This RTC uses 100kBit I²C protocol (slave mode) through 2 lines (SDA-SCL), which are also available on the 16F877.
Complete RTC registers (HH,MM,SS - DD,MM,YYYY, Day of week, and leap year up to 2100) + 56 bytes of free RAM memory.
Needs one 32.768 KHz Xtal and a 3V power supply for backup (Li battery or supercap). See DS1307 datasheet from Maxim.
You will need I²C routines (read/write) to communicate with the DS1307, and keyboard input routines to set date/time.
I sampled two DS1307 from Maxim, I collected some I²C routines, but now I need time to develop and test everything out.
CD
PS: Of course everything can be connected to one PIC.
|
|
| Back to top |
|
 |
Truclam
Joined: 11 Nov 2005 Posts: 16
|
06 Mar 2006 6:51 i need free sample of character lcd |
|
|
|
|
Hi all,
Can anyone send me the LCD sample (I use Atmega32 in my project)
my email : phuvinh1003(at)yahoo.com
|
|
| Back to top |
|
 |