Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
reprap:anet:anet_mainboard_overclocking [2018/01/04 15:37] – [Marlin changes] gmarsh23 | reprap:anet:anet_mainboard_overclocking [2018/12/02 02:27] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 59: | Line 59: | ||
=== Choosing a new crystal === | === Choosing a new crystal === | ||
- | The Anet V1.0 board requires a " | + | The Anet V1.0 board requires a " |
Here are some suitable crystal frequencies to choose from: | Here are some suitable crystal frequencies to choose from: | ||
Line 70: | Line 70: | ||
| 27MHz | +68.8% | +35% | May be unstable.\\ significant baud rate error (see below)\\ Can be salvaged from video equipment (DVD players, etc) | | | 27MHz | +68.8% | +35% | May be unstable.\\ significant baud rate error (see below)\\ Can be salvaged from video equipment (DVD players, etc) | | ||
- | If you're using the USB interface of the printer, using Octoprint for example, the crystal you choose affects how accurate the baud rate of the Mega1284P' | + | Note: If you're using the USB interface of the printer, using Octoprint for example, the crystal you choose affects how accurate the baud rate of the Mega1284P' |
- | ^ MHz (below), baud (right) ^ 115200 ^ 230400 ^ 250000 ^ 460800 ^ 500000 ^ 921600 ^ 1000000 ^ 1500000 ^ | + | ^ Crystal freq (below), baud (right) ^ 115200 ^ 230400 ^ 250000 ^ 460800 ^ 500000 ^ 921600 ^ 1000000 ^ 1500000 ^ |
- | | 16 | 2.1% | -3.5% | 0% | 8.5% | 0% | 8.5% | 0% | 33% | | + | | 16MHz | 2.1% | -3.5% | 0% | //8.5%// | 0% | //8.5%// | 0% | //33%// | |
- | | 20 | -1.4% | -1.4% | 0% | 8.5% | 0% | -9.6% | -16.7% | -16.7% | | + | | 20MHz | -1.4% | -1.4% | 0% | //8.5%// | 0% | //-9.6%// | //-16.7%// | //-16.7%// | |
- | | 24 | 0.16% | 0.16% | 0% | -7.0% | **0%** | 8.5% | 0% | 0% | | + | | 24MHz | 0.16% | 0.16% | 0% | //-7.0%// | **0%** | //8.5%// | 0% | 0% | |
- | | 25 | 0.5% | -3.1% | -3.8% | -3.1% | 4.2% | 13% | 4.2% | 4.2% | | + | | 25MHz | 0.5% | -3.1% | -3.8% | -3.1% | 4.2% | //13%// | 4.2% | 4.2% | |
- | | 27 | 1% | -2.3% | -3.6% | 4.6% | -3.6% | 8.4% | 12.5% | 12.5% | | + | | 27MHz | 1% | -2.3% | -3.6% | 4.6% | -3.6% | //8.4%// | //12.5%// | //12.5%// | |
To calculate for different clock frequencies and baud rates, use the following math: | To calculate for different clock frequencies and baud rates, use the following math: | ||
- | * UART divisor = (Processor clock) | + | * UART divisor = crystal frequency |
- | * Actual baud rate = (Processor clock) | + | * Actual baud rate = crystal frequency |
* Actual baud rate and desired baud rate should be +-5%, preferably +-2.5% | * Actual baud rate and desired baud rate should be +-5%, preferably +-2.5% | ||
Line 100: | Line 100: | ||
=== Downloading and compiling Optiboot === | === Downloading and compiling Optiboot === | ||
+ | |||
+ | **If you're using a 24MHz crystal, just copy this paste and save it as a .hex file:** https:// | ||
You'll need to download and compile Optiboot first. More information can be found on the Optiboot github page: https:// | You'll need to download and compile Optiboot first. More information can be found on the Optiboot github page: https:// | ||
Line 105: | Line 107: | ||
Use the following options to compile it for the Anet V1.0 board. Change the " | Use the following options to compile it for the Anet V1.0 board. Change the " | ||
- | make AVR_FREQ=24000000L BAUD_RATE=57600 LED=A4 | + | make AVR_FREQ=24000000L BAUD_RATE=57600 LED=A4 UART=0 |
Save the .hex file for later. | Save the .hex file for later. | ||
Line 117: | Line 119: | ||
=== Flashing new firmware === | === Flashing new firmware === | ||
- | Use AVRDUDE: | + | Use AVRDUDE |
+ | |||
+ | avrdude -p atmega1284p -c <your programmer> | ||
+ | avrdude -p atmega1284p -c <your programmer> | ||
- | avrdude -p atmega1284p -c <your programer> | + | The fuse values given move the bootloader start address to 0xFE00/ |
Once the board is programmed, connect the board to your PC via its USB connection, and attempt to " | Once the board is programmed, connect the board to your PC via its USB connection, and attempt to " |