Previous in Forum: Core Balance Current Transformers   Next in Forum: Standards for Industrial Power Sockets
Close
Close
Close
2 comments
Rate Comments: Nested
Associate

Join Date: Jul 2007
Posts: 26

How to Interface DS 1302 to PIC 16f877

02/17/2009 5:16 AM

hi

i have to interface a ds1302 to the pic 16f877 and i dont know how.

i am using the pic wiz c compiler .

i dont seem to get anything from the datasheet

any help or working code?

thank you

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Evolution - New Member Popular Science - Weaponology - New Member

Join Date: May 2006
Location: The 'Space Coast', USA
Posts: 11119
Good Answers: 918
#1

Re: ds1302 to pic 16f877

02/17/2009 6:43 AM

Start by looking up serial interfaces for SPI and I2C. The clock chip's protocol is similar and should make sense once you understand how the two protocols I cited work.

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#2

Re: ds1302 to pic 16f877

02/17/2009 8:02 AM

Try googling ds1302 pic interface. There are several examples you can refer to.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Register to Reply 2 comments

Previous in Forum: Core Balance Current Transformers   Next in Forum: Standards for Industrial Power Sockets

Advertisement