Here you can download an assembler program for PIC16F628A.
This program is a part of our robotics project.
Main part of our project is a J2ME program, which works on cell phone.
We use cell phone as a 'brain' of our robot.
But we need some assembler programming for technical purpose.
Cell phone can not drive DC motors.
But it can send byte to serial interface via cell phone socket.
We use for this special additional board, which uses PIC (Microchip) processor.
And program on this page is a kind of 'software driver' (firmware) for our robot.
We are trying to keep the PIC assembler part of our robotics project as simple as possible.
All 'business logic' we put to cell phone Java program.
And this assembler program we use just for a very primitive function:
The program receives 1 byte from serial interface from Java cell phone
and put this value to the port.
It just turn on/off some contacts (put voltage to some pins/legs on the PIC chip).
There are no any timers here - we moved timing function to Java program.
Now Java program decides - how long this or that motor should work.
It is not a function of PIC assembler program.
We are Java programmers and we are trying to keep ASM part in very simple form.
Download it and have fun!
; Assember code for PIC processor PIC16F628A.
; Motor driver for small hand-made robot.
; (c) 2004-2006, Oleg Lioubtchenko, Anton Lioubtchenko
list p=16F628A, r=DEC