Notes: Pseudo-Parallax macro instruction set. Converts Parallax assembler code to PICmicro® mnemonics to be assembled in MPASM Assembler.
And
Application for using three interleaved software PWM routines to control the brightness of a Siemens 3-color LED. The app utilizes the FSR to swap the order of green/blue/red counters such that one increments every pass through main, one every other pass and one every fourth pass. Each of these count values is run through a sine lookup table to create a rolling rainbow pattern out of the LED. Code also implements a manual switch override that toggles through each color and, when held, ramps up the individual brightness of that color. In addition, the device will go into sleep mode if left untouched after 65K counts, waking up every ~2 seconds from the WDT timeout to flash the LED. Relies heavily on the prlx.asm set of macros. |