SEROUT2 fails on newer 18F2610


Results 1 to 15 of 15

Threaded View

  1. #12
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Apparantly even with A/D disabled it's still causing problems when you have AN2 & AN3
    setup as Vref- & Vref+. Clearing ADCON1 bits 4 & 5 sets Vref to Vss & Vdd, and not these
    pins.

    The problem you describe sounds like read-modify-write, which is more of a problem when
    an output has external capacitance on it. By having ADCON1.4 = 1, AN3 is connected to
    an internal circuit for Vref+. This most likely is adding enough capacitance to cause the
    read-modify-write issue.

    What happens is when you set RA3, it does not change fast enough before you are setting
    RA5, so RA3 is read back in, then writen again on the write to RA5 causing a 0 to be writen
    back to RA3.

    This would also explain why it works when you reverse the order. I.E. RA5=1 then RA3=1.
    It works because the extra capacitance is not present on RA5.
    Last edited by Bruce; - 6th March 2008 at 00:27. Reason: P.S.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Serout and 18F87J50
    By Glenn_Webber in forum Serial
    Replies: 8
    Last Post: - 20th November 2009, 14:26
  2. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 02:38
  4. Serial communication fails after long pause
    By brid0030 in forum General
    Replies: 4
    Last Post: - 13th February 2008, 18:56
  5. Gps with 16f628
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th June 2006, 03:38

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