Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
PWM set out
Posted: Fri Mar 21, 2008 11:48 am
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. _________________ What has been learnt if you make the same mistake?
Matro Guest
Posted: Fri Mar 21, 2008 11:53 am
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
Posted: Fri Mar 21, 2008 12:45 pm
I was thinking the same, should be OK, and yes it will be going via a transistor.
Has anyone do this this way before. _________________ What has been learnt if you make the same mistake?
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