Nigel Goodwin said:You should be able to ignore the OSCCAL code for EEPROM and FLASH chips, any decent programmer software will do it automatically, read the chip, store the OSCCAL value, then write it back when you write the chip.
For a 12C508JW you need to manually save and restore the value, as it's erased by the UV eraser - 12C508's aren't a problem, because they are OTP, so the OSCCAL value doesn't get erased.
Gayan Soyza said:Same like PIC12f629 prob...... when u program 12c508a & PIC16f628a when selecting internal oscillator do u need to write the OSCCAL codes in the program....or can u wright the main code by ignoring that OSCCAL codes ?????bcuz I got stucked in programing 508a wasted about 4 chips.......
eng1 said:If you want a good stability of the internal oscillator, the PIC 16F628A should be operated with Vcc=3.5 V and T=25°C.
I thought it is!eblc1388 said:This does not mean it is the optimum operating condition for 16F628A.
So this is ±2% with respect to 4 MHz. Since they say that the internal oscillator is factory calibrated to 1%, it will have that precision with the same operating conditions (Vcc and T).eblc1388 said:If you look at the datasheet:
2.0V < Vdd < 5.5V and temperature 0 < temp < 85 degree, the frequency variation is 3.92 to 4.08MHz.
I understand this, but if I can't calibrate I'll be satisified with 1% tolerance.eblc1388 said:If I put the PIC at 30 degree and but change Vdd up or down to obtain exactly 4.000000MHz, is my operating point the optimum?
eng1 said:So this is ±2% with respect to 4 MHz. Since they say that the internal oscillator is factory calibrated to 1%, it will have that precision with the same operating conditions (Vcc and T).
eblc1388 said:Edited: We can easily regulate the PIC supply voltage to 5V. How can one keep the PIC temperature constant at 25 degree C?
CLRF PORTA
MOVLW 0X07
MOVWF CMCON
BSF STATUS,RP0 ; SELECT BANK 1
BCF STATUS, RP1
BSF STATUS, RP0
MOVLW OPTION_SETUP ; Place option reg setup into W
MOVWF OPTION_REG ; Set up OPTION register
BCF STATUS,RP0 ; SELECT BANK 0
MOVLW PORTA ; Place beginning of RAM/Port location into W
MOVWF FSR ; Now initialize FSR with this location
evandude said:Put it inside a temperature-controlled chamber, with A/C and a heater and a PID controller running it all. Should only cost you a few thousand dollars ....................
CLRF PORTA
BSF STATUS,RP0 ; SELECT BANK 1 <---Moved
BCF STATUS, RP1 ; <---Moved
MOVLW 0X07
MOVWF CMCON
BSF STATUS, RP0
MOVLW OPTION_SETUP ; Place option reg setup into W
MOVWF OPTION_REG ; Set up OPTION register
BCF STATUS,RP0 ; SELECT BANK 0
MOVLW PORTA ; Place beginning of RAM/Port location into W
MOVWF FSR ; Now initialize FSR with this location
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?