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

CCP dual operation

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



Joined: 09 Mar 2004
Posts: 52
Location: Greater Manchester - UK

View user's profile Send private message

CCP dual operation
PostPosted: Sat Apr 17, 2004 9:39 am     Reply with quote

Dear All,

I was wondering if I could pick some of your brain cells:

PIC16f874

I know this pic has 2 CCP pins.

Unfortunatly both are used in capture mode.

If I want to multiplex a minature piezo speaker with a sensor which
generates a frequency.

How can I prevent the signal from the sensor from driving the minature piezo speaker directly???

All the best
_________________
Best Regards
Ttelmah
Guest







Re: CCP dual operation
PostPosted: Sat Apr 17, 2004 10:40 am     Reply with quote

asjad wrote:
Dear All,

I was wondering if I could pick some of your brain cells:

PIC16f874

I know this pic has 2 CCP pins.

Unfortunatly both are used in capture mode.

If I want to multiplex a minature piezo speaker with a sensor which
generates a frequency.

How can I prevent the signal from the sensor from driving the minature piezo speaker directly???

All the best

It is difficult to know from your rather 'incomplete' description. However probably something like using an output from the PIC to control a multiplexer. Since it sounds as though you will be controlling a signal that is bi-directional, look at bi-lateral switches, or an 'analog multiplexer'. The 74HC4351, is an example of this type of device. Then set the signal to route the CCP pin to the piezo when you want to send this a signal, or to connect the sensor, when you want to read this.

Best Wishes
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