From e5057fec8ead1ec52dbad3b128ed94f9895fc9f4 Mon Sep 17 00:00:00 2001 From: Dean Camera <dean@fourwalledcubicle.com> Date: Thu, 26 Nov 2009 13:59:11 +0000 Subject: [PATCH] Enable pullup on the PD5 pin of the AVR in the XPLAINBridge project - this is connected to the XMEGA's /RESET line, need to enable pullup to prevent spurrious resets. --- Projects/XPLAINBridge/Lib/SoftUART.S | 2 +- Projects/XPLAINBridge/XPLAINBridge.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Projects/XPLAINBridge/Lib/SoftUART.S b/Projects/XPLAINBridge/Lib/SoftUART.S index f9a89d9f9..673067b84 100644 --- a/Projects/XPLAINBridge/Lib/SoftUART.S +++ b/Projects/XPLAINBridge/Lib/SoftUART.S @@ -118,7 +118,7 @@ RX_PIN_INT: // turn on interrupt on compare match - sbi TC_INTFLAG_REG,TC_RX_IF_BIT //------------------------ + sbi TC_INTFLAG_REG,TC_RX_IF_BIT lds r16,TC_INT_MASK_REG ori r16,(1<<TC_RX_COMPEN) diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 6d2556e2b..da5b1ccb3 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -119,6 +119,8 @@ void SetupHardware(void) SoftUART_Init(); LEDs_Init(); USB_Init(); + + PORTD |= (1 << 5); // PD5 is connected to the XMEGA /RESET, enable pullup } /** Event handler for the library USB Configuration Changed event. */ -- GitLab