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
 
LinkBack Thread Tools Display Modes
Old 3rd November 2003, 08:42 AM   (permalink)
Default PIC and DS1307

i am doing a clock project using DS1307 interfacing with PIC now. I have read throught DS1307 manual but can understand well especially about the SPI. anyone have experience ?
huanyong is offline  
Old 6th November 2003, 10:25 AM   (permalink)
Default

You did mean I2C-bus.
I have done some experiments with 16f628 & DS1307. Software is still very much on a "beta" stage, but hopefully I can get it in use some day.

If you are not familiar with I2C-bus then it might be good to dig in that first. at least get the basics of it.
Here's a web site I found useful for trying to understand I2C-bus commands and their use.
http://www.esacademy.com/faq/i2c/

I2C bus events at least is worth reading.

Naturally it depends a lot which programming language you are using. I have been using assembler and I have built most of the bus commands from scratch.
If you use C-language I think you can find I2C-bus functions ready from the software. Then you probably only need to learn the principles of I2C-bus operation to get started.

In DS1307 there is this nice feature. DS1307 can be set to give an output on one pin for example once every second. If you then connect a led (with resistor naturally) on that pin, you can have a visual confirmation that you have succesfully managed to write in DS1307's control register. If you get what I mean.

My application with DS1307 consist of 16F628, DS1307 and LCD display. It's stage today is that it displays time and date on a LCD, and you can set time/date with few buttons. As I already mentioned software is very immature, so bugs and faults still needs some work among other things.

So if you can specify what sort of help you need, I can try to give some assistance.
__________________
I\'m only a human.
PICcie is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:15 AM.


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

eXTReMe Tracker