droseman
Junior Member level 3

Hello,
I am trying to interface some 5V TTL signals through an optocoupler to a microchip PIC16C55A microcontroller. I need to calculate the current to drive my opto with so that I won't damage the input of my micro.
When I went to the datasheet for the PIC, I found that:
Max. current into an input pin (T0CKI only).................................................................................................... ±500 mA
With a CTR of 200% on my opto and a 1mA minimum input current, how do I interface the micro input without damaging it?
Is there another line in the datasheet which will tell me the maximum input current of an IO pin? Most of the data seemed concerned with output current source and sink..
Hopefully someone can help me sort out this interfacing issue.
--dave
I am trying to interface some 5V TTL signals through an optocoupler to a microchip PIC16C55A microcontroller. I need to calculate the current to drive my opto with so that I won't damage the input of my micro.
When I went to the datasheet for the PIC, I found that:
Max. current into an input pin (T0CKI only).................................................................................................... ±500 mA
With a CTR of 200% on my opto and a 1mA minimum input current, how do I interface the micro input without damaging it?
Is there another line in the datasheet which will tell me the maximum input current of an IO pin? Most of the data seemed concerned with output current source and sink..
Hopefully someone can help me sort out this interfacing issue.
--dave