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

UPDI programming using Raspberry GPIO without USB to TTL #13

Open
pippopippo69 opened this issue Apr 25, 2023 · 1 comment
Open

UPDI programming using Raspberry GPIO without USB to TTL #13

pippopippo69 opened this issue Apr 25, 2023 · 1 comment

Comments

@pippopippo69
Copy link

pippopippo69 commented Apr 25, 2023

Hi, I am programming an attiny816. Everything works fine with USB to TTL Cable but no way to program it using Raspberry GPIO without USB to TTL..any hint ?
Raspberry GPIO electric level is 3.3V and attiny816 is 5V, but attiny816 can read a 3.3V signal correctly.
Is a level shifter needed? Has it to be OpenDrain or with a specific output?
tks

@pippopippo69 pippopippo69 changed the title UPDI programming using Ra UPDI programming using Raspberry GPIO without USB to TTL Apr 25, 2023
@SpenceKonde
Copy link
Owner

This is tricky. The main problem is that most level shifters will trash the UPDI signal coming back from the target. To get an idea of what the UPDI pin on the target is capable of as far as drive strength is concerned, imagine a normal I/O pin with a 2.2-2.5k resistor in series with it. That is weak enough that most level shifter designs will fail to correctly operate. (note on the Dx and Ex parts, it's a normal I/O pin in strength).

You could program at 3.3v running the 816 at 3v3 if the PI has a UART by duplicating the SerialUPDI approach. You would likely need to set the write delay when invoking SerialUPDI (USB latency is sufficiently painful that . I'm not experienced with the Pi, but if someone described an approach that worked and what options were needed to make SerialUPDI work, I would add SerialUPDI via RPI GPIO to the programmer menu

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

2 participants