Are you trying to modulate a serial stream of data? Example being IR modulation if serial data? Maybe use a pic with a Data Signal Modulator module on board similar to the 12F1840.