PIC16F876A IDC Run time interrupt


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Are you using a MAX232 between the USART and the PC.

    Or, are you trying to use the melabs U2 to debug. (won't work)

    Also, 99% of your program is disabled. Remove the DISABLE DEBUG.
    <br>
    DT

  2. #2
    Join Date
    Apr 2007
    Posts
    9


    Did you find this post helpful? Yes | No

    Default No

    I am not using the MAX 232...
    I take it is a must!?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by clem View Post
    I am not using the MAX 232...
    I take it is a must!?
    Yes Indeed, look the Help file... under the Hardware requirement. You'll discover something interesting

    tutorial
    http://www.rentron.com/PicBasic/MCS_X3.htm

    schematic
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by clem View Post
    I am not using the MAX 232...
    I take it is a must!?
    Yes, it's a MUST.

    Microcode Studio's ICD communicates with the PIC via the RS232 port, and uses the USART on the PIC.
    There's no other way to do it.
    <br>
    DT

  5. #5
    Join Date
    Apr 2007
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Thanks

    Thank you guys so much this is a huge help!!!!!!

    Jim-

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


    Did you find this post helpful? Yes | No

    Talking

    You're welcome, good luck!
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default Add

    And i think it's not the whole thing as well... some variable declaration are missing... AND...
    Code:
    ADCON1 = 0011 'Declare A ports 0 & 1 as Analog to dig converters
    unless there's a copy/paste error here, it may screw few things... No i didn't open TFM to know how much ADCON=11 is different of ADCON1=%0011
    Steve

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

Similar Threads

  1. Interrupt RPM and Taylors Elapsed time on 18F4620
    By Tobias in forum mel PIC BASIC Pro
    Replies: 70
    Last Post: - 3rd February 2010, 16:12
  2. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  3. Interrupt cycle time limitation?
    By jswayze in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th March 2005, 07:11
  4. Interrupt and Time Out
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th March 2005, 01:10
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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