• AVR Freaks

Hot!PIC16F18313 DEBUGGING

Author
JOHN OAKLEY
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2013/06/09 16:43:44
  • Location: 0
  • Status: offline
2019/09/24 17:40:01 (permalink)
0

PIC16F18313 DEBUGGING

Hi Group
does anyone know of a debug header available for the PICF18313 8 pin ic for use on the ICD3?
I have one for the PIC12F675 but this appears to be updated with the PIC18313 to which i can find no header. Notes on the website state you need a header to debug but dont say if one is available.
 
Any advice
Thanks
John

 

#1

5 Replies Related Threads

    ric
    Super Member
    • Total Posts : 24244
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC16F18313 DEBUGGING 2019/09/24 18:02:27 (permalink)
    +1 (1)
    Well you can debug the device directly, but plainly you will lose the use of RA0 and RA1 if you do.
    I guess you could use a PIC16F18323 for debugging, and use two of the RC# pins for that. With PPS, it would be fairly easy to move most functions to those pins during debugging.
     
    Which web page mentioned a debug header for the PIC16F18313?

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    NKurzman
    A Guy on the Net
    • Total Posts : 17934
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: PIC16F18313 DEBUGGING 2019/09/24 18:03:32 (permalink)
    0
    The Data sheet says it support Debugging.  But you lose 3 pins.
    #3
    Howard Long
    Super Member
    • Total Posts : 721
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: offline
    Re: PIC16F18313 DEBUGGING 2019/09/25 00:50:11 (permalink)
    0
    ric
    Well you can debug the device directly, but plainly you will lose the use of RA0 and RA1 if you do.
    I guess you could use a PIC16F18323 for debugging, and use two of the RC# pins for that. With PPS, it would be fairly easy to move most functions to those pins during debugging.
     
    Which web page mentioned a debug header for the PIC16F18313?




    I agree, using a device with more pins is the way I do it. I am not aware of a debug header for any fairly recent PICs. Note that no debug headers are yet supported by the newer debuggers (PICkit4, ICD4) anyway.
     
    I recommend using a debugger that supports software breakpoints for these PIC16F183xx devices as they only have one hardware breakpoint.
     
    I get the feeling we won't be seeing any new debug headers released any time soon, there hasn't been a new one for at least four years.
    #4
    JOHN OAKLEY
    New Member
    • Total Posts : 6
    • Reward points : 0
    • Joined: 2013/06/09 16:43:44
    • Location: 0
    • Status: offline
    Re: PIC16F18313 DEBUGGING 2019/09/25 01:05:11 (permalink)
    0
    Hi ric
    It had crossed my mind to use the larger pin count then just transfer the code across. Its a basic project which only needs 3 pins so I may try your suggestion.
    The web page is attached but on second look I think it was referring to the pic12f675 header but looked initially like I read it the other way round. Ive attached the page image url. Ill experiment with this and find the best solution.
     
    [link=https://www.microchip.com/sitesearch/search/All/PIC16F18313]https://www.microchip.com...search/All/PIC16F18313[/link]
     
    Many thanks.
    #5
    du00000001
    Just Some Member
    • Total Posts : 3173
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: offline
    Re: PIC16F18313 DEBUGGING 2019/09/25 01:13:38 (permalink)
    0
    IIRC, the debug headers were hardly more than a bigger derivative of the same family as the derivative to be debugged - adding the debug support and a number of pins. Now that all new devices come with debug support and derivatives with more pins, the need for debug headers no longer exists.

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5