返回列表 发帖

PIC12F629(675)

Xgecu-48 programmer, I found 2 errors. The first - PIC12F629(675) has a memory size of 0000h-03FFh = total 0x400. But the programmer says that the total memory is 0x3FF and my compiler cannot write to cell 0x3FF The second - I can not erase the PIC12F629(675)  with the installed FUSE - СPD and -CP set in the configuration word. Can I get the corrected software?

T48.png (73.85 KB)

T48.png

You are wrong. Cell osccal = 0X90h
I have been programming PIC12f629 for a long time.
//---------------------------------------------------------------
CCS PCM C Compiler, Version 4.130, 5967               02-ÿíâ-23 15:02

               Filename: D:\PIC_Proj\Level\main.lst

               ROM used: 437 words (43%)
                         Largest free fragment is 587
               RAM used: 17 (27%) at main() level
                         27 (42%) worst case
               Stack:    3 locations

*
0000:  MOVLW  01
0001:  MOVWF  0A
0002:  GOTO   004
0003:  NOP
0004:  CALL   3FF  // <--------------------------- jump to 0x3ff
0005:  BSF    03.5 //<-----------set Bank 1
0006:  MOVWF  10 //<-------------- mov to osccall (0x90h) W
0007:  MOVLW  00
0008:  MOVWF  0A
0009:  GOTO   18D
.................... #include <main.h>
.................... #include <12F629.h>

Configuration Fuses:
   Word  1: 3FD4   INTRC_IO NOWDT NOPUT NOMCLR BROWNOUT NOPROTECT NOCPD

ROM data:
0003FF: 343B // <----------- RETLW 3B

memory_map.png (174.4 KB)

memory_map.png

osccal.png (154.17 KB)

osccal.png

TOP

TOP

回复 6# admin
"If overwritten by other programmer, the internal clock will not be able to be calibrated."

Exactly! So what to do if 3FF is erased?
T-48 does not allow you to write 3FF.
PIC12f629 read by another programmer and saved as BIN cannot be written using T-48.
But 3ff is implemented in the memory card and must be writable
3ff stores the VALUE for the register, but it's not register OSCCAL
The internal clock is calibrated with a couple of lines of code.
BSF    03.5
MOVLW  0x3b //------ any value for osccal
MOVWF  0x10 // ---- load osccal

3ff.png (149.33 KB)

3ff.png

TOP

回复 8# admin

Are you suggesting that perfectly usable chips be thrown into the trash?
Other programmers write them using the checkbox to write 3FF.
In the current situation, I am forced to select PIC12F615 and turn off the id check in order to write PIC12F629
But it's not right.

TempFix.png (71.71 KB)

TempFix.png

TOP

回复 10# admin
Thank you.

TOP

Unfortunately, the correction error 0x3FF- OSCCAL has not been corrected in the latest version of the program. Please fix it.

TOP

返回列表 回复 发帖