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

EDTP Packet Whacker / EECS - Chipselect usage ?

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



Joined: 10 Feb 2004
Posts: 12
Location: Denmark, (Scandinavia-Europe)

View user's profile Send private message ICQ Number

EDTP Packet Whacker / EECS - Chipselect usage ?
PostPosted: Wed Feb 18, 2004 10:41 am     Reply with quote

Hi guys :-)
Hope you can help me out with a simple Chipselect question.

I'm doing my Finals with a project:
Pic16F877
Packet whacker - www.edtp.com
HD44780 LCD - 2*16, scrollable

What I am doing:
I am out of datapins on the pick with the basic setup of the Pic and the Whacker. I figured I could use PORTD as a shared databus between the LCD and the Whacker, cool.

Problem:
I need to make sure that the Whacker does NOT recieve the data sent to the LCD. The LCD has a CS option (e.g. pin6 Enable= '1').
The Whacker however does not have an apparent CS option.
I did notice that 1 pin on the whacker is not used/connected. EDTP calls it EECS.

My question:
Has anyone got experience with this combo or at least enough diagram knowledge to tell me whether or not I could use the EECS to deselect the Whacker and thus make sure that the Whacker does not use/read the databus while I am adressing the LCD.

My fear is that the EECS is only for the eeprom part of the whacker, not the entire kit.


Hope someone smarter than me can crack this one :-)

Reference:
http://www.edtp.com/download/pw/whacky.exe


Thanks, always a pleasure reading this forum.

BR
Rasmus 'Izolator'
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Wed Feb 18, 2004 11:11 am     Reply with quote

Here are some suggestions. Since this is for your schoolwork (and congratulations on saying that up-front, most people don't) these are a little vague but should stimulate the creative process...

0) Look at CCS LCD example code to see how they mapped the LCD to port B. Would also work for mapping to port D
1) Use 4-bit interface for LCD instead of 8-bit wide version. Saves 4 I/O lines.
2) Use 3 lines to control LCD by putting shift register (eg 74hc164 or 74hc595) between PIC and LCD. Again use LCD in its 4-bit interface mode. However this does not let you read-back from the LCD although most people don't do that anyway.
3) Use bus transceivers like 74hc245, 240, 241, 244, etc and selector/decoder like 74hc138 or 139 to make data bus. Then everybody gets to ride the bus.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Izolator



Joined: 10 Feb 2004
Posts: 12
Location: Denmark, (Scandinavia-Europe)

View user's profile Send private message ICQ Number

PostPosted: Wed Feb 18, 2004 12:00 pm     Reply with quote

mmm mmm...

That was exactly what I was hoping for Very Happy
I think I will go for a solution with external IC's for sharing the bus.

Thankyou so much Very Happy


BR
Rasmus 'Izolator'
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