Are my eyes deceiving me or are general interrupts disabled for a strcpy? What am I missing here or why?
Using 18F242, PCH 3.212
Easiest way to confirm is compile EX_STR.C
Paul
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu Mar 10, 2005 1:51 pm
I don't have that version, but I tried it with PCH 3.188 and it does
turn off the GIE bit during strcpy(). Some of the older errata documents
for the 18Fxx2 said you should disable peripheral interrupts during
table write operations, but there are no table writes in strcpy.
It could be just a mistake that got left in the code. You should email
CCS support and let them know about it. Tell them how to duplicate
the problem and show them a section of the .LST file with the bad code
marked. Also tell them your compiler version.
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