mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-25 23:05:56 +00:00
Update signal measuring and apply new measurements to bit-timings
This commit is contained in:
+8
-7
@@ -49,17 +49,18 @@
|
||||
#error "Not implemented"
|
||||
#endif
|
||||
|
||||
#define AVCLAN_STARTBIT_LOGIC_0 (166e3 / TCB_TICK)
|
||||
#define AVCLAN_STARTBIT_LOGIC_1 (19e3 / TCB_TICK)
|
||||
// Measured at ±0.02 μs @ F_CPU=20MHz, TCB_CLKSEL=TCB_CLKSEL_CLKDIV1_gc
|
||||
#define AVCLAN_STARTBIT_LOGIC_0 (169e3 / TCB_TICK)
|
||||
#define AVCLAN_STARTBIT_LOGIC_1 (20.6e3 / TCB_TICK)
|
||||
|
||||
#define AVCLAN_BIT1_LOGIC_0 (20.5e3 / TCB_TICK)
|
||||
#define AVCLAN_BIT1_LOGIC_1 (19e3 / TCB_TICK)
|
||||
#define AVCLAN_BIT1_LOGIC_0 (19.7e3 / TCB_TICK)
|
||||
#define AVCLAN_BIT1_LOGIC_1 (18.1e3 / TCB_TICK)
|
||||
|
||||
#define AVCLAN_BIT0_LOGIC_0 (34e3 / TCB_TICK)
|
||||
#define AVCLAN_BIT0_LOGIC_1 (5.5e3 / TCB_TICK)
|
||||
#define AVCLAN_BIT0_LOGIC_0 (32.85e3 / TCB_TICK)
|
||||
#define AVCLAN_BIT0_LOGIC_1 (6.2e3 / TCB_TICK)
|
||||
|
||||
#define AVCLAN_READBIT_THRESHOLD (26e3 / TCB_TICK)
|
||||
|
||||
#define AVCLAN_BIT_LENGTH (39.5e3 / TCB_TICK)
|
||||
#define AVCLAN_BIT_LENGTH_MAX (39.1e3 / TCB_TICK)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user