TomF 0 Posted November 30, 2011 Report Share Posted November 30, 2011 (edited) 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 November 30, 2011 by TomF Quote Link to post Share on other sites
Dave 0 Posted December 3, 2011 Report Share Posted December 3, 2011 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 Quote Link to post Share on other sites
Recommended Posts
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.