aboutsummaryrefslogtreecommitdiff
path: root/tk-attiny.h
diff options
context:
space:
mode:
Diffstat (limited to 'tk-attiny.h')
-rw-r--r--tk-attiny.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tk-attiny.h b/tk-attiny.h
index 76c9c9b..49f1195 100644
--- a/tk-attiny.h
+++ b/tk-attiny.h
@@ -63,9 +63,10 @@
#define F_CPU 8000000UL
#define V_REF REFS1
#define BOGOMIPS (F_CPU/4000)
- // (1 << V_REF) | (0 << ADLAR) | (VCC_CHANNEL)
+ // DS table 19-3, 19-4, 1.1V ref / VCC
#define ADMUX_VCC 0b00001101
- // (1 << V_REF) | (0 << ADLAR) | (THERM_CHANNEL)
+ // (1 << V_REF) | (THERM_CHANNEL)
+ // DS table 19-3, 19-4, internal sensor / 1.1V ref
#define ADMUX_THERM 0b10001110
#define DELAY_ZERO_TIME 1020
//#define SWITCH_PORT PINA // set this in hwdef