This commit is contained in:
2025-08-20 23:22:33 +02:00
parent 6e88718ab7
commit 52aa2cc6b2
4 changed files with 30 additions and 1 deletions

View File

@ -76,10 +76,39 @@ Hardware: FT232 USB-UART adapter connected to UPDI with a 4.7 kΩ resistor.
```
## Hardware Setup (FT232 → ATtiny202 UPDI)
```bash
FT232 TX ----[4.7kΩ]---- UPDI (pin 6)
FT232 TX ----[4.7kΩ]---- UPDI (Pin 6)
FT232 GND --------------- GND
VCC -------------------- VCC (3.3V or 5V, must match FT232 logic)
```
*Hint:* The GPIO PA0 acts as UPDI of ATtiny202 and needs to be disconnected from the PCB during programming.
## ATtiny202-SSN Pin Mapping (PCB Usage)
![Image of the PCB in doc/ folder.](doc/bottom_side.png "Back of PCB")
![Image of the PCB in doc/ folder.](doc/front_side.png "Front of PCB")
| Pin # | Pin Name | Port | PCB Usage | Direction |
|------:|----------|------|--------------------------|------------------------------------------|
| 1 | VDD | — | +VDD (Power) | Power Input |
| 2 | PA6 | IO | Green LED | Output |
| 3 | PA7 | IO | Red LED | Output |
| 4 | PA1 | IO | LED 12 | Output |
| 5 | PA2 | IO | LED 36 | Output |
| 6 | PA3 | IO | LED 78 | Output |
| 7 | PA0 | IO | UPDI / Activation Button | Input (button, pull-up) / UPDI (program) |
| 8 | GND | — | Ground | Power Ground |
---
### Logic Levels (LEDs & Button)
| Signal | PCB Usage | LOW | HIGH |
|--------|-------------------|--------------------------|---------------------------|
| PA6 | Green LED | LED **ON** | LED OFF |
| PA7 | Red LED | LED **ON** | LED OFF |
| PA1 | LED 12 | LED(s) **ON** | LED(s) OFF |
| PA2 | LED 36 | LED(s) **ON** | LED(s) OFF |
| PA3 | LED 78 | LED(s) **ON** | LED(s) OFF |
| PA0 | Activation Button | Button **pressed** (GND) | Button released (pull-up) |
## License