The PC817 is Sharp's classic 4-pin DIP phototransistor optocoupler - the default choice for SMPS feedback loops, microcontroller isolation, and general signal isolation for decades. But Sharp's production volumes have shrunk, and PC817 lead times stretch when demand spikes. The good news: PC817 has more viable drop-in replacements than almost any other optocoupler. The three best alternatives are Everlight EL817 (identical specs, widely stocked), Toshiba TLP785 (5kVrms isolation, wider temp range), and Lite-On LTV817 (direct equivalent, competitive pricing).
But there's a catch. The PC817's VCEO is only 35V on the standard part - the PC817X variant bumps that to 80V. If your circuit was designed for the 80V version and you drop in a 35V-rated replacement, it works on the bench and fails in the field. Match the voltage rating and CTR grade, not just the part number.
| Parameter | PC817 (Sharp) | EL817 (Everlight) | TLP785 (Toshiba) |
|---|---|---|---|
| Type | Phototransistor Optocoupler | Phototransistor Optocoupler | Phototransistor Optocoupler |
| Package | DIP-4 / SMD-4 | DIP-4 / SMD-4 | DIP-4 |
| Pinout | 1-A, 2-K, 3-E, 4-C | 1-A, 2-K, 3-E, 4-C | 1-A, 2-K, 3-E, 4-C |
| Forward Voltage (VF) | 1.2V typ / 1.4V max | 1.2V typ / 1.4V max | 1.15V typ / 1.3V max |
| VCEO (Collector-Emitter) | 35V (standard) / 80V (PC817X) | 35V (standard) / 80V (EL817-G) | 80V |
| Collector Current (IC) | 50mA | 50mA | 50mA |
| CTR Range | 50–600% (by rank) | 50–600% (by rank) | 50–600% (by rank) |
| CTR Grades | A/B/C/D | A/B/C/D + X/Y | Blank/GB/GR/GL |
| Isolation Voltage | 2.5–5kVrms | 5kVrms | 5kVrms |
| Rise/Fall Time | 18µs typ | 18µs typ | 12µs typ (faster) |
| Cut-off Frequency | 80kHz | 80kHz | 80kHz |
| Operating Temperature | -30 to +100°C | -55 to +110°C | -55 to +110°C |
| Certifications | UL, VDE, CQC | UL, VDE, CQC, RoHS | UL, VDE, CQC, RoHS |
| Manufacturer | Sharp (Japan) | Everlight (Taiwan) | Toshiba (Japan) |
| Relative Cost (1k) | $0.05–0.10 | $0.04–0.08 | $0.06–0.12 |
All three alternatives share the identical pinout. Pin 1 (Anode) has the LED's positive terminal, Pin 2 (Cathode) goes to ground or the current-limiting resistor, Pin 3 (Emitter) is the phototransistor output low-side, Pin 4 (Collector) is the output high-side. The input side is on pins 1–2, output on pins 3–4. The isolation barrier runs down the middle of the package - keep your PCB traces on the input side physically separated from output-side traces, and maintain the creepage distance specified in your safety standard.
CTR grade matters for SMPS feedback. The current transfer ratio directly affects the feedback loop gain. If your original BOM specifies PC817B (CTR 130–260%), replacing it with an ungraded EL817 (CTR 50–600%) may cause the power supply to oscillate at light load or sag under heavy load. Match the CTR grade letter: A=A, B=B, C=C, D=D. Everlight adds X (100–200%) and Y (150–300%) which sit between A and C - these are safe substitutes for A-grade or B-grade respectively.
| Part | Manufacturer | Notes |
|---|---|---|
| LTV817 | Lite-On | Direct PC817 equivalent, widely available. Same pinout, same specs. Third major source after Sharp/Everlight. |
| HCPL-817 | Broadcom/Avago | Industrial-grade equivalent. Same pinout, 5kVrms, -55 to +100°C. Premium brand, premium price. |
| FOD817 | onsemi/Fairchild | Drop-in replacement. Same DIP-4 pinout, CTR 50–600%. Good alternative source. |
| KL817 | Kinglight (晶台) | Chinese domestic alternative. DIP-4, VF=1.2V, CTR=50–600%. Lowest cost option for non-safety-critical applications. |
| SFH618A | Vishay | Premium alternative with lower input current (0.5mA typ for CTR >100%). For low-power designs. |
Q1: Is the EL817 a direct drop-in replacement for the PC817?
A: Yes, in the vast majority of circuits. Same DIP-4 pinout, same VF (1.2V), same IC (50mA), same CTR ranges by grade. The one thing to verify: if your circuit uses the high-voltage PC817X (VCEO=80V), match it with the EL817-G variant, not the standard EL817 (35V). Standard-to-standard and X-to-G are interchangeable pairs.
Q2: What happens if I use the wrong CTR grade?
A: In digital/switching applications - usually nothing. The transistor is either fully on or fully off, so CTR variation has minimal effect. But in analog feedback loops (SMPS regulation), the CTR sets the loop gain. A wider CTR spread means wider gain variation, which can cause instability, poor regulation, or audible noise from the transformer. Match the grade letter for any circuit where the optocoupler operates in its linear region.
Q3: Can I replace PC817 with TLP785 in an SMPS feedback circuit?
A: Yes, and it's often an upgrade. The TLP785's faster rise/fall times (12µs vs 18µs) and guaranteed 80V VCEO give you better transient response and more voltage headroom. Match the CTR grade: TLP785(GB) ≈ PC817B. The TLP785 costs slightly more but eliminates the voltage-rating guesswork.
Q4: What is the difference between PC817 and PC817X?
A: VCEO voltage rating. Standard PC817: 35V. PC817X: 80V. The "X" suffix on Sharp parts means high voltage. But be careful - on Everlight EL817, "X" means a CTR grade (100–200%), not high voltage. Everlight uses "G" for high voltage (EL817-G = 80V). This naming inconsistency has caused more than a few production-line substitutions to go wrong.
Q5: Why does my PC817 work on the bench but fail after weeks in the field?
A: Likely VCEO overstress. If your circuit puts 50–60V across the output transistor and you've installed a standard 35V PC817 (instead of the 80V PC817X the design requires), the part works initially because the breakdown voltage has manufacturing margin. Over weeks of thermal cycling, the junction degrades until the leakage current becomes unacceptable. Check your circuit's collector-emitter voltage under worst-case conditions, then verify the optocoupler's VCEO rating.
Q6: Are Chinese domestic alternatives like KL817 or APC817 reliable?
A: For non-safety-critical commercial products, yes. Brands like Kinglight (KL817) and 先进光半导体 (APC817) ship in volume to Chinese consumer electronics manufacturers. For safety-isolation applications (medical, industrial machinery, anything with a UL safety file), stick to Everlight, Lite-On, Toshiba, or Broadcom - the few cents saved on the optocoupler aren't worth the certification re-qualification.
Q7: Can I use a 4N35 instead of a PC817?
A: Not as a direct replacement. The 4N35 has a different pinout (base brought out to pin 6 in a 6-pin DIP) and much lower CTR (20% min vs PC817's 50% min). You'd need a PCB layout change and a re-design of the drive current. The 4N35 is an older, slower, lower-performance part. For new designs, stick to the PC817/EL817/TLP785 family. For existing 4N35 designs, consider H11A617 or SFH618A as drop-in upgrades.
Q8: What is the typical lifespan of a PC817-type optocoupler?
A: CTR degrades slowly over time as the IR LED output decreases. At 20mA LED current and 25°C, expect ~10% CTR drop after 10,000 hours and ~20% after 50,000 hours. At higher LED currents or elevated temperatures, degradation accelerates. For designs with a 10-year service life, add 30–50% CTR margin beyond the minimum needed for reliable switching. If your circuit works at CTR=50% minimum, design for CTR=100% to allow for aging.





