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

about 74165

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



Joined: 11 Jun 2005
Posts: 38

View user's profile Send private message

about 74165
PostPosted: Sat Sep 24, 2005 12:20 pm     Reply with quote

i am trying use more from 3 pin pic to have 16pin for input data (16 bit)
i need use 74165 but i dont know how i can use it .
thare is schematic for this ?
thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 24, 2005 12:24 pm     Reply with quote

I suggest you use http://www.google.com with suitable keywords:
74165 CCS

This will quickly find the Blitzlogic example which has a schematic.
ferrarilib



Joined: 11 Jun 2005
Posts: 38

View user's profile Send private message

PostPosted: Thu Oct 06, 2005 9:28 am     Reply with quote

i have try use 2 74165 and my schematic is easy to cascade mode .

my schematic is :

1° 2°
1 -> 1
2 -> 2 ---- C1 CLOCK
3-> out 3
4->out 4
5->out 5
6->out 6
7 NC 7
8 -------> 8 GND
9-----> D1
9 ---> 10
11 out 11
12 out 12
13 out 13
14 out 14
15 ---> 15 ---> GND
16-----> 16 ---> 5v



and this is mi code cange ..

#IFNDEF EXP_IN_ENABLE

#define EXP_IN_ENABLE PIN_C0 //b3
#define EXP_IN_CLOCK PIN_C1 //b4
#define EXP_IN_DI PIN_C5 //b5
#define NUMBER_OF_74165 2

#ENDIF
**************************

int16 inp;

read_expanded_inputs(&inp);


my problen is that read only the first chip
max result inp=00FF
and not FFFF when all input is to 1.

i do same thing not good ?
read only 8 bite
not 16 bite
thanks
ferrarilib



Joined: 11 Jun 2005
Posts: 38

View user's profile Send private message

PostPosted: Thu Oct 06, 2005 10:02 am     Reply with quote

sorry i see because was not good

void read_expanded_inputs(byte *ei) {

to
void read_expanded_inputs(int16 *ei) {


thanks
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