I know little english.
I also have problems 12f675 serout2.
problem was solved by adding "define OSCCAL_1k 1".
Will benefit from this example that would send.
My my script below
@ device pic12f675, intrc_osc, wdt_on, bod_on, cpd_off, pwrt_on, mclr_off, protect_off
DEFINE OSCCAL_1k 1
DEFINE ADC_BITS 8 ' Set number of bits in result
DEFINE ADC_CLOCK 3 ' Set clock source (rc = 3)
DEFINE ADC_SAMPLEUS 10 ' Set sampling time in
CMCON = 7 ' Comparators OFF
ANSEL = %00100001 ' AN0 enabled (last 4 bits are enable bits {AN3:AN0}
ADCON0 = %11000001 ' VCC Vref / Turn On ADC Module
trisio = %001011 ' 1 giriş 0 Çıkış
SYMBOL AN_OKU = GPIO.0
SYMBOL TX = GPIO.5
VOLT VAR WORD
BASLA:
ADCIN AN_OKU, VOLT
pause 10
VOLT.highbyte = ADRESH
VOLT.lowbyte = ADRESL
SEROUT2 tx,16780 ,["volt : ", dec5 volt, ?10,?13 ]
pause 1000
GoTo basla
Bookmarks