Skip to content

Commit

Permalink
Add support for 4, 2 and 1 MHz external clock
Browse files Browse the repository at this point in the history
Closes #129
  • Loading branch information
MCUdude committed Apr 11, 2020
1 parent f7e6116 commit ba18207
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ You might experience upload issues when using the internal oscillator. It's fact
| 11.0592 MHz | External crystal/oscillator | Great clock for UART communication with no error |
| 8 MHz | External crystal/oscillator | Common clock when working with 3.3V |
| 7.3728 MHz | External crystal/oscillator | Great clock for UART communication with no error |
| 4 MHz | External crystal/oscillator | |
| 3.6864 MHz | External crystal/oscillator | Great clock for UART communication with no error |
| 2 MHz | External crystal/oscillator | |
| 1.8432 MHz | External crystal/oscillator | Great clock for UART communication with no error |
| 1 MHz | External crystal/oscillator | |
| 8 MHz | Internal oscillator | Might cause UART upload issues. See comment above this table |
| 4 MHz | Internal oscillator | Derived from the 8 MHz internal oscillator |
| 2 MHz | Internal oscillator | Derived from the 8 MHz internal oscillator |
Expand Down
99 changes: 99 additions & 0 deletions avr/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,41 @@ menu.bootloader=Bootloader
328.menu.clock.7_3728MHz_external.build.clock_speed={build.f_cpu}
328.menu.clock.7_3728MHz_external.build.f_cpu=7372800L

328.menu.clock.4MHz_external=External 4 MHz
328.menu.clock.4MHz_external.upload.speed=9600
328.menu.clock.4MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
328.menu.clock.4MHz_external.build.clkpr=
328.menu.clock.4MHz_external.build.clock_speed={build.f_cpu}
328.menu.clock.4MHz_external.build.f_cpu=4000000L

328.menu.clock.3_6864MHz_external=External 3.6864 MHz
328.menu.clock.3_6864MHz_external.upload.speed=115200
328.menu.clock.3_6864MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
328.menu.clock.3_6864MHz_external.build.clkpr=
328.menu.clock.3_6864MHz_external.build.clock_speed={build.f_cpu}
328.menu.clock.3_6864MHz_external.build.f_cpu=3686400L

328.menu.clock.2MHz_external=External 2 MHz
328.menu.clock.2MHz_external.upload.speed=9600
328.menu.clock.2MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
328.menu.clock.2MHz_external.build.clkpr=
328.menu.clock.2MHz_external.build.clock_speed={build.f_cpu}
328.menu.clock.2MHz_external.build.f_cpu=2000000L

328.menu.clock.1_8432MHz_external=External 1.8432 MHz
328.menu.clock.1_8432MHz_external.upload.speed=115200
328.menu.clock.1_8432MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
328.menu.clock.1_8432MHz_external.build.clkpr=
328.menu.clock.1_8432MHz_external.build.clock_speed={build.f_cpu}
328.menu.clock.1_8432MHz_external.build.f_cpu=1843200L

328.menu.clock.1MHz_external=External 1 MHz
328.menu.clock.1MHz_external.upload.speed=9600
328.menu.clock.1MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
328.menu.clock.1MHz_external.build.clkpr=
328.menu.clock.1MHz_external.build.clock_speed={build.f_cpu}
328.menu.clock.1MHz_external.build.f_cpu=1000000L

328.menu.clock.8MHz_internal=Internal 8 MHz
328.menu.clock.8MHz_internal.upload.speed=38400
328.menu.clock.8MHz_internal.bootloader.low_fuses=0xe2
Expand Down Expand Up @@ -341,20 +362,41 @@ menu.bootloader=Bootloader
168.menu.clock.7_3728MHz_external.build.clock_speed={build.f_cpu}
168.menu.clock.7_3728MHz_external.build.f_cpu=7372800L

168.menu.clock.4MHz_external=External 4 MHz
168.menu.clock.4MHz_external.upload.speed=9600
168.menu.clock.4MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
168.menu.clock.4MHz_external.build.clkpr=
168.menu.clock.4MHz_external.build.clock_speed={build.f_cpu}
168.menu.clock.4MHz_external.build.f_cpu=4000000L

