buy.Microchip.com Getting Started Memory Devices PICmicro™ Devices Keeloq® Security Ics Analog/Interface RFID Devices Application Notes Consultants Literature Design Centers Knowledge Base Related Sites Development Tools Overview News & Events Employment Seminars & Training Sales & Distribution Investor Relations University Corner Text Search Homepage buy.Microchip.com Site Menu
 Page Options
Microchip Technology Inc.: Miscellaneous Code Templates
  SpaceHomepageMicrochip WebSite
DotsFolderKnowledge Base
Search Options Search Folder
Text Search Search PageRight Level 1 tree
 
DotsFolderCode Examples and Templates
DotsDocumentMiscellaneous Code Templates
 
     
Pseudo-Parallax macro instruction set.
Date: 4/20/1999
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.
 


Page Modes 
Bookmark Safe Graphics Version
Page Details
Microchip's Legal Information
Return to top of page Return to top of page
Page Updated on: 03/16/2001