hello,
i did what you said.
i wrote t with capslock on, and i set the fuse bits and settings on
my programmer software(practical) or in the simulating software.
this is a simple program.but it doesn't work neither
in simulatin software nor on the breadboard(practical)
see:
INPUT GPIO.0
OUTPUT GPIO.1
OUTPUT GPIO.2
DEFINE OSC 4
DEFINE ADC_CLOCK 3
INCLUDE "MODEDEFS.BAS"
ANSEL=%00000001
ADCON0.7=1
DEFINE ADC_BITS 10
W1 VAR WORD
CMCON=7
GPIO.1=1
GPIO.2=0
PAUSE 1000
GPIO.1=0
GPIO.2=1
PAUSE 1000
GPIO.1=0
GPIO.2=0
START:
ADCIN 0,W1
PAUSE 100
IF W1>500 THEN
GPIO.1=1
GPIO.2=0
PAUSE 100
ELSE
GPIO.1=0
GPIO.2=1
PAUSE 100
ENDIF
GOTO START
END
but it doesn't work yet.
there is sth that i should say.
my microcode studio's version is 2.3.0.0
and it had no support libraries for 12f675.
then i downloaded "12f675.bas" and "m12f675.inc" and copied them to the mcs
folders in my drives(near other inc and bas files).
is there any problems with this process?
and i can drive the adc module on 16f877a,but not on 12f675.
since the library files were present in the software.
thank you for helping me from the other side of the world!
thank you
Bookmarks