Board-dat/CIC/CIC1053-dat/CIC1053-dat.md
... ...
@@ -10,7 +10,9 @@ https://www.electrodragon.com/product/5pcs-logicgreen-lgt8f328p/
10 10
- 1.2 now
11 11
- 1.8
12 12
13
-[[LGT8F328-DAT]] - [[DAR1056-DAT]] - [[CIC1053-dat]] - [[NWL1097-dat]]
13
+- [[LGT-dat]] - [[LGT8F328-DAT]] - [[DAR1056-DAT]] - [[CIC1053-dat]] - [[NWL1097-dat]]
14
+
15
+
14 16
15 17
16 18
## board
Chip-cn-dat/LGT-dat/LGT8F328-SDK-DAT/2026-02-20-18-10-45.png
... ...
Binary files /dev/null and b/Chip-cn-dat/LGT-dat/LGT8F328-SDK-DAT/2026-02-20-18-10-45.png differ
Chip-cn-dat/LGT-dat/LGT8F328-SDK-DAT/2026-02-20-19-24-14.png
... ...
Binary files /dev/null and b/Chip-cn-dat/LGT-dat/LGT8F328-SDK-DAT/2026-02-20-19-24-14.png differ
Chip-cn-dat/LGT-dat/LGT8F328-SDK-DAT/LGT8F328-SDK-DAT.md
... ...
@@ -95,16 +95,24 @@ LGT 后续发布支持在线调试的 MIC8X 内核芯片,我们将提供固件
95 95
- +3V3
96 96
- GND
97 97
98
+| pin | LGT | extra |
99
+| --- | ----- | ----- |
100
+| 4 | VCC | |
101
+| 5 | GND | |
102
+| 18 | SWC | PE0 |
103
+| 21 | SWD | PE2 |
104
+| 29 | Reset | |
98 105
106
+- [[TQFP-dat]]
99 107
108
+## Sketch uploads By Arduino IDE
100 109
101 110
102
-## Sketch uploads By Arduino IDE
103 111
- Pre-loaded bootloder. Just select corresponding board to upload sketch, refer to bootloader sketch below
104 112
- Programming pin port same as FTDI [[FT232-dat]], same as arduino pro mini
105 113
- A backup method for without DTR, just hold down RESET button when "compiling", then release when "uploading".
106 114
107
-
115
+![](2026-02-20-18-10-45.png)
108 116
109 117
## ISP
110 118
... ...
@@ -191,6 +199,28 @@ Installation:
191 199
192 200
![](2026-02-11-02-21-36.png)
193 201
202
+
203
+
204
+## bootloader
205
+
206
+C:\Users\Administrator\AppData\Local\Arduino15\packages\lgt8fx\hardware\avr\2.0.7\bootloaders\lgt8fx8e\optiboot_lgt8f328d.hex
207
+
208
+C:\Users\Administrator\AppData\Local\Arduino15\packages\lgt8fx\hardware\avr\2.0.7\bootloaders\lgt8fx8p\optiboot_lgt8f328p.hex
209
+
210
+
211
+## LGT8F328D
212
+
213
+- error blink LED
214
+- optiboot_lgt8f328d_intosc.hex
215
+
216
+
217
+![](2026-02-20-19-24-14.png)
218
+
219
+
194 220
## ref
195 221
196
-- [[LGT8F328-dat]] - [[LGT-dat]]
... ...
\ No newline at end of file
0
+- [[LGT8F328-dat]] - [[LGT-dat]]
1
+
2
+- [[avr-dat]]
3
+
4
+- [[fab-dat]]
... ...
\ No newline at end of file
Chip-dat/AVR-dat/AVR-dat.md
... ...
@@ -19,7 +19,7 @@
19 19
20 20
- [[DCDC-down-dat]]
21 21
22
-- [[AVR-app-dat]]
22
+- [[AVR-app-dat]] - [[avr-fuse-dat]]
23 23
24 24
- [[avr-sdk-dat]]
25 25
Chip-dat/AVR-dat/avr-fuse-dat/avr-fuse-dat.md
... ...
@@ -0,0 +1,88 @@
1
+
2
+# avr-fuse-dat
3
+
4
+AVR Fuses: The "BIOS" of Your Microcontroller
5
+
6
+In AVR microcontrollers (like the ATmega328P used in the Arduino Uno), **fuses** are configuration bits that determine the fundamental hardware behavior of the chip. Unlike your application code, fuses are not erased when you upload a new program; they are stored in a separate, non-volatile memory space.
7
+
8
+### 1. Key Responsibilities
9
+Fuses tell the hardware how to "wake up" and function at a physical level. Common configurations include:
10
+
11
+* **Clock Source Selection:** Choosing between an internal RC oscillator, an external crystal, or an external clock.
12
+* **Clock Divider:** A factory-set fuse (`CKDIV8`) that often slows the chip down to 1MHz by default.
13
+* **Brown-out Detector (BOD):** Triggers a reset if the supply voltage drops below a safe threshold (e.g., 2.7V or 4.3V) to prevent data corruption.
14
+* **Bootloader Support:** Defines how much memory to reserve for a bootloader and where the execution starts after a reset.
15
+* **Watchdog Timer (WDT):** Can be permanently enabled via fuses to reset the chip if the software hangs.
16
+
17
+---
18
+
19
+### 2. The Binary Logic (Important!)
20
+AVR fuses use **inverse logic**, which is often counter-intuitive for developers:
21
+* **0 = Programmed (Active/Enabled)**
22
+* **1 = Unprogrammed (Disabled/Off)**
23
+
24
+> **Note:** If you want to enable a feature, you usually set its bit to `0`.
25
+
26
+---
27
+
28
+### 3. Fuse Byte Structure
29
+Most modern AVRs organize fuses into three main bytes:
30
+
31
+| Byte | Primary Function | Example Impact |
32
+| :---------------- | :---------------------------- | :--------------------------------------------- |
33
+| **Low Fuse** | Clock settings & Startup time | Determines how fast the chip runs. |
34
+| **High Fuse** | Bootloader, SPI, & Reset | Can disable the ability to reprogram the chip. |
35
+| **Extended Fuse** | Brown-out Detection | Controls stability during power fluctuations. |
36
+
37
+
38
+
39
+---
40
+
41
+### 4. Risks: "Bricking" the Chip
42
+Fuses are powerful and can "brick" your microcontroller if set incorrectly:
43
+* **Wrong Clock:** If you select an "External Crystal" but don't have one soldered to the board, the chip will have no heartbeat and will stop responding to programmers.
44
+* **Disable Reset:** If you disable the `RSTDISBL` fuse to gain an extra I/O pin, you can no longer use standard ISP programmers to change your code.
45
+* **Disable SPI:** Disabling the `SPIEN` fuse prevents further programming via the standard Serial Peripheral Interface.
46
+
47
+---
48
+
49
+### 5. How to Change Them
50
+Fuses cannot be changed by the code running *on* the chip. You must use an external hardware programmer (like a USBasp, AVRISP mkII, or another Arduino acting as an "ArduinoISP") and software like **AVRDUDE**.
51
+
52
+**Example AVRDUDE command to set fuses:**
53
+`avrdude -c usbasp -p m328p -U lfuse:w:0xFF:m`
54
+
55
+
56
+
57
+
58
+## Arduino Uno (ATmega328P) Typical Fuse Settings
59
+
60
+The following values are the standard configuration for a 5V, 16MHz Arduino Uno:
61
+
62
+| Fuse Byte | Hex Value | Binary Value | Key Functions Enabled |
63
+| :------------ | :-------- | :----------- | :-------------------------------------------- |
64
+| **Low Fuse** | `0xFF` | `11111111` | External Crystal (16MHz), Max Start-up Time. |
65
+| **High Fuse** | `0xDE` | `11011110` | SPI Programming Enabled, 512-word Bootloader. |
66
+| **Extended** | `0xFD` | `11111101` | Brown-out Detection (BOD) set to 2.7V. |
67
+
68
+---
69
+
70
+### 1. Low Fuse (0xFF) Breakdown
71
+The Low Fuse primarily handles the **Clock Source**.
72
+* **0xFF** tells the chip: "Don't use the internal oscillator; wait for an external 16MHz crystal to stabilize before starting."
73
+* It also disables the `CKDIV8` (Divide clock by 8) bit. If this were set to `0x7F`, your 16MHz Arduino would crawl at 2MHz.
74
+
75
+
76
+
77
+### 2. High Fuse (0xDE) Breakdown
78
+The High Fuse manages **System features** and **Bootloader memory**.
79
+* **SPIEN (Bit 5):** Set to `0` (Enabled) so you can program it via the ICSP header.
80
+* **BOOTSZ (Bits 2-1):** Set to reserve 512 words (1024 bytes) for the Optiboot bootloader.
81
+* **BOOTRST (Bit 0):** Set to `0` (Enabled) so the chip jumps to the bootloader address immediately upon power-up instead of starting the user sketch.
82
+
83
+### 3. Extended Fuse (0xFD) Breakdown
84
+
85
+This byte is almost exclusively for **Brown-out Detection (BOD)**.
86
+* **0xFD** sets the threshold to **2.7V**.
87
+* If the power supply dips below 2.7V, the chip will force a reset. This prevents the processor from executing "garbage" instructions or corrupting EEPROM memory when the voltage is too low for stable logic.
88
+
PCB-dat/PCB-design-dat/footprint-dat/TQFP-dat/2026-02-20-17-57-23.png
... ...
Binary files /dev/null and b/PCB-dat/PCB-design-dat/footprint-dat/TQFP-dat/2026-02-20-17-57-23.png differ
PCB-dat/PCB-design-dat/footprint-dat/TQFP-dat/2026-02-20-18-03-27.png
... ...
Binary files /dev/null and b/PCB-dat/PCB-design-dat/footprint-dat/TQFP-dat/2026-02-20-18-03-27.png differ
PCB-dat/PCB-design-dat/footprint-dat/TQFP-dat/TQFP-dat.md
... ...
@@ -8,8 +8,29 @@
8 8
![](2025-12-12-17-50-40.png)
9 9
10 10
11
+## CNV-TQFP32
11 12
13
+![](2026-02-20-17-57-23.png)
12 14
15
+ pin 5 = pin 1
16
+ pin 6 = pin 2
17
+ pin 7 = pin 3
18
+ pin 8 = pin 4
19
+ pin 9 = pin 5
20
+
21
+ pin 22 = pin 18
22
+ pin 23 = pin 19
23
+ pin 24 = pin 20
24
+ pin 25 = pin 21
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+![](2026-02-20-18-03-27.png)
13 34
14 35
15 36
fab-dat/fab-PCB-soldering-skills-dat/2026-02-20-19-27-47.png
... ...
Binary files /dev/null and b/fab-dat/fab-PCB-soldering-skills-dat/2026-02-20-19-27-47.png differ
fab-dat/fab-PCB-soldering-skills-dat/fab-PCB-soldering-skills-dat.md
... ...
@@ -0,0 +1,13 @@
1
+
2
+# fab-PCB-soldering-skills-dat
3
+
4
+- to resolder a chip, and to keep all the pins well contact, add weight on the chip to gain better contact
5
+
6
+![](2026-02-20-19-27-47.png)
7
+
8
+
9
+
10
+
11
+
12
+
13
+
product-dat/product-dat.md
... ...
@@ -12,7 +12,7 @@
12 12
13 13
- [[cad-dat]]
14 14
15
-
15
+- [[user-friendly-mechanical-design-dat]]
16 16
17 17
18 18
## ref
product-dat/user-friendly-dat/user-friendly-mechanical-design-dat/user-friendly-mechanical-design-dat.md
... ...
@@ -0,0 +1,10 @@
1
+
2
+# user-friendly-mechanical-design-dat
3
+
4
+
5
+- fast-lock
6
+- Wing-Nut (羊角) / wing-screw
7
+
8
+
9
+
10
+