Help! - Very strange results with ShiftIn/ShiftOut


Results 1 to 4 of 4

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    what about if you disable your a/d at the begining of your program HIGH ADcs ... don't forget all pins are supposed to be low at the begining so your adc consider that he is enable.

    BUT chances are that you don't set the TRIS for your adc, in this case, the ADcs pin is set as an input and floating. It this case, it can give enough highlevel signal to disable your ADC... this why your PAUSE 4 is handy in your case.

    I'm really not sure if it's a good practice to use bit shift in a SHIFTOUT statement.

    AND some a/d may need few mSec pause between SHIFTOUT and SHIFTIN... let the time to convert properly. Pause 10 can be good... see your a/d datasheet for that issue.
    Last edited by mister_e; - 22nd February 2005 at 06:25.
    Steve

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

Similar Threads

  1. RC - connection using RCTime produces strange results
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th February 2007, 16:16
  2. Searches
    By bearpawz in forum Forum Requests
    Replies: 11
    Last Post: - 7th November 2005, 18:47
  3. Strange Results in Math
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 31st August 2005, 07:09
  4. First test program, but strange results
    By bartman in forum General
    Replies: 12
    Last Post: - 19th November 2004, 03:14
  5. I'm getting strange Results using POT or RCTIME on PortB (or GPIO Port)
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 20:01

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