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

interface of rtc ht1380 with pic16f72

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



Joined: 04 May 2009
Posts: 35
Location: India

View user's profile Send private message

interface of rtc ht1380 with pic16f72
PostPosted: Thu Jun 18, 2009 12:14 pm     Reply with quote

Hi,
How to interface a RTC "ht1380" with pic16f72. Its a 8-PIN IC.

http://www.holtek.com.tw/pdf/consumer/1380_1v111.pdf

Pad Description
Pad No. Pad Name I/O
Internal
Connection
Description
1 X1 I CMOS 32768Hz crystal input pad
2 X2 O CMOS Oscillator output pad
3 VSS  CMOS Negative power supply, ground
4 REST I CMOS Reset pin with serial transmission
5 I/O I/O CMOS Data input/output pin with serial transmission
6 SCLK I CMOS Serial clock pulse pin with serial transmission
7 VDD  CMOS Positive power supply

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 18, 2009 1:27 pm     Reply with quote

The Holtek HT1380 is similar to the DS1302. CCS has a driver for
the DS1302:
Quote:
c:\program files\picc\drivers\ds1302.c

You can compare the data sheets and modify the ds1302 driver to
make a ht1380.c driver.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

what the heck is the protocol here ?
PostPosted: Thu Jun 18, 2009 3:07 pm     Reply with quote

is there a NAME for the goofy physical layer protocol these parts use ?

on first blush,
it it looks like vanilla SPI - but with a shared SDO/SDI line
is there a name for that ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 18, 2009 4:28 pm     Reply with quote

Yes, it's called "3-wire" SPI.
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus#3-Wire_Serial_Buses
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