A/D conversion problem with 18F2455


Results 1 to 14 of 14

Threaded View

  1. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by abdy37 View Post
    I am applying a sinusoidal signal with the offset voltage of 2,5 volts and an amplitude of 5 volts to PORTA.0
    1st problem - A/D inputs on a PIC don't work with negative voltages. See Post #4.

    Its frequency is 1khz. So, it varies between (0~5) volts. I want a digital output coming from PORTA.1
    Do you mean you want to output, on A.1, a serial output representation of the analog input on A.0?

    But however, so far I get 5V(DC) from PORTA.1
    That's good because I don't see anything in your program that says to change the output on PortA.1 other than it's initial setup.

    By the way, I use 10 bit ADC and the converted digital values I want to get serially every time when the conversion is over.
    And again, I don't see any serial output commands.

    I used ADCIN 0,W0 which reads the values from PORTA.0 and writes to W0. After that, if you look at the code you can see that I am trying to get those values with delay(PAUSEUS).
    And again, how do you plan to see this output? Serial output? LCD? There aren't any in the program.

    I am using 18F2455 and could not find much relating A/D Conversion with it.
    You're kidding me right? Section 21 of the 18F2455 has no information in it that you can use?

    I need working ADC.
    You've got a working ADC, what you need to do is to get it to work FOR you. I think what you need to do is play around with the PIC and PBP first. Get an LCD working, get a pushbutton or something working with it...then, hook up a POT across an A/D input pin, then display the value of the POT, doesn't have to be resistance, doesn't have to be voltage, doesn't have to be anything in particular, just display a number that corresponds with the position of the POT as you turn it. Then when you get that working, you can easily work on reading a sine wave.

    And besides, even though the A/D on a '2455 is rated for 100ksps and the PIC can run at 48Mhz, you won't be able to get any useful DSP out it. Not enough horsepower under the hood.
    Last edited by skimask; - 6th May 2007 at 19:03.

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  2. A/D conversion problem in 18F2520, 2523, 2550 etc.
    By selimkara in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th March 2008, 16:26
  3. A/D conversion problem on 18F4431
    By ttease in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2007, 23:03
  4. A/D conversion problem with pic16F88
    By Tapio Linkosalo in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 18th August 2006, 11:42
  5. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 18:57

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