Hello!
Is it the case that pic12f15313 and pic12f18313 are not included in the database? I wanted to compile my program, but Error: No chip data file found for 12F18313 :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have another question also , it has been discussed, but the answer is not clear to me. https://sourceforge.net/p/gcbasic/discussion/579126/thread/db74453b/
I am programming the chip 12f675 and suddenly a message appears for the pickit 3 programmer: OSCAL: Invalid value 3FFF.
I didn't know what to do, I took the other chip. But now twice in two days this problem. 2 chips became unusable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The quick fix, when using a PK3 programmer, is to set the OSCCAL value using the PK3 GUI. I cannot remember the range but the GUI will help you.
The value sets the OSCILLATOR caliberation. It was one of the bad things that Microchip have done... any failure of the chip programming ( as an end to end process ) can mean the OSCCAL value 8s not restored.
A PK2 programmer can automatically recalc this value. A PK3 cannot recall the value.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I ADD these 2 lines of ASM in any 12F675 running on INTOSC
;at the Start of program.
;----------------------------
CALL 0x3ff
movwf osccal
;----------------------------
Cheers,
Geoff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
;ProgramcompiledbyGreatCowBASIC(1.00.002023-05-31(Windows64bit):Build1249)forMicrochipMPASM/MPLAB-XAssemblerusingFreeBASIC1.07.1/2023-06-18CRC29;Needhelp?;SeetheGCBASICforumsathttp://sourceforge.net/projects/gcbasic/forums,;CheckthedocumentationandHelpathttp://gcbasic.sourceforge.net/help/,;or,emailus:;w_cholmondeleyatusersdotsourceforgedotnet;evanvennnatusersdotsourceforgedotnet;********************************************************************************;Setuptheassembleroptions(Chiptype,clocksource,otherbitsandpieces)LISTp=12F675,r=DEC#include <P12F675.inc>__CONFIG_CPD_OFF&_CP_OFF&_MCLRE_OFF&_WDTE_OFF&_INTRC_OSC_NOCLKOUT....;********************************************************************************;Source:system.h(173)INITSYS;ThisloadsthesavedcalibrationdatafromthelastflashmemorylocationatPORoranytimethechipisreset.;CALL0x3ffcall1023;movwfosccalbankselOSCCALmovwfOSCCAL;asmshowdebugThiscodeblocksetstheinternaloscillatortoChipMHz;asmshowdebug_Complete_the_chip_setup_of_BSR,ADCs,ANSEL_and_other_key_setup_registers_or_register_bits;EnsureallportsaresetfordigitalI/Oand,turnoffA/D;SETADFMOFFbankselADCON0bcfADCON0,ADFM;SwitchoffA/DVar(ADCON0);SETADCON0.ADONOFFbcfADCON0,ADON;ANSEL=0bankselANSELclrfANSEL;Turnoffcomparator-thisisthedefaultsetting;CMCON=7movlw7bankselCMCONmovwfCMCON;;'Turn off all ports;GPIO=0clrfGPIOreturn;********************************************************************************END
INITSYS#
;This loads the saved calibration data from the last flash memory location at POR or any time the chip is reset.
;CALL 0x3ff
call 1023
;movwf osccal
banksel OSCCAL
movwf OSCCAL
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To all reading this in the future. An OSCAL error when programming is repairable. I post a detailed method using a PK2 and a PK3 programmer. See my YouTube channel.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
Is it the case that pic12f15313 and pic12f18313 are not included in the database? I wanted to compile my program, but Error: No chip data file found for 12F18313 :(
They are 16F parts. If you change to 16fxxxxx then all should be OK.
Thanks Anobium , when configuring the chip should be written #chip 16f15313 and that's it?
Yes. Nice andeasy.
I have another question also , it has been discussed, but the answer is not clear to me.
https://sourceforge.net/p/gcbasic/discussion/579126/thread/db74453b/
I am programming the chip 12f675 and suddenly a message appears for the pickit 3 programmer: OSCAL: Invalid value 3FFF.
I didn't know what to do, I took the other chip. But now twice in two days this problem. 2 chips became unusable.
The quick fix, when using a PK3 programmer, is to set the OSCCAL value using the PK3 GUI. I cannot remember the range but the GUI will help you.
The value sets the OSCILLATOR caliberation. It was one of the bad things that Microchip have done... any failure of the chip programming ( as an end to end process ) can mean the OSCCAL value 8s not restored.
A PK2 programmer can automatically recalc this value. A PK3 cannot recall the value.
Hi,
I ADD these 2 lines of ASM in any 12F675 running on INTOSC
;at the Start of program.
;----------------------------
CALL 0x3ff
movwf osccal
;----------------------------
Cheers,
Geoff
The compiler does this for you. Any chip that requires the call has it added automatically.
Just checked... it does add autoimatically.
INITSYS#
;This loads the saved calibration data from the last flash memory location at POR or any time the chip is reset.
;CALL 0x3ff
call 1023
;movwf osccal
banksel OSCCAL
movwf OSCCAL
Thans. I didn't get to revive those 2 chips. thrown out.
Sorry to hear that.
To all reading this in the future. An OSCAL error when programming is repairable. I post a detailed method using a PK2 and a PK3 programmer. See my YouTube channel.