HPWM and pic16f88


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default HPWM and pic16f88

    Hello,

    I am using the pic16f88 and I am trying to get 10.5khz with 80% duty cycle.
    I am not getting anything decent from my program:

    INCLUDE "modedefs.bas" 'Includes supoprt for PicBasic language
    @ DEVICE pic16F88, HS_OSC , CCPMX_ON
    DEFINE OSC 20 'use external 20mhz crystal
    PAUSE 100 ' start-up delay
    TRISB=0
    DEFINE CCP1_REG PORTB
    DEFINE CCP1_BIT 3
    HPWM 1,190,10500
    HERE: GOTO HERE

    I used a a program from another thread, but it had internal oscillation, which is not fast enough. somebody know why I am not getting any output?

    thanks

    K

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    I am using the pic16f88 and I am trying to get 10.5khz with 80% duty cycle.
    I am not getting anything decent from my program:
    Well, what ARE you getting out of the PIC?

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    HUmm, well I got up this morning, tested the circuit again, and guess what? its working fine...

    K

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lerameur View Post
    HUmm, well I got up this morning, tested the circuit again, and guess what? its working fine...

    K
    Hey...ain't that the best fix...let it fix itself!
    Must've let the old electrons flush themselves out with some faster moving ones...

Similar Threads

  1. adcin and HPWM
    By lerameur in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 20th September 2008, 16:49
  2. HPWM Confusion in spec sheet
    By lerameur in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th September 2008, 00:48
  3. PWM on PIC16F88
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 36
    Last Post: - 19th November 2007, 08:31
  4. PIC18F2431 Running Super SLow!!
    By Philip Biebach in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th July 2006, 12:03
  5. Pic16f88
    By Maurice in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th November 2005, 21:46

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