Quote Originally Posted by ERMEGM View Post
Hello All,

I have been watching videos and seeing actual products that use PICs and have noticed the PICs doing two things at once. For instance, I have witnessed two separate outputs flashing at different rates. Kind of like watching two vehicles with their turn signals on and the flashing lights go in sync and out of phase with each other and then back in sync again.

How can one do this with PBP? Another example is pwming an output at one frequency while another output is at a different frequency. I thought the PIC can only do one thing at a time. Anyone have any example code?

Thanks,
Tony
A PIC can only do one thing at a time. Or should I say it can only run one program at a time unlike computers for example. As Darrel has shown PBP can be used to give the effects you want. The appearance that you get of two things being done at the same time is an illusion created by POV.

If anyone has a way to make a PIC multitask please let me know.