Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UART Schematic: Pullup needed? #5

Open
mihaigalos opened this issue Feb 24, 2022 · 6 comments
Open

UART Schematic: Pullup needed? #5

mihaigalos opened this issue Feb 24, 2022 · 6 comments

Comments

@mihaigalos
Copy link

mihaigalos commented Feb 24, 2022

Hi, not sure the schematic in its current form would work:

TXD --------|<|----*-------- ID
                   |
RXD ----------------

GND ------------------------ GND

Seems TXD is at least missing a pullup on the anode (assuming the diode polarity is correct), since when you want to send, you would drive the pin low and open/close the diode:

                        VCC 
                        _|_
                       |  |
                       |__|
                        |
TXD --------|<|----*----*--- ID
                   |
RXD ----------------

GND ------------------------ GND
@lgolebio
Copy link

Yes. I can confirm that pullup resistor is needed 4,7Kohm. Without it it reads data but incorrect.

20220421_202910

@rahmajayagrs
Copy link

read correct , but write fail
dell univ

@mihaigalos
Copy link
Author

@rahmajayagrs, so the conclusion is that it only works without the pullup?

@rahmajayagrs
Copy link

rahmajayagrs commented Sep 16, 2022

with or without pullUp still can read but can't write,
i am using ch341A

@mihaigalos
Copy link
Author

@rahmajayagrs the value of the pullup is important, as is the maximum baud rate.
Try using a lower baudrate (i.e. 9600) and a resistor value of 4.7K.

Also, double check your wiring.

@arekm
Copy link

arekm commented Jul 10, 2024

Here I was able to read EEPROM contents of original 130W Dell charger and also of emulated EEPROM but only with 4.7k pullup. No speed change was needed. My USB adapter had FTDI chip in it.

Didn't try to reprogram emulated EEPROM that way since Dell XPS 9530 I was testing recognized emulated charger properly. Programming was done in place on digispark attiny85 board, using TL866II Plus with SOIC8 clip. Fuse bits set the same way as in project Makefile.

The bad news is that emulation software doesn't work reliably. Very often dell doesn't detect the charger :/ Don't know why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants