UCPIC-7
main:
high 0
low 1
readadc 4,b0
for b1=0 to b0
high 2
pause 1000
next b1
readadc 4,b0
for b1=0 to b0
low 2
pause 1000
next b1
goto main:
PRACTICE 3
Put switch S4 in position to load the program record, finishing work put position.
In this program we read readadc 4, the potentiometer and generate a time warp that will turn the motor in one direction
or another as 0 or 1, the value of PIN 0 and PIN 1
Mettez l'interrupteur S4 en position pour charger l'enregistrement du programme, la finition position de travail de vente.
Dans ce programme, nous lisons readadc 4, le potentiomètre et de générer une chaîne de temps qui fera tourner le
moteur dans un sens ou un autre que 0 ou 1, la valeur du code PIN 0 et PIN 1
Poner conmutador S4 en posición grabar para cargar el programa, al terminar poner posición trabajo .
En este programa leemos con readadc 4 el potenciómetro y generamos un bucle de tiempo que hará girar el motor en
un sentido u otro según sea 0 o 1 el valor de los PIN 0 y PIN 1
main:
high 2
readadc 4,b0
for b1=0 to b0
high 0
low 1
pause 1000
next b1
readadc 4,b0
for b1=0 to b0
high 1
low 0
pause 1000
next b1
goto main:
PRACTICE 4
Put switch S4 in position to load the program record, finishing work put position.
In this program we read the potentiometer with readadc 4. if the value is less than 120 the engine is stopped, if activated
more than 120 engine
Mettez l'interrupteur S4 en position pour charger l'enregistrement du programme, la finition position de travail de vente.
Dans ce programme, nous lisons le potentiomètre avec readadc 4. si la valeur est inférieure à 120, le moteur est arrêté,
si le moteur est supérieur à 120 activé
Poner conmutador S4 en posición grabar para cargar el programa, al terminar poner posición trabajo .
En este programa leemos el potenciómetro con readadc 4 . si el valor es inferior a 120 el motor esta parado , si es
superior a 120 el motor activado