Simulator

Status
Not open for further replies.

ibwev

Member
I have written a program in assembly on PIC16F690 that works great in the MPLAB Simulator. However, the program does not do what I expect it to do when I program the pic and assemble the device. Please recommend a simulator that allows me to go line by line in the code and test the device in real time.
 
I would recommend using a PICkit2. It runs in real-time, so as you step through the code, it steps through with the hardware itself. It's extremely useful and quite easy to use. Definitely the best way to do it. Just connect your PK2 to your hardware, select the "PICkit2" as the debug tool under the "debugger" menu, and start stepping through the code.
Good luck!
Der Strom
 
You have to have a adapter to debug a 16f690 with the pickit 2

PIC16F631*, 677*, 685*, 687*, 689*, 690*
- Use AC162061 ICD header & AC164110 adapter.
 
Last edited:
Unless you have a grand to spend on ISIS.... I've used pickit2 to debug most 16's, 18's and some 24's in real time...
 
I would have a look at this page **broken link removed**

It lets you know what you need to debug chips with the pickit2 you need to pick the right chips or you'll end up needing special headers
 

I love the quotes. Thank you so much for the help. I ordered PicKit2 dubugger hardware today. When using the PicKit2 Debugger, is it the same as using the MPLAB Simulator?
 
I love the quotes. Thank you so much for the help. I ordered PicKit2 dubugger hardware today. When using the PicKit2 Debugger, is it the same as using the MPLAB Simulator?

Hehe, thanks

It is similar, and basically set up the same way. Just have to change one or two settings and you need the real hardware, but it works great. Definitely worth it!
 
Last edited:
It will not debug a 16f690 with out a special header. If you want to debug I would order some 16f88 there debug able with out a header and so are the 18f chips
 
Burt!!! What special header? I have the pic16f690 dev kit (came with pickit2) and its the same header as all the rest!
 
It will not debug a 16f690 with out a special header. If you want to debug I would order some 16f88 there debug able with out a header and so are the 18f chips

Oh I'm sorry--I forgot about that. I suggest you do that (order a 16f88).
Thanks Burt
 
By the way, what version of MPLAB do you have?

It is not the PICkit2 that needs the adapter--it works fine with the 16F690. It is MPLAB that actually requires the adapter, I believe.
 
You can't debug a 16f690 with a pickit2 with out this
PIC16F631*, 677*, 685*, 687*, 689*, 690*
- Use AC162061 ICD header & AC164110 adapter.

**broken link removed**
 
I was looking at **broken link removed**.

It says

PICkit 2 Programmer Application v2.61
Device Programming Support
Midrange Devices
‘LF’ versions of all devices are also supported
PIC16F688, 689, 690

But under the MPLAB side it says

MPLAB IDE v8.66
Device Programming and Debugging Support
Midrange – Programming & Debugging
‘LF’ versions of all devices are also supported
PIC16F631*, 677*, 685*, 687*, 689*, 690*
- Use AC162061 ICD header & AC164110 adapter.

Maybe I'm reading this wrong?
 
If you open mplab and use select device it will tell you if you need a header or not.
I have checked and it tell you that you require a ICE/ICD AC162061 header.
 
Well!! smack me sideways..... Thanks Burt, I use ISIS for debugging so I never noticed... Pixman you are quite correct, I does tell you...
 
Yep It tells you you can program the chip
PICkit 2 Programmer Application v2.61
Device Programming Support
Midrange Devices
‘LF’ versions of all devices are also supported
PIC16F688, 689, 690

But this is what you have to have to debug in MPLAB you can't debug with the pickit software ide you use MPLAB and pick your debugger

MPLAB IDE v8.66
Device Programming and Debugging Support
Midrange – Programming & Debugging
‘LF’ versions of all devices are also supported
PIC16F631*, 677*, 685*, 687*, 689*, 690*
- Use AC162061 ICD header & AC164110 adapter.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…