PIC/AVR PWM + RS232 simultaneously?

Are there any sub 10 USD AVR or PIC uC that can do hardware PWM at the same time as hardware RS232 ..? The source of my question is that I suspect that same timer is used both for bitrate generation and for PWM frequency+duty cycle.

Reply to
sky465nm
Loading thread data ...

Plenty of both that will do both...... RS232 is just a few bytes, as is pwm

Reply to
TT_Man

You suspect wrong. RTFM. Bob

** Posted from
formatting link
**
Reply to
Bob

I did google it. And read the datasheet but neither would give a consistent answer.

Reply to
sky465nm

formatting link

I am using this now.

These are less the $10 in ones.

donald

Reply to
donald

The datasheet will only mention resource sharing - they won't bother explicitly writing that the timers and counters for PWM and UART are separate, since that is obvious to anyone who has any knowledge of microcontrollers, or who is able to think a little and use a little common sense.

Where resources are shared (sometimes several timers will share a prescaler, for example), the datasheet will say so.

Perhaps you are mixing up a feature that some microcontrollers have (such as MSP430 devices) that have a "UART mode" for their timers. This is an alternative mode for the timer (other modes include capture modes, and PWM) to make it easier to make a software UART. It is not a full hardware UART - it's just a timer mode.

Reply to
David Brown

The AtMega08 certainly can - it's doing it on my bench, right now. I expect the other AtMegas can too.

Reply to
David R Brooks

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.