From f3e4fbe5126fc8edf40a0b0ace2d3437ee988d2e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 14 Dec 2009 06:01:56 +0000 Subject: Use the PDI REPEAT instruction in the PDI programmer code to reduce protocol overhead and greatly improve transfer throughput. Switch bit-bang USART in the AVRISP project to Timer 1, so that Timer 0 can be used for hardware timeouts while waiting for the NVM bus or controller to become ready. --- Projects/AVRISP/Lib/PDITarget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Projects/AVRISP/Lib/PDITarget.h') diff --git a/Projects/AVRISP/Lib/PDITarget.h b/Projects/AVRISP/Lib/PDITarget.h index 2a2af6e27..03083fcb6 100644 --- a/Projects/AVRISP/Lib/PDITarget.h +++ b/Projects/AVRISP/Lib/PDITarget.h @@ -69,6 +69,8 @@ #define BITS_IN_FRAME 12 + #define PDI_NVM_TIMEOUT_MS 200 + #define PDI_CMD_LDS 0x00 #define PDI_CMD_LD 0x20 #define PDI_CMD_STS 0x40 @@ -102,5 +104,6 @@ void PDITarget_SendByte(uint8_t Byte); uint8_t PDITarget_ReceiveByte(void); void PDITarget_SendBreak(void); + bool PDITarget_WaitWhileNVMBusBusy(void); #endif -- cgit v1.2.3