16F684 adcin and hpwm


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    41


    Did you find this post helpful? Yes | No

    Default

    word filled by 10bit, result divided by 256?
    Would it make more sense to sample 8 bits? Without dividing by 256 one full turn of the pot repeats 0-100% duty cycle many times. I admit being new to the world of programming and working with the internals of microprocessors.

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


    Did you find this post helpful? Yes | No

    Default

    Well yes and no. Yes if you're using HPWM, no if you set the CCP register yourself as in the ASM code.

    One thing is sure, 10 bits/256, will not give you a 8 bit results... if you divide it by 4... yes.
    Steve

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

Similar Threads

  1. ADCIN > HPWM but with min/max limits - i failed maths
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 29th November 2009, 03:02
  2. Portc.3 latching?
    By Bronurstomp in forum mel PIC BASIC
    Replies: 4
    Last Post: - 10th November 2008, 18:47
  3. adcin and HPWM
    By lerameur in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 20th September 2008, 17:49
  4. PIC16F819 HPWM CCP1 clariffication
    By earltyso in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th March 2008, 19:43
  5. HPWM Problem
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th September 2004, 11:40

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