168.menu.clock.3_6864MHz_external=External 3.6864 MHz
168.menu.clock.3_6864MHz_external.upload.speed=115200
168.menu.clock.3_6864MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
168.menu.clock.3_6864MHz_external.build.clkpr=
168.menu.clock.3_6864MHz_external.build.clock_speed={build.f_cpu}
168.menu.clock.3_6864MHz_external.build.f_cpu=3686400L

168.menu.clock.2MHz_external=External 2 MHz
168.menu.clock.2MHz_external.upload.speed=9600
168.menu.clock.2MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
168.menu.clock.2MHz_external.build.clkpr=
168.menu.clock.2MHz_external.build.clock_speed={build.f_cpu}
168.menu.clock.2MHz_external.build.f_cpu=2000000L

168.menu.clock.1_8432MHz_external=External 1.8432 MHz
168.menu.clock.1_8432MHz_external.upload.speed=115200
168.menu.clock.1_8432MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
168.menu.clock.1_8432MHz_external.build.clkpr=
168.menu.clock.1_8432MHz_external.build.clock_speed={build.f_cpu}
168.menu.clock.1_8432MHz_external.build.f_cpu=1843200L

168.menu.clock.1MHz_external=External 1 MHz
168.menu.clock.1MHz_external.upload.speed=9600
168.menu.clock.1MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
168.menu.clock.1MHz_external.build.clkpr=
168.menu.clock.1MHz_external.build.clock_speed={build.f_cpu}
168.menu.clock.1MHz_external.build.f_cpu=1000000L

168.menu.clock.8MHz_internal=Internal 8 MHz
168.menu.clock.8MHz_internal.upload.speed=38400
168.menu.clock.8MHz_internal.bootloader.low_fuses=0xe2
Expand Down Expand Up @@ -509,20 +551,41 @@ menu.bootloader=Bootloader
88.menu.clock.7_3728MHz_external.build.clock_speed={build.f_cpu}
88.menu.clock.7_3728MHz_external.build.f_cpu=7372800L

88.menu.clock.4MHz_external=External 4 MHz
88.menu.clock.4MHz_external.upload.speed=9600
88.menu.clock.4MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
88.menu.clock.4MHz_external.build.clkpr=
88.menu.clock.4MHz_external.build.clock_speed={build.f_cpu}
88.menu.clock.4MHz_external.build.f_cpu=4000000L

88.menu.clock.3_6864MHz_external=External 3.6864 MHz
88.menu.clock.3_6864MHz_external.upload.speed=115200
88.menu.clock.3_6864MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
88.menu.clock.3_6864MHz_external.build.clkpr=
88.menu.clock.3_6864MHz_external.build.clock_speed={build.f_cpu}
88.menu.clock.3_6864MHz_external.build.f_cpu=3686400L

88.menu.clock.2MHz_external=External 2 MHz
88.menu.clock.2MHz_external.upload.speed=9600
88.menu.clock.2MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
88.menu.clock.2MHz_external.build.clkpr=
88.menu.clock.2MHz_external.build.clock_speed={build.f_cpu}
88.menu.clock.2MHz_external.build.f_cpu=2000000L

88.menu.clock.1_8432MHz_external=External 1.8432 MHz
88.menu.clock.1_8432MHz_external.upload.speed=115200
88.menu.clock.1_8432MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
88.menu.clock.1_8432MHz_external.build.clkpr=
88.menu.clock.1_8432MHz_external.build.clock_speed={build.f_cpu}
88.menu.clock.1_8432MHz_external.build.f_cpu=1843200L

88.menu.clock.1MHz_external=External 1 MHz
88.menu.clock.1MHz_external.upload.speed=9600
88.menu.clock.1MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
88.menu.clock.1MHz_external.build.clkpr=
88.menu.clock.1MHz_external.build.clock_speed={build.f_cpu}
88.menu.clock.1MHz_external.build.f_cpu=1000000L

88.menu.clock.8MHz_internal=Internal 8 MHz
88.menu.clock.8MHz_internal.upload.speed=38400
88.menu.clock.8MHz_internal.bootloader.low_fuses=0xe2
Expand Down Expand Up @@ -664,18 +727,36 @@ menu.bootloader=Bootloader
48.menu.clock.7_3728MHz_external.build.clkpr=
48.menu.clock.7_3728MHz_external.build.f_cpu=7372800L

48.menu.clock.4MHz_external=External 4 MHz
48.menu.clock.4MHz_external.upload.speed=9600
48.menu.clock.4MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
48.menu.clock.4MHz_external.build.clkpr=
48.menu.clock.4MHz_external.build.f_cpu=4000000L

48.menu.clock.3_6864MHz_external=External 3.6864 MHz
48.menu.clock.3_6864MHz_external.upload.speed=115200
48.menu.clock.3_6864MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
48.menu.clock.3_6864MHz_external.build.clkpr=
48.menu.clock.3_6864MHz_external.build.f_cpu=3686400L

48.menu.clock.2MHz_external=External 2 MHz
48.menu.clock.2MHz_external.upload.speed=9600
48.menu.clock.2MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
48.menu.clock.2MHz_external.build.clkpr=
48.menu.clock.2MHz_external.build.f_cpu=2000000L

48.menu.clock.1_8432MHz_external=External 1.8432 MHz
48.menu.clock.1_8432MHz_external.upload.speed=115200
48.menu.clock.1_8432MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
48.menu.clock.1_8432MHz_external.build.clkpr=
48.menu.clock.1_8432MHz_external.build.f_cpu=1843200L

48.menu.clock.1MHz_external=External 1 MHz
48.menu.clock.1MHz_external.upload.speed=9600
48.menu.clock.1MHz_external.bootloader.low_fuses=0b1111{bootloader.cksel_bits}
48.menu.clock.1MHz_external.build.clkpr=
48.menu.clock.1MHz_external.build.f_cpu=1000000L

48.menu.clock.8MHz_internal=Internal 8 MHz
48.menu.clock.8MHz_internal.upload.speed=38400
48.menu.clock.8MHz_internal.bootloader.low_fuses=0xe2
Expand Down Expand Up @@ -803,18 +884,36 @@ menu.bootloader=Bootloader
8.menu.clock.7_3728MHz_external.bootloader.ckopt_bit=0
8.menu.clock.7_3728MHz_external.build.f_cpu=7372800L

8.menu.clock.4MHz_external=External 4 MHz
8.menu.clock.4MHz_external.upload.speed=9600
8.menu.clock.4MHz_external.bootloader.sut_cksel_bits=111111
8.menu.clock.4MHz_external.bootloader.ckopt_bit=0
8.menu.clock.4MHz_external.build.f_cpu=4000000L

8.menu.clock.3_6864MHz_external=External 3.6864 MHz
8.menu.clock.3_6864MHz_external.upload.speed=115200
8.menu.clock.3_6864MHz_external.bootloader.sut_cksel_bits=111111
8.menu.clock.3_6864MHz_external.bootloader.ckopt_bit=0
8.menu.clock.3_6864MHz_external.build.f_cpu=3686400L

8.menu.clock.2MHz_external=External 2 MHz
8.menu.clock.2MHz_external.upload.speed=9600
8.menu.clock.2MHz_external.bootloader.sut_cksel_bits=111111
8.menu.clock.2MHz_external.bootloader.ckopt_bit=0
8.menu.clock.2MHz_external.build.f_cpu=2000000L

8.menu.clock.1_8432MHz_external=External 1.8432 MHz
8.menu.clock.1_8432MHz_external.upload.speed=115200
8.menu.clock.1_8432MHz_external.bootloader.sut_cksel_bits=111111
8.menu.clock.1_8432MHz_external.bootloader.ckopt_bit=0
8.menu.clock.1_8432MHz_external.build.f_cpu=1843200L

8.menu.clock.1MHz_external=External 1 MHz
8.menu.clock.1MHz_external.upload.speed=9600
8.menu.clock.1MHz_external.bootloader.sut_cksel_bits=111111
8.menu.clock.1MHz_external.bootloader.ckopt_bit=0
8.menu.clock.1MHz_external.build.f_cpu=1000000L

8.menu.clock.8MHz_internal=Internal 8 MHz
8.menu.clock.8MHz_internal.upload.speed=38400
8.menu.clock.8MHz_internal.bootloader.sut_cksel_bits=100100
Expand Down

0 comments on commit ba18207

Please sign in to comment.