Serial randomness!


Closed Thread
Results 1 to 6 of 6

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Alex,

    When you do something like PORTB = 8, it sets all the pins in PORTB.

    Since PORTB.2 is the A/D's Chip Select pin, every time you turn on an LED or Relay, you are also Enabling the A/D converter. Probably getting it confused.

    And that chip can be clocked at up to 1 Mhz.
    6 seconds is an awful long time to read 8 bits.
    <br>
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hey Darrel,

    Thank you loads for your response! I'm currently away from home and so unable to test your theory, but i'm convinced that will be the cause of the issue! I'll keep you updated as to when I can test it and thanks to everyone who helped.

    Cheers,
    Alex

Similar Threads

  1. Replies: 33
    Last Post: - 19th March 2010, 03:02
  2. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  3. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39
  4. interfacing to the pc serial port
    By kelangfei in forum General
    Replies: 4
    Last Post: - 7th October 2007, 22:35
  5. Replies: 2
    Last Post: - 23rd July 2006, 08:16

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