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 CCS Technical Support

74hc595.c

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



Joined: 21 Feb 2012
Posts: 11

View user's profile Send private message MSN Messenger

74hc595.c
PostPosted: Fri Feb 24, 2012 8:46 am     Reply with quote

I'm looking for the driver of 74hc595.c

I request to explain the meaning :

1- for(i=1;i<=NUMBER_OF_74595*8;++i) {

2- if((*(eo+(NUMBER_OF_74595-1))&0x80)==0)



3- write_expanded_outputs (&data[huns],0);
asmboy



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

View user's profile Send private message AIM Address

PostPosted: Fri Feb 24, 2012 9:29 am     Reply with quote

1- for(i=1;i<=NUMBER_OF_74595*8;++i) {

is a standard 'C for-next loop

2- if((*(eo+(NUMBER_OF_74595-1))&0x80)==0)

a standard C evaluation expression of the IF-THEN variety

3- write_expanded_outputs (&data[huns],0);

a support function using an address operator pointer for its argument
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Feb 24, 2012 2:08 pm     Reply with quote

Here are two threads that discuss how the 74595.c driver works:
http://www.ccsinfo.com/forum/viewtopic.php?t=45065
http://www.ccsinfo.com/forum/viewtopic.php?t=22789
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