Hello everyone, I'm trying to build a simple remote control but I am beginner in programming and need help ...
Please note, I read a value between 0 and 5 volts and then transmitted via the RF result of AD conversion ...
Believe me, worked ... However the battery discharges very fast ... I need the transfer happen only with a change in the result of conversion ...
I am using this code:

@ DEVICE PIC12F683,FCMEN_OFF
@ DEVICE PIC12F683,IESO_OFF
@ DEVICE PIC12F683,BOD_OFF
@ DEVICE PIC12F683,CPD_OFF
@ DEVICE PIC12F683,PROTECT_OFF
@ DEVICE PIC12F683,MCLR_OFF
@ DEVICE PIC12F683,WDT_OFF
@ DEVICE PIC12F683,INTRC_OSC_NOCLKOUT

OSCCON = %01100000
TRISIO = %00001111
GPIO = %00000000
WPU = %00000000
OPTION_REG = %10000000
ANSEL = %00000001
VRCON = %10101100

DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50

adpot var byte

start:

ADCIN 0, adpot1
serout 5, 1200, [adpot]
pauseus 200
goto start
END

_Somebody help me?