Switch software UART over to timer 1 and remove timer prescaling to try to prevent integer rounding errors and thus minimize the possible error of the UART code.
This commit is contained in:
parent
f64e3db07a
commit
1c407b9669
3 changed files with 17 additions and 17 deletions
|
@ -156,7 +156,7 @@ void SetupHardware(void)
|
|||
_delay_ms(10);
|
||||
|
||||
/* Select the firmware mode based on the JTD pin's value */
|
||||
CurrentFirmwareMode = MODE_USART_BRIDGE;//(PINF & (1 << 7)) ? MODE_USART_BRIDGE : MODE_PDI_PROGRAMMER;
|
||||
CurrentFirmwareMode = (PINF & (1 << 7)) ? MODE_USART_BRIDGE : MODE_PDI_PROGRAMMER;
|
||||
|
||||
/* Re-enable JTAG debugging */
|
||||
MCUCR &= ~(1 << JTD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue