pwm no workee


Closed Thread
Results 1 to 4 of 4

Thread: pwm no workee

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: pwm no workee

    Lower case defines?

    Robert

  2. #2
    Join Date
    Jun 2011
    Location
    Indian Harbour Nova Scotia
    Posts
    108


    Did you find this post helpful? Yes | No

    Default Re: pwm no workee

    My PBP3.0 client (MicroCode Studio) automatically turns the defines into lower case.

    In any case (no pun intended), I have a number of other defines used for A/D conversion and LCD prep that work fine.

    Since I posted the code above, I changed "duty" and "Freq" from Var to Con (constant), not that it made any difference.

    I'm pulling the chip and will see if it's a hardware problem. I could also check if RB0 works instead of RB3, because I cannot see where there's a problem in software.

  3. #3
    Join Date
    Jun 2011
    Location
    Indian Harbour Nova Scotia
    Posts
    108


    Did you find this post helpful? Yes | No

    Default Re: pwm no workee

    Believe it or not, I replaced the chip and now the pwm is working. (see attached screenshot of scope trace). Yet, all the other sections were working fine, A/D conversion, LCD display, interrupts and timer.
    Name:  Screenshot - 04_06_2013 , 10_38_05 AM.jpg
Views: 293
Size:  67.2 KB

    Now, I will go back and make it not work to see what codes I don't need and/or do need.

    I was going to say that I "wasted" a lot of time trying to make the software work, but in a way I didn't waste anything because I was forced to read the data sheet with a little more care, and investigate other programs for solutions.

Similar Threads

  1. Replies: 1
    Last Post: - 4th March 2013, 22:57
  2. Pwm
    By xobx in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th February 2008, 07:33
  3. pwm
    By Md.Shah in forum mel PIC BASIC
    Replies: 1
    Last Post: - 4th October 2006, 06:07
  4. Pwm
    By Armando Herjim in forum General
    Replies: 2
    Last Post: - 10th September 2006, 10:05
  5. pwm
    By sawyer in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th July 2006, 05:12

Members who have read this thread : 0

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