Jump to content
Sign in to follow this  
andydavy

Debugging/simulation

Recommended Posts

IDE version: SourceBoost IDE version 5.6.1

Compiler: BoostC

Compiler version: 5.6.1e

Target device: PIC16F676

OS: WinXP

 

 

While debugging the interrupt on change bit does not get set, although I see the port a. ra0 status bit change. I have verified that I have configured the device correctly as it all works within MPLAB IDE simulator without any problems.

 

Can you verify that this occurs. If you require any source code then let me know.

 

Andy

Share this post


Link to post
Share on other sites

AndyDavy,

 

While debugging the interrupt on change bit does not get set, although I see the port a. ra0 status bit change. I have verified that I have configured the device correctly as it all works within MPLAB IDE simulator without any problems.

 

Yes this won't work.

Its not a bug but a current limitation of the simulator <_<

 

 

Regards

Dave

Share this post


Link to post
Share on other sites

Dave,

 

Thanks for clearing that up I though I was going mad, but when can we expect it to be added.

Also, is there a function list for the debugger that indicates what is supported and what is not. This would save me alot of time trying to work out why something doesn't work.

 

Also, on the point of functionality does the ADC work on AN0 (RA0) for the 16F676.

I notice a mention in the manual that the ADC had to be on port A and similar to 16F877 and compatible types, so is the 16F676 compatible?

 

Andy

Share this post


Link to post
Share on other sites

AndyDavy,

 

Q) How to know if the ADC is supported.

A) locate the config folder that contains the .tdf's (target descriptor files).

 

Have a look inside the file.

If you find: "Configure ADC10Bit" in the file, then it has a 10Bit ADC compatible with the PIC16F877.

 

Sadly the PIC16F676 ADC is different <_<

 

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...