Debugin


Closed Thread
Results 1 to 7 of 7

Thread: Debugin

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    4


    Did you find this post helpful? Yes | No

    Default debuggin

    I don't understand how to set these registers, I have the RA1 pin set as Vref,
    and RA0,RA2,RA3,RA5 as anolog inputs. I am trying to use RA4(an3) as the debugin
    pin. My registers are set as follows:

    cmcon0 = %11110000
    ansel = %10101
    adcon0 = %01001000

    How far off am I? And what do I need to change?

    Thanks

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tbh9365 View Post
    I don't understand how to set these registers, I have the RA1 pin set as Vref, and RA0,RA2,RA3,RA5 as anolog inputs. I am trying to use RA4(an3) as the debugin pin. My registers are set as follows:
    cmcon0 = %11110000
    ansel = %10101
    adcon0 = %01001000
    How far off am I? And what do I need to change?
    Thanks
    And more information that would've been a lot more helpful much earlier in the process...

    You're trying to use RA4/AN3 as a digital input, which means you aren't using it as OSC2 or a Fosc/4 clockout, which means you are most likely using the internal oscillator, which means that it may need to be tweaked a bit to get the baud rate correct (see OSCTUNE)...and do a search on that term.

    Am I about right here?

  3. #3
    Join Date
    Jan 2008
    Posts
    4


    Did you find this post helpful? Yes | No

    Default debugin

    You are correct, I am using the internal Osc. on the Pic 16F684, and a Ceramic Resonator on
    the Pic 16f84A, of 4mhz, And the internal Osc should be 4mhz also on the 684, I will double
    check this. I will also read up on the tuneing and give it a try. Thanks again

Similar Threads

  1. DEBUGIN not working on 12F629
    By fredpret in forum Serial
    Replies: 1
    Last Post: - 22nd September 2007, 12:39
  2. Serin / Serin2 / Debugin Differences
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th January 2006, 07:32
  3. DebugIn problem
    By Mutiaz in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd January 2006, 16:51
  4. Debugin Causesing Restart
    By IceCube in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th September 2004, 02:20
  5. Debugin problem
    By moby in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th September 2004, 16:12

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