Variable PWM PIC18F2431


Results 1 to 8 of 8

Threaded View

  1. #3
    Join Date
    May 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Thank you for your answer sougata Today I have changed to a digital scope, but I dont undestand why the pwm output some times stay freeze, or start doing the work and go to 0 volts the pwm output, other times stay in 5 volts, what can be doing it ?

    I have modified my code using pwm and a/d interrup... each time that PTMR match PTPER, the PWM module go to interrup, in PWM interrupt I start A/D conversion and load the result to Duty cycle register, after I turn off PWM interrupt, I attach here the code, I hope u can check it please and tell me some suggestion, thank you.

    Regards.
    Tom.
    Attached Files Attached Files

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  3. Variable PWM on 2 Channels using software.
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd September 2006, 01:34
  4. pwm to pin using variable
    By wsmrite in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th April 2006, 17:08
  5. Tidying Up PWM Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st February 2005, 00:26

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