4 Low Speed PWM & HSERIN


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default 4 Low Speed PWM & HSERIN

    I need to send and receive commands using the HSERIN commands as well as control 4 different pwms at 200Hz. I've seen the code on pbpgroup.com and wondered how the resources allocated by this code affect the use of HSERIN commands?

    Is there a better way to complete this project? Multiple PICS utilizing a single hardware pwm module?

    MasterSparky

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    If you need 8 bits of resolution, your PWM clock needs to be 256 X 200Hz = 51,200Hz. That is pretty fast for software.

    I would choose a PIC that has 4 or 5 channels of PWM (18F8722 for example). With that part, you can "set and forget" the PWM registers. Everything would happen in the background, and there would be no issues or conflicts with HSERIN.
    Charles Linquist

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Charles,

    Thanks. I have considered this, but hate to use a part with 70 I/O just for 4 pwms. Was hoping there was a more elegant cost effective solution.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Which article do you refer to? The original or the new one bellow
    http://darreltaylor.com/DT_INTS-14/SPWM.html

    You may try with a lower frequency and see what happen
    Last edited by mister_e; - 8th October 2007 at 18:32.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hadn't seen this newer version. Looks like he's made some improvements. I read a post 'somewhere' that there is an issue when utilizing the hardware serial uart. Any experience with this?

    My problem is I'm designing my architecture around whether this will work. Perhaps getting an eval kit would alleviate this issue. That way I can hook it up to the pc and send down serial commands to adjust the pwms.

    The real question is whether or not there is any resource conflicts using this code with the hserin commands?

    Thanks for all the help, gents

Similar Threads

  1. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Problems with RC2 and RC3
    By Christopher4187 in forum General
    Replies: 11
    Last Post: - 29th May 2006, 17:19
  5. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 03:14

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts