1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

PIC/AVR PWM + RS232 simultaneously?

Discussion in 'Embedded' started by sky465nm@trline4.org, Aug 6, 2008.

  1. Guest

    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.
    , Aug 6, 2008
    #1
    1. Advertising

  2. TT_Man Guest

    <> wrote in message news:g7d5hq$gjp$...
    > 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.
    >

    Plenty of both that will do both...... RS232 is just a few bytes, as is pwm
    TT_Man, Aug 6, 2008
    #2
    1. Advertising

  3. Guest

    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.
    , Aug 7, 2008
    #3
  4. David Brown Guest

    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.
    David Brown, Aug 7, 2008
    #4
  5. 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.
    >

    The AtMega08 certainly can - it's doing it on my bench, right now.
    I expect the other AtMegas can too.
    David R Brooks, Aug 7, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vic

    PIC 18Fxx2 PWM output

    Vic, Aug 27, 2003, in forum: Embedded
    Replies:
    4
    Views:
    501
  2. iceman

    pwm on pic microcontroller

    iceman, Nov 6, 2004, in forum: Embedded
    Replies:
    7
    Views:
    5,067
    Byron A Jeff
    Nov 11, 2004
  3. Deep Reset

    Newbie PWM problem with PIC 16F627

    Deep Reset, Jan 3, 2005, in forum: Embedded
    Replies:
    2
    Views:
    1,541
    Deep Reset
    Jan 6, 2005
  4. BrunoG

    PIC PWM registers

    BrunoG, May 4, 2006, in forum: Embedded
    Replies:
    12
    Views:
    587
    BrunoG
    May 5, 2006
  5. Vicente

    PIC controller for a motor (PWM)

    Vicente, Oct 10, 2007, in forum: Embedded
    Replies:
    8
    Views:
    1,060
Loading...

Share This Page