cause of error discovery!.

Post your requests and ideas on the future development of mikroC.
Post Reply
Author
Message
fabim
Posts: 197
Joined: 18 Jan 2007 15:49

cause of error discovery!.

#1 Post by fabim » 23 Mar 2009 20:40

eeprom_write(x,x); mikroC, liby.

i lost 5 days looking for the error in my source, to give the Assembly.




L_EEprom_write_0:
BCF STATUS, RP1
BSF STATUS, RP0
BTFSS EECON1, 1
GOTO L_EEprom_write_1
NOP
GOTO L_EEprom_write_0
L_EEprom_write_1:
BCF STATUS, RP0
MOVF FARG_EEprom_write+0, 0
BSF STATUS, RP0
MOVWF EEADR
BCF STATUS, RP0
MOVF FARG_EEprom_write+1, 0
BSF STATUS, RP0
MOVWF EEDATA
BCF EECON1, 7
BSF EECON1, 2
BCF INTCON, 7
MOVLW 85
MOVWF EECON2
MOVLW 170
MOVWF EECON2
BSF EECON1, 1
BSF INTCON, 7//AFFF !!!! for this? sh%T
BCF EECON1, 2
RETURN

because Jesus Christ loved, you need enable the intcon.gie ,on exit?
OK, i created another in several second´s,but, has a lot of people suffering, and don't know why this.

Post Reply

Return to “mikroC Wish List”