DEBUG on 18F4620


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    sinoteq's Avatar
    sinoteq Guest


    Did you find this post helpful? Yes | No

    Default yes, but....

    Maybe we should talk to Microchip and ask them to make a PIC with NO internal hardware except A/D converter. Then they could spend all money on codespace

    When selecting a PIC, functions, performance and price has to be matched. This DEBUG project became a bit big for a 16F877A and I only pay 2.5 USD more for the 18F4620 so why not?? As for using DEBUG in the new PIC, the idea was to reuse the old program without changing too much. Functions in PBP, as I see it, are here for the user to use, if you want small and fast write ASM.

    The only change I had to do was some ADC settings and change in the MPLAB file, I am happy, my product is happy and the only thing to remember is to change the MPLAB file everytime I upgrade. This is also true for all the changes you have to do if you want the CONFIG settings to be included in you program but that is an other story. Maybe we really should talk to Microchip about some things.

    mike

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


    Did you find this post helpful? Yes | No

    Default

    It just might be a good idea for somebody to talk to microchip about this one.

    The DEBUG in the .inc file, does not point to the DEBUG config bit as one might expect. That bit is defined as ...
    <pre>_DEBUG_ON_4L EQU H'7F' ; Enabled<br>_DEBUG_OFF_4L EQU H'FF' ; Disabled</pre>
    Instead, it points to register FD4h.
    <pre>DEBUG EQU H'0FD4'</pre>In the datasheets, FD4h is shown as ... 2: Unimplemented registers are read as ‘0’.

    If it's an unimplemented register, why define it in the .inc file.

    My guess is that it is used by the "ICD2 executive" program when in debug mode. And, I'm also guessing that the DEBUG equate, is in there by mistake, because the ...

    P18F2525.INC
    P18F25K20.INC
    P18F2620.INC
    P18F4525.INC
    P18F45K20.INC
    P18F4620.INC

    files, all have the same problem. These chips all have the same basic Core, so the .inc files were probably just copies of each other, with small changes for each chip. Propagating the error along with it.

    Perhaps if they knew about it. You might not have to make the changes after the next Upgrade.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    BUT as it cause a problem to a third party software and not in their own... i guess they'll never do any change.

    I don't have access to my ICD-2 here, but it would be interesting if someone can perform an ICD test and use DEBUG just to see how it goes on this PIC by commenting the DEBUG equate, and on ather PIC #... in the 18F serie wich the DEBUG_ON DEBUG_OFF fuses.
    Last edited by mister_e; - 26th May 2006 at 04:11.
    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

    Also interesting, would be to disassemble the ICD2 Executive and see how many of those other Un-Implemented registers actually do something too.

    DT

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


    Did you find this post helpful? Yes | No

    Default

    Just installed MPLAB 7.40 today... problem is still there. Have'nt access to my ICD-2 again.
    Steve

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

Similar Threads

  1. N-Bit_MATH
    By Darrel Taylor in forum Code Examples
    Replies: 38
    Last Post: - 16th December 2010, 15:48
  2. About USB
    By dias11 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd December 2009, 21:41
  3. debug not working with MPASM assempler
    By santamaria in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2009, 08:51
  4. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 03:46
  5. DEBUG problem with 18F4620
    By BrianT in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th November 2007, 06:36

Members who have read this thread : 1

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