I'm trying to build a synchronous motor control using a 12f629 but having problems even getting it going here's a simple code i wrote that wont work - any clues?
@ device pic12F629, INTRC_OSC_NOCLKOUT, WDT_ON, MCLR_OFF, PROTECT_OFF, BOD_ON
Define OSCCAL_1K 1
DEFINE OSC 4
CMCON = 7 'TURN COMPARITORS OFF
TRISIO = %000000 ' Set GPIO 0,1 TO INPUT, others to OUTPUT
Delay var word
MaxSpeed var word
Start:
toggle gpio.5
pause 100
goto start
Bookmarks