diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-11-12 06:24:01 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-11-12 06:24:01 +0000 |
commit | d41cd9a41aca81eaa21e65e6c53672fe604fa3d5 (patch) | |
tree | 6863f09655ddb2a4faea8cb009fb688ef38f7509 /Projects/AVRISP-MKII/Lib/XPROG | |
parent | 50390867e761f9cd92882d9f43db8593600fa61a (diff) | |
download | lufa-d41cd9a41aca81eaa21e65e6c53672fe604fa3d5.tar.gz lufa-d41cd9a41aca81eaa21e65e6c53672fe604fa3d5.tar.bz2 lufa-d41cd9a41aca81eaa21e65e6c53672fe604fa3d5.zip |
Fixed PDI/TPI programming speed of ~250KHz in the AVRISP-MKII Clone project, instead of the desired 500KHz.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/XPROG')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c b/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c index f0ef2b652..5d59f7f17 100644 --- a/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c +++ b/Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c @@ -79,7 +79,7 @@ void XPROGTarget_EnableTargetTPI(void) DDRD &= ~(1 << 2); /* Set up the synchronous USART for TINY communications - 8 data bits, even parity, 2 stop bits */ - UBRR1 = (F_CPU / XPROG_HARDWARE_SPEED); + UBRR1 = ((F_CPU / 2 / XPROG_HARDWARE_SPEED) - 1); UCSR1B = (1 << TXEN1); UCSR1C = (1 << UMSEL10) | (1 << UPM11) | (1 << USBS1) | (1 << UCSZ11) | (1 << UCSZ10) | (1 << UCPOL1); |