Is it possible to transmit data using a optocoupler?

Hi forum,

How could i transmit data using a optocoupler? Is it possible?

(How Optocoupler Works and the Optocoupler Basics: http://www.apogeeweb.net/article/69.html)

I really need to use it because I cannot disable the interrupts of PIC18F4620. I want to try something like this:

disable the interrupts of PIC18F4620.PNG

Is PC817 fast enough to do it? If not, do you have any other suggestion please?

Many thanks,

Joshua

SolidworksParts And Features