linux embedded asm

Playing with PICs

Robot seguidor de lĂ­nea

Small program to control a line following robot with 8 sensors, needs to be cleaned. PIC 16F628A, 2 Motors, 8 Sensors


list p=16f628A

errorlevel -302

radix hex

w EQU 0x00
f EQU 0x01
pc EQU 0x02
Z EQU 0x02
C EQU 0x00
STATUS EQU 0x03
PUERTOA EQU 0x05
PUERTOB EQU 0x06
INTCON EQU 0x0b
CMCON EQU 0x1f
Ti0 EQU 0x20
Ti1 EQU 0x21
Ti2 EQU 0x22
OPT EQU 0x81

ORG 0x00

nop
nop
nop

goto ini

Subscribe to RSS - linux embedded asm