wrote:
> Bob <> wrote:
>> wrote:
>>> 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.
>
>> You suspect wrong. RTFM.
>
> I did google it. And read the datasheet but neither would give a consistent
> answer.
>
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.