Referral to ULPWU/PLVD code per AN879??


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Referral to ULPWU/PLVD code per AN879??

    I imagine that you are only seeing 2 digits of a much larger number that was calculated wrong because either the A/D wasn't set up right or a variable size is wrong.
    Make sure you have these in your program.
    Code:
    temp_word VAR WORD
    VDD       VAR WORD
    
    DEFINE ADC_BITS 10
    ADCON0.7 = 1
    DT

  2. #2
    Join Date
    Jan 2007
    Posts
    39


    Did you find this post helpful? Yes | No

    Default Re: Referral to ULPWU/PLVD code per AN879??

    Wow, super, it's working now. I didn't specified the

    DEFINE ADC_BITS 10
    ADCON0.7 = 1

    Thanks a lot, I really apreciated you quick answer and help!!!

    bob

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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