It is interesting. If you build with the old compiler (don't have this one, but
one quite close), it uses the same access maths when using a temporary
variable. I was hoping this would change.
webgiorgio
Joined: 02 Oct 2009 Posts: 123 Location: Denmark
Posted: Wed Nov 10, 2021 8:57 am
CCS support gave me the solution
Quote:
The issue is that version 5.034 is incorrectly setting the SDISEL bit in the APFCON1 register, and that is causing it not to work. This issue was fixed in newer versions of the compiler. You can work around it in your version by creating a variable mapped to the location of the SDISEL bit as follows:
#bit SDISEL = getenv("SFR:APFCON1").3
Then setting SDISEL to 0 at the beginning of main() as follows:
SDISEL = 0;
Ttelmah
Joined: 11 Mar 2010 Posts: 19658
Posted: Wed Nov 10, 2021 11:03 am
That's interesting. PCM's code from 5.034, doesn't seem to have this
bit set.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum