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

Problem!! 74HC595 !!!

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



Joined: 11 May 2009
Posts: 1

View user's profile Send private message

Problem!! 74HC595 !!!
PostPosted: Mon May 11, 2009 12:58 pm     Reply with quote

I need the code 74HC595 with 4-Digits 7-Segments Display Cathode Common and DS1307 RTC (12-hour format AM/PM) on CCS C. Please help me. Crying or Very sad
asmboy



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

View user's profile Send private message AIM Address

how to begin
PostPosted: Tue May 12, 2009 12:24 pm     Reply with quote

as a first step - you could show how you propose to connect the hardware in question and then have a go YOURSELF at writing some code - to at least show that YOU

(a) put in some effort to start with

and

(b) might actually have the chops to do what you inquire about.

as a rule, there are plenty of working professionals on the board who can and HAVE - had to deal with this EXACT sort of thing in the past.

i know i have dealt with SPI drive of the 595 and its higher powered
( TI.COM) TPICxxxx relatives.

And as kindly as i can state this:
I'm not here to do your work FOR you.
ECACE



Joined: 24 Jul 2006
Posts: 94

View user's profile Send private message

PostPosted: Tue May 12, 2009 1:55 pm     Reply with quote

Take a look at:

\Program Files\PICC\Examples\EX_EXSIO.C

and

\Program Files\PICC\Examples\EX_DS1307.C


These should give you some information on it as well.
_________________
A HW Engineer 'trying' to do SW !!! Run!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 12, 2009 2:11 pm     Reply with quote

Quote:
Program Files\PICC\Examples\EX_DS1307.C

That file doesn't exist.

But there is a ds1307 driver in the Code Library:
http://www.ccsinfo.com/forum/viewtopic.php?t=23255

This example file has some 7-segment LED display code that uses
the 74595.c driver file. Look at the lcd_putd() function:
Quote:
c:\program files\picc\examples\ex_zmd.c
ECACE



Joined: 24 Jul 2006
Posts: 94

View user's profile Send private message

PostPosted: Tue May 12, 2009 2:42 pm     Reply with quote

Oops, my mistake. I had taken that driver and example code you are pointing to and saved the sample program as EX_DS1307.C.
_________________
A HW Engineer 'trying' to do SW !!! Run!!!
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