]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
DCDC_rich: fixed switch control for loopback without jumper.
authorAdrian Weber <adrian.a.weber@exp2.physik.uni-giessen.de>
Thu, 16 Apr 2020 10:08:23 +0000 (12:08 +0200)
committerAdrian Weber <adrian.a.weber@exp2.physik.uni-giessen.de>
Thu, 16 Apr 2020 10:08:23 +0000 (12:08 +0200)
atmega32u4/dcdc_rich/README.md
atmega32u4/dcdc_rich/main.c

index 57e620110a68f238d5077db59b054aa6d5a84f28..6e345b8d9209d73cc45e2b9088fbe48e98b5d16a 100644 (file)
@@ -58,3 +58,5 @@ close with a "\n", so a correct data fromat would be e.g. "RF2012FE51\n"
 
 The DCDC boards receives messages over UART and microUSB. It sends out the messaages *just* over UART. The UART Baud rate is 57600.
 For a controlled communication, please use the perl script *./dcdc.pl*.
+
+If the command is supposed to switch the Switch (Loopback without jumper) then the dcdc.pl fails by checking the length because the answer can't copme back. For now, change the lince in the script (line 179: to "$num=1;").
index 14249f7b4f0fc3a4362e67640d76575d976f3d87..4e2a520b6c1861fc9234eed7e2c9926889f515de 100644 (file)
@@ -25,8 +25,8 @@
 #define SHIFT_EN_OUTPUT()  PORTF &= ~(1<<PF0)
 #define SHIFT_DIS_OUTPUT() PORTF |= (1<<PF0)
 
-#define SEL_ON()  PORTC &= ~(1<<PC6)
-#define SEL_OFF() PORTC |= (1<<PC6)
+#define SEL_ON()  PORTC |= (1<<PC6)
+#define SEL_OFF() PORTC &= ~(1<<PC6)
 
 #define ISMYADDR() (rxbuf[1] == '0' && (rxbuf[2] == '0' )) //|| rxbuf[2] == '1' || rxbuf[2] == '2' || rxbuf[2] == '3') )