ADCSRA = (1 << ADEN) | (0 << ADSC) | (1 << ADIE) | (7 << ADPS0); //enable, start, irq, /128
DIDR0 = 0b11111111;
DIDR2 = (1 << ADC13D);
- ADMUX &= 0xe0; ADMUX |= 1; ADCSRB |= (1<<MUX5);
+// ADMUX &= 0xe0; ADMUX |= 1; ADCSRB |= (1<<MUX5);
+ ADCSRA |= (1<<ADSC);
uint16_t lasttime = 0;
+
+ shift_register = 0xee00;
+ setVoltages();
sei();
while(1) {
int n = usb_serial_getchar();
// You can change these to give your code its own name. On Windows,
// these are only used before an INF file (driver install) is loaded.
-#define STR_MANUFACTURER L"TRB3"
-#define STR_PRODUCT L"Power48"
+#define STR_MANUFACTURER L"Xmatter"
+#define STR_PRODUCT L"DCDC_Test"
// All USB serial devices are supposed to have a serial number
// (according to Microsoft). On windows, a new COM port is created