-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Assuming the 16F88 has a hardware PWM module (I don't know the part personally), why not just use 8 pins on a single port of each device? Have the F88 sit in a tight loop just doing MOVF PORT, W; MOVWF PWM; and dump the desired brightness to the port on the 18F252. You might get word tearing due to propagation delay now and then but honestly, for the sake of the brightness of an LED, who cares? It'll only be at the edges of a brightness transition anyway. If you don't have 8 pins and don't need 256 levels of brightness, substitute a smaller number. :) Chris piclist@ian.org wrote: [snip] | | I am pondering setting up a 16F88 to just do the PWM output.. it should be | able to easily handle three of them at once and still read the input from | the 18F252. Anyone have a good suggestion on how to communicate to the | 16F88? I have plenty of pins, but it needs to be FAST so I can tell it to | switch the lines on and off exactly when I want them, at the brightess I | want as well. | | -- | Ian Smith -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: GnuPT 2.7.2 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH+OcbiD2svb/jCb4RApMuAKCO8JG5j3PQUyicbMmSgxYfbF40rgCgnsVs Hh+oaGhoa+q1gbVMR1fM6dI= =hZt6 -----END PGP SIGNATURE----- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist