i want both programes to run apart from each other
Hi,

With Pics ... You CAN'T do two things at the same time ( say totally independant things - excluding Peripheral use )

a Pic does ONE THING AT A TIME ... " Multitasking " just is doing a little part of a task, then a little part of another task, then ...... a little part of the first task, then ....

very quickly.

thats ALL !!!

For your LED Example ... you'd have to use a Pair of "555" as EXTERNAL peripherals, ( HPWM modules are too fast ) to drive your leds .

Alain