PWM on other pins

Started by Ed April 15, 2005

Is it possible to connect the PWM to other pin than 25, 26 or 27?
For example pin 7 or 18?

Thanks

Ed



... No. The BX-24 PWM outputs are restricted to those pins by the 8535 ...

Ed, No is the simple answer if you want to make use of the hardware generated...


--- In basicx@basi..., Mike Perks <basicx@a...> wrote:
> You can generate your own PWM signal on any pin using the right
> timing (just flip the pin from 0 to 1 and back to 0 at the right
> time)...

FYI for those that don't know: generating signals this way is often
referred to as "bit banging". The Com3 serial port is implemented
using this technique.

Whether or not you can bit bang a particular protocol depends on
whether you can meet the timing requirements of the protocol.

Don



> ... PWM to other pin than 25, 26 or 27?

No. The BX-24 PWM outputs are restricted to those pins by the 8535
processor and the BX-24 design. Timer1 uses pins 26 and 27; Timer2 uses
pin 25. Tom
Tom Becker
--... ...--
GTBecker@GTBe... www.RighTime.com
The RighTime Clock Company, Inc., Cape Coral, Florida USA
+1239 540 5700


Ed,

No is the simple answer if you want to make use of the hardware
generated PWM from Timer 1 - see the Atmel chip specification document.
You can generate your own PWM signal on any pin using the right timing
(just flip the pin from 0 to 1 and back to 0 at the right time) but to
be honest BasicX is probably the wrong platform to do that - you will
need to write a native AVR program.

BTW I would be interested if anyone has such a AVR program and included
some communication protocol such as I2C, SPI or RS232.

Mike

>
> Is it possible to connect the PWM to other pin than 25, 26 or 27?
> For example pin 7 or 18?
>
> Thanks
>
> Ed
>





Thanks a lot for your help!

Ed