Skip to content

Commit 1dc0421

Browse files
committed
added external clock docs and built package
1 parent 054a58b commit 1dc0421

File tree

6 files changed

+54
-9
lines changed

6 files changed

+54
-9
lines changed
114 KB
Loading

docs/external-clock/clock.png

108 KB
Loading

docs/external-clock/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Use when an external 32MHz crystal is connected to LGT8F328P Port B Pin 6 & 7 (see databook for details, in particular about the decoupling capacitors). You can comfortably switch between the internal and external OSC using the tools menu:
2+
3+
<img width="704" alt="image" src="./clock-source.png">
4+
5+
And then pick the speed you want to run at (I tested 16MHz as well as 32MHz, but I kept the other options as well). This directly sets the prescaler to the correct value:
6+
7+
<img width="539" alt="image" src="./clock.png">

lgt8f-1.0.5.zip

584 KB
Binary file not shown.

package_lgt8fx_index.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,39 @@
88
"online": "https://github.com/dbuezas/LGT8fx"
99
},
1010
"platforms": [
11+
{
12+
"name": "LGT8fx Boards",
13+
"architecture": "avr",
14+
"version": "1.0.5",
15+
"category": "lgt8fx",
16+
"url": "https://github.com/dbuezas/lgt8fx/releases/download/v1.0.5/lgt8f-1.0.5.zip",
17+
"archiveFileName": "lgt8f-1.0.5.zip",
18+
"checksum": "SHA-256:6bde3060b7a9102eed89c32a163bd99db4129231ed7847a6245b2fa44433fff5",
19+
"size": "598269",
20+
"help": {
21+
"online": "https://github.com/dbuezas/LGT8fx/issues"
22+
},
23+
"boards": [
24+
{
25+
"name": "LGT8F328P-LQFP48 MiniEVB"
26+
},
27+
{
28+
"name": "LGT8F328P-LQFP32 wemos-TTGO-XI"
29+
},
30+
{
31+
"name": "LGT8F328P-LQFP32 MiniEVB"
32+
},
33+
{
34+
"name": "LGT8F328D"
35+
},
36+
{
37+
"name": "LGT8F328D-SSOP20"
38+
},
39+
{
40+
"name": "LGT8F88D-SSOP20"
41+
}
42+
]
43+
},
1144
{
1245
"name": "LGT8fx Boards",
1346
"architecture": "avr",
@@ -165,4 +198,4 @@
165198
"tools": []
166199
}
167200
]
168-
}
201+
}

readme.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Now the boards appear in the IDE and you can also select the clock speed.
1313
<img src="./docs/arduino/boards_manager.png" alt="Boards Manager" width="400"/>
1414
<img src="./docs/arduino/variants.png" alt="Variants" width="400"/>
1515
<img src="./docs/arduino/clock.png" alt="Clock" width="400"/>
16+
<img src="./docs/external-clock/clock-source.png" alt="External Clock" width="400"/>
1617

1718
32Mhz is twice as fast as a conventional arduino nano!
1819

@@ -27,6 +28,7 @@ Now the boards appear in the IDE and you can also select the clock speed.
2728
- [x] [Differential Amplifier](./docs/differential-amplifier/readme.md). See this [Example](./lgt8f/libraries/differential_amplifier/examples/all_vs_all/all_vs_all.ino).
2829
- [ ] Computation Accelerator (page 52 of datasheet v1.0.4) [Work by others](https://www.avrfreaks.net/comment/2272366#comment-2272366)
2930
- [x] [SoftwareSerial @32Mhz](./lgt8f/libraries/SoftwareSerial/SoftwareSerial.cpp#L60) (stable up to 230400 baud)
31+
- [x] [In-menu external clock support](./docs/external-clock/readme.md) (by [#seisfeld](https://github.com/seisfeld))
3032

3133
# Differences to original core [Larduino_HSP v3.6c](https://github.com/Edragon/LGT/tree/master/HSP%20Patch%20File/Larduino_HSP_3.6c/Larduino_HSP_v3.6c)
3234

@@ -39,14 +41,14 @@ Now the boards appear in the IDE and you can also select the clock speed.
3941

4042
# Power consumption @ 5v
4143

42-
| Clock | Pro mini style w/o power LED | Pro mini | Nano style |
43-
|------- |---------------- |------------------------ |------------ |
44-
| 32MHz | 12.7mA | 15.0mA | 32.6mA |
45-
| 16MHz | 9.2mA | 11.5mA | 27.8mA |
46-
| 8MHz | 7.1mA | 9.4mA | 25.4mA |
47-
| 4MHz | 5.9mA | 8.2mA | 23.3mA |
48-
| 2MHz | 5.3mA | 7.6mA | 23.4mA |
49-
| 1MHz | 5.0mA | 7.3mA | 22.8mA |
44+
| Clock | Pro mini style w/o power LED | Pro mini | Nano style |
45+
| ----- | ---------------------------- | -------- | ---------- |
46+
| 32MHz | 12.7mA | 15.0mA | 32.6mA |
47+
| 16MHz | 9.2mA | 11.5mA | 27.8mA |
48+
| 8MHz | 7.1mA | 9.4mA | 25.4mA |
49+
| 4MHz | 5.9mA | 8.2mA | 23.3mA |
50+
| 2MHz | 5.3mA | 7.6mA | 23.4mA |
51+
| 1MHz | 5.0mA | 7.3mA | 22.8mA |
5052

5153
# Example boards:
5254

@@ -79,11 +81,13 @@ Now the boards appear in the IDE and you can also select the clock speed.
7981
- Larduino ISP for 328d https://github.com/Edragon/LGT/tree/master/Toolchain/ISP/LarduinoISP-master
8082
- https://www.eevblog.com/forum/projects/anyone-here-interested-in-the-logic-green-avrs-lgt8f328p/
8183
- http://coultersmithing.com/forums/viewtopic.php?f=6&t=1149
84+
8285
# Disclamer
8386

8487
I have no association with Arduino, Logic Green, Atmel or anything. I just wanted to have a convenient way to use these boards and get them to work without hacks at max speed
8588

8689
# Download stats
90+
8791
http://www.somsubhra.com/github-release-stats/?username=dbuezas&repository=lgt8fx
8892

8993
# Thanks
@@ -93,3 +97,4 @@ http://www.somsubhra.com/github-release-stats/?username=dbuezas&repository=lgt8f
9397
- [#dcfusor](https://github.com/dcfusor) for help with fast io backporting
9498
- [#HI-SEBA](https://github.com/HI-SEBA) for help with software serial
9599
- [#dwillmore](https://github.com/dwillmore) for creating the wiki, serial adapter troubleshooting, more examples of boards and wemos-TTGO-XI board support
100+
- [#seisfeld](https://github.com/seisfeld) for adding in-menu support for an external clock

0 commit comments

Comments
 (0)