Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 25th January 2007, 08:18 PM   #1
Post PIC 16f877 with RTC

Dear;
i found a problem in choosing anbd connecting the best RTC chip with the PIC 16F877 and progran\mming it in c .
can any one which know aboout this issue tell me about.
ahmad-al3omar is offline  
Old 25th January 2007, 08:42 PM   #2
Default

'Best' is a purely subjective term - you need to choose a device that you can source easily. You are also seriously limiting yourself by using C, there is a HUGE amount of assembler available, and really very little C. Have a look on the PICList, you may get some ideas there.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 25th January 2007, 09:09 PM   #3
Default

really i dont know how can i connect the rtc by the clk out or other terminals with pic 16f877a ,,, any schematic if available ?
thanx
ahmad-al3omar is offline  
Old 25th January 2007, 10:00 PM   #4
Default

It depends what interface the particular chip uses, some are I2C (there's an example in my tutorials), some are SPI, some use other interfaces.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 26th January 2007, 02:28 AM   #5
Default

Off topic:
Over 15,000 post and Nigel still keeps Assembler and PIC Assembler alive. The world just go a little bit better one opcode at a time.
donniedj is offline  
Old 26th January 2007, 02:35 AM   #6
Default

Machine code? That's hardcore, or wait what's the word I'm looking for? Insane! That's it!
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 26th January 2007, 03:23 AM   #7
Default

You really need assembler to fully use the PIC properly. At least an understanding of it. It's not that hard, now if you want C use an 18F series PIC and skip the 16F

For a clock chip I'd use a DS1388 with trickle charger. (the DS1307 is good too but no trickle charger)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 26th January 2007, 07:40 AM   #8
Default

Quote:
Originally Posted by donniedj
Off topic:
Over 15,000 post and Nigel still keeps Assembler and PIC Assembler alive. The world just go a little bit better one opcode at a time.
There's nothing to keep alive, PIC's are generally programmed in assembler, and almost all the code available is in assembler - there are only small amounts of other languages on the net. This changes when you move to the 18F series, as they are optimised for C. MicroChip provide a free C compiler for it, and even the application notes are in C.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 26th January 2007, 10:02 PM   #9
Default

Good. For now anyway.
donniedj is offline  
Old 26th January 2007, 11:40 PM   #10
Thumbs up My opinion, based in limited experience....

Quote:
Originally Posted by Nigel Goodwin
........This changes when you move to the 18F series, as they are optimised for C. MicroChip provide a free C compiler for it, and even the application notes are in C.
Even then, they can still be easily programmed in assembler as the previous families. And the instruction set plus their internal organization makes programers' life, MUCH easier!
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
atferrari is offline  
Reply

Tags
pic, rtc

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
PIC Transistor LED PeterDove Micro Controllers 30 9th February 2007 09:48 PM
PIC 16F628A UART Coding Problem Gayan Soyza Micro Controllers 11 1st February 2007 12:59 PM
PIC programming over 10ft kybert Electronic Projects Design/Ideas/Reviews 13 26th January 2007 05:04 PM
Urgent Pic 16f877 akk182 Micro Controllers 8 25th July 2006 10:39 PM
16f877 help with config word fishcurry Micro Controllers 1 31st July 2003 12:02 PM



All times are GMT. The time now is 09:54 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker