Jump to content
Sign in to follow this  
TomF

Simulator: 16F636 Ra3 / Ra4 Mixed Up?

Recommended Posts

Hi.

 

Trying to simulate the 16F636, however i cannot write to RA4, I can read RA4.

 

I can read and write RA3, which is the MCLR pin, which is supposed to be read only.

 

So, i think the simulator has RA3 and RA4 mixed up.

 

Can this be fixed quite quickly? I really need to simulate the software this week.

 

Sourceboost 'c' compiler, V7.04

 

- Edit: The sleep appears to not cause the device to sleep, or the WDT is expiring immediately and wakening the device from sleep.

Edited by TomF

Share this post


Link to post
Share on other sites

Trying to simulate the 16F636, however i cannot write to RA4, I can read RA4.

 

I can read and write RA3, which is the MCLR pin, which is supposed to be read only.

 

So, i think the simulator has RA3 and RA4 mixed up.

 

Can this be fixed quite quickly? I really need to simulate the software this week.

 

Sourceboost 'c' compiler, V7.04

 

- Edit: The sleep appears to not cause the device to sleep, or the WDT is expiring immediately and wakening the device from sleep.

The main problem is that the simulation uses a model for this port that is not quite correct:

RA4 operates as open drain like it exist on 16F876A and many other devices, ie it can only operate a current sink not source.

 

Sorry but this won't be fixed quickly.

 

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...