piclist 2001\01\03\121742a >
Thread: Connecting PWM1 -> RC0
face BY : Dan Michaels email (remove spam text)

Rodigo wrote:
>Dan Michaels writes:
> > Rodrigo Real wrote:
> >
> > It is not clear what the problem is here. What does +/-300hz
> > signal mean?
> It means the frequency is around 300Hz (it is not changing, if that's what
you are thinking), I expect it were 20KHz, just like the PWM frequency.

If you simply write a loop to poll RC1 [or RC0/RB0 when using
external connections - as you indicated you have already done],
then you should see the 20khz PWM signal on your portB pin.

1 - check that PWM is actually coming out of RC1. This is PWM
   channel **2**, BTW.

2 - maybe you programmed PWM ch#1 instead --> comes out RC2.

3 - simple loop should do it, without any external connections.

L1      btfss   portc,1         ; PWM ch#2 output bit
       bcf     portb,2         ; signal out
       btfsc   portc,1
       bsf     portb,2
       goto    L1

http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


See also: www.piclist.com/techref/microchip/ios.htm?key=pwm
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Connecting PWM1 -> RC0

month overview.

new search...