ADC alternative way to capture Data using nbuilt Fix voltage reference - Page 2


Go to last post By: moonshadow
Today 18:06
Forum: Absolute Beginners Section
Starter: moonshadow
Views: 0
Replies: 43
Today 12:57
Forum: Proton Studio
Starter: Puffeltje
Views: 0
Replies: 3
Today 10:13
Forum: Proton Studio
Starter: wirecut
Views: 0
Replies: 0
Today 09:37
Forum: Proton Studio
Starter: Puffeltje
Views: 0
Replies: 0
Today 09:25
Forum: Proton Studio
Starter: Puffeltje
Views: 0
Replies: 0
Yesterday 19:56
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 32
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Member yvesmazzon's Avatar
    Join Date
    Jul 2006
    Posts
    198
    Thumbs Up
    Received: 11
    Given: 29
    Total Downloaded
    9.79 GB

    0 Not allowed!

    Default Re: Using the Internal Fixed Voltage Reference as the +VREF of the ADC on a PIC18F25K

    Less,
    Yes I'm dumm, I have to define " pChannel = 14 " before to get channel AN14. as below:
    pChannel = 14
    pChannel = pChannel << 2 ' Move the channel bits into their correct position
    ADCON0 = pChannel | $01 ' Select the ADC channel and keep the ADC enabled
    ...
    Thank you

    regards,
    Yves

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #12
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,225
    Thumbs Up
    Received: 371
    Given: 131
    Total Downloaded
    1.58 GB

    1 Not allowed!

    Default Re: Using the Internal Fixed Voltage Reference as the +VREF of the ADC on a PIC18F25K

    Remember... pChannel is a parameter to a procedure so you do not change it within the procedure itself, just send the decimal value 14 to the procedure as the channel number. The shifting left of 2 positions places the value in pChannel into the correct position within the ADCON0 SFR for the channels. Then the ORing of $01 enables the ADC peripheral.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #13
    Senior Member barak's Avatar
    Join Date
    Apr 2008
    Posts
    724
    Thumbs Up
    Received: 53
    Given: 11
    Total Downloaded
    1.37 GB

    1 Not allowed!

    Default Re: ADC alternative way to capture Data using nbuilt Fix voltage reference


  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. PIC16F1503 Fixed Voltage Reference
    By AussieBarry in forum Proton Plus Compiler v3
    Replies: 6
    Last Post: 26th February 2018, 13:37
  2. Isolated AC voltage and amperage measurement reference design
    By normnet in forum New devices and techniques
    Replies: 0
    Last Post: 28th July 2015, 00:31
  3. Interrupt during Capture and ADC
    By picprotonguy in forum Proton Plus Compiler v3
    Replies: 8
    Last Post: 4th March 2009, 10:32
  4. Voltage Reference?
    By dolci in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 25th September 2008, 19:08
  5. Reading Negative Voltage with adc
    By Roshan in forum Proton Plus Compiler v3
    Replies: 6
    Last Post: 31st March 2008, 05:40

Members who have read this thread : 148

Actions :  (Set Date)

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