CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

SPI RTC DS1302 (3 wire not really SPI)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

SPI RTC DS1302 (3 wire not really SPI)
PostPosted: Wed Oct 26, 2005 6:42 pm     Reply with quote

Hello All,

A revision of a current project with an SPI ASIC is going to include the addition of SPI FRAM EEPROM and an SPI RTC. I'm interested in using the DS1302 but it is slightly different than a standard SPI interface.

My questions are:

1. Do I just connect both the SDA and SDO to the I/O pin on the DS1302?

2. If that is correct, will that cause any complications with the other SPI hardware on the bus? (I assume not because of the ability to address individual hardware with the CS?)

3. I may have enough extra pins to separate the RTC to other I/O pins and Bit-Bang SPI for the RTC. Any need for that based on questions #1 & #2?

Note: Demand for any given piece of hardware on the SPI bus will not occur simultaneously. (i.e. PIC will request values from ASIC, if value meets criteria, PIC will get time from RTC, then PIC will write data to EEPROM, and then will start back with the ASIC.....)

Thanks Again to All,

John

EDIT:

I found some threads that discuss this issue. From what it sounds like it may be simpler (or cause less problems) if I separate DS1302 from the other "true" SPI peripherals.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 26, 2005 10:58 pm     Reply with quote

If the addition of the RTC is new then why not use the DS1305 which is an SPI device.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Oct 27, 2005 8:15 am     Reply with quote

My current project is using fram and rtc on hardware I2C port.

I2C FRAM FM24C256(four of them) and a M41T80 RTC with a 1F cap backup.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Thu Oct 27, 2005 8:16 am     Reply with quote

Andrew,

Thanks, I had originally decided on the DS1305. But I ran into to minuses when I evaluated the 1305. I was hoping to go to all SMT parts and the 1305 is a super-shrink package. I can stuff small outline parts by hand, but super-shrink I'm not sure if I'm ready to try. Also, the 1302 already has the driver written and the 1305 has less info available.

I may just go to the 1305 in the DIP and accept the fact I'll have some driver work to do..... it appears as though I may need those extra pins back for some feature bloat.

John
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group