CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

12F675 eeprom problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ianlee
Guest







12F675 eeprom problem
PostPosted: Thu Apr 24, 2003 2:48 am     Reply with quote

Hi~, I have a som problem about internal eeprom.
in using pic12F675.
CCS-C (PCM) Version is : 3.094

sample code :

#include <12f675.h>

void main(void)
{
write_eeprom(10, 15);
}
___________________________
This message was ported from CCS's old forum
Original Post ID: 13961
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: 12F675 eeprom problem
PostPosted: Thu Apr 24, 2003 11:47 am     Reply with quote

:=Hi~, I have a som problem about internal eeprom.
:=in using pic12F675.
:=CCS-C (PCM) Version is : 3.094
:=
:=sample code :
:=
:=#include <12f675.h>
:=
:=void main(void)
:={
:= write_eeprom(10, 15);
:=}
:=
---------------------------------------------------------
Here is the code produced by PCM vs. 3.148. I notice that
there are many differences between this code, and the code made
with vs. 3.094.

I don't have time to do any more work on this problem right now.

<PRE>
0000 00212 .................... void main(void)
0000 00213 .................... {
0004 0184 00214 CLRF 04
0005 301F 00215 MOVLW 1F
0006 0583 00216 ANDWF 03,F
0007 1683 00217 BSF 03.5
0008 081F 00218 MOVF 1F,W
0009 39F0 00219 ANDLW F0
000A 3807 00220 IORLW 07
000B 009F 00221 MOVWF 1F
000C 3007 00222 MOVLW 07
000D 1283 00223 BCF 03.5
000E 009F 00224 MOVWF 1F
0000 00225 .................... write_eeprom(10, 15); <BR>
000F 300A 00226 MOVLW 0A
0010 1683 00227 BSF 03.5
0011 009B 00228 MOVWF 1B
0012 300F 00229 MOVLW 0F
0013 009A 00230 MOVWF 1A
0014 151C 00231 BSF 1C.2
0015 1283 00232 BCF 03.5
0016 080B 00233 MOVF 0B,W
0017 00A0 00234 MOVWF 20
0018 138B 00235 BCF 0B.7
0019 1683 00236 BSF 03.5
001A 3055 00237 MOVLW 55
001B 009D 00238 MOVWF 1D
001C 30AA 00239 MOVLW AA
001D 009D 00240 MOVWF 1D
001E 149C 00241 BSF 1C.1
001F 1283 00242 BCF 03.5
0020 1683 00243 BSF 03.5
0021 1C9C 00244 BTFSS 1C.1
0022 2825 00245 GOTO 025
0023 1283 00246 BCF 03.5
0024 2820 00247 GOTO 020
0025 111C 00248 BCF 1C.2
0026 1283 00249 BCF 03.5
0027 0820 00250 MOVF 20,W
0028 048B 00251 IORWF 0B,F
</PRE>
___________________________
This message was ported from CCS's old forum
Original Post ID: 13979
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group