Microprocessor controlled constant current driver designed for analog modulation