jonh : robots : fiat : code : pic

Fiat's PIC source code

Unfortunately, the only PIC environment I am aware of (MPLAB, supplied by Microchip) is only available within Windows. This was one of the motivating reasons for minimizing the amount of code running on the PIC.

fiat.asm
initializes the PIC's registers, then handles the three run-time functions as interrupt handlers. It turns out that I should have done most functions by polling from the main loop, and reserved the interrupt handler for the PWM generation; this would have ensured more precise PWM output.

type.inc
bank.inc
int.inc
mne.inc
mne2.inc
These are include files (macros) from Keith Kotay that define a much nicer virtual instruction set for the PIC. Keith's macros act orthogonal, more like instructions on a 68000. -->