Author Topic: Strange inverter behaviour; what am I missing?  (Read 247 times)

0 Members and 1 Guest are viewing this topic.

Offline aeberbachTopic starter

  • Regular Contributor
  • *
  • Posts: 225
  • Country: au
Strange inverter behaviour; what am I missing?
« on: Yesterday at 12:12:36 am »
I'm trying to use a dual inverter https://www.ti.com/lit/ds/symlink/sn74lvc2gu04.pdf?ts=1722469526037&ref_url=https%253A%252F%252Fwww.google.com%252F to power one of two LEDs based on the output of a caps lock LED from an old Amiga computer. Attachment shows the circuit.

2326815-0

The existing NPN transistor drives the caps lock LED in the original keyboard. Its base is the output of the 6507 keyboard controller (a variant of 6502) reflecting the state of caps lock. Low is lit, high is unlit, as the LED in the original keyboard has VCC on the other side.

What I want to do is not use the original LED, instead use that state as the input to the inverter/LED arrangement shown in "New circuit". When low, the blue LED is off and the red LED on. When high, the blue LED is on and the red LED off.

I don't see anything in the datasheet of the inverter to suggest I am doing anything wrong with it? What happens is that the LED state transitions after a brief pause, when it transitions at all. It isn't reliable. Is it as simple as needing a 10k pullup to pin 1 of the inverter?
« Last Edit: Yesterday at 12:14:44 am by aeberbach »
Software guy studying B.Eng.
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6049
  • Country: de
Re: Strange inverter behaviour; what am I missing?
« Reply #1 on: Yesterday at 12:33:24 am »
Remove R3 and add a pullup.
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2476
  • Country: gb
  • Recovering Electrical Engineer
Re: Strange inverter behaviour; what am I missing?
« Reply #2 on: Yesterday at 08:15:26 am »
The 650x has a Vdd of +5V. Add a pull up to +5V as shown. If the pull up is >>100 ohms then you can leave R3 where it is.
An Rpu 1k to 10k will work fine. It is that simple.

As shown in your schematic, the inverter input is charging up to an on state via a leakage current.
Q1 etc can discharge it but provides no path to charge it again.

For this particular converter you can drive it directly from a 5V CMOS logic output even if the inverter Vcc is less than 5V.
The SN74LVC2GU04 data sheet says the inveter can be used as a "Down Translator". ie 5V down to the inveter's Vcc.
Swap the LED colours. If Vcc is less than 5V, the blue LED might fail to light up. Blue LEDS need at least 3.3V.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4287
  • Country: nz
Re: Strange inverter behaviour; what am I missing?
« Reply #3 on: Yesterday at 09:13:46 am »
Also can't both LEDs can be driven by one inverter? It can source and sink the same amount of current.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf