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

PWM set out

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



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

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

PWM set out
PostPosted: Fri Mar 21, 2008 11:48 am     Reply with quote

Hi,
just a little of programing but to a hardware question.
the sample hardware from microchip on the PWM shows PWM pin to a 1K resistor with a .1uf cap to ground to get a average voltage out.
is it possible to have the 1K resistor at 5V to PWM pin with the cap PWM pin to ground to get a average 0-5V output.

I am using a 3.3V micro that has a 5V tolerant pin. Confused
_________________
What has been learnt if you make the same mistake? Wink
Matro
Guest







PostPosted: Fri Mar 21, 2008 11:53 am     Reply with quote

It should be OK since the µC is 5V tolerant.
But I'd better had a transistor...

Matro.
Storic



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

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

PostPosted: Fri Mar 21, 2008 12:45 pm     Reply with quote

I was thinking the same, should be OK, and yes it will be going via a transistor.
Has anyone do this this way before. Confused
_________________
What has been learnt if you make the same mistake? Wink
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