DIY Auto-Correlator 1.0
Auto-Correlator Card implementation using Teensy 4.x microcontrollers.
pins.hpp
Go to the documentation of this file.
1#pragma once
2
3
4//Available LEDs → Assigned Flex PWM Pins
5//Pin 13 → LED_BUILTIN (On Teensy 4.1)
6const int LED_RED = 41;
7const int LED_BLUE = 40;
8const int LED_YELLOW = 22;
9const int LED_WHITE = 23;
10const int LED_GREEN = 24;
11
12
13//Initalization Pins → Must be unsued pins
14const int SAFE_INPUT_DUMP_PIN = 0;
16
17
18//TTL_c Pins
19const int TTL_C_PULSE_INPUT_PIN = 10; //TMR1CH0
20
21
22//Error Pins
26
27
28// LED State Indicators
29const int SETUP_LED = LED_RED;
30const int LOOP_LED = LED_GREEN;
31
32
33//Toggle pins → To crosscheck gate times on the oscilloscope
34#if ISR_PIN_TOGGLE == 1
35 #define ISR_TEST_TOOGLE_PIN 3
36#endif
37
38/*
39FlexPWM1 Module0 - Controls PWM pins 1, 44, 45.
40FlexPWM1 Module1 - Controls PWM pins 0, 42, 43.
41FlexPWM1 Module2 - Controls PWM pins 24, 46, 47.
42FlexPWM1 Module3 - Controls PWM pins 7, 8, 25.
43FlexPWM2 Module0 - Controls PWM pins 4, 33.
44FlexPWM2 Module1 - Controls PWM pin 5.
45FlexPWM2 Module2 - Controls PWM pins 6, 9.
46FlexPWM2 Module3 - Controls PWM pins 36, 37.
47FlexPWM3 Module0 - Controls PWM pin 53.
48FlexPWM3 Module1 - Controls PWM pins 28, 29.
49FlexPWM3 Module2 - No pins accessible.
50FlexPWM3 Module3 - Controls PWM pin 41.
51FlexPWM4 Module0 - Controls PWM pin 22.
52FlexPWM4 Module1 - Controls PWM pin 23.
53FlexPWM4 Module2 - Controls PWM pins 2, 3.
54FlexPWM4 Module3 - No pins accessible.*/
const int ER_PRECISION_PIN
Definition: pins.hpp:23
const int LED_WHITE
Definition: pins.hpp:9
const int LOOP_LED
Definition: pins.hpp:30
const int SAFE_OUTPUT_DUMP_PIN
Definition: pins.hpp:15
const int SETUP_LED
Definition: pins.hpp:29
const int ER_INPUT_VALIDATION
Definition: pins.hpp:25
const int TTL_C_PULSE_INPUT_PIN
Definition: pins.hpp:19
const int SAFE_INPUT_DUMP_PIN
Definition: pins.hpp:14
const int LED_RED
Definition: pins.hpp:6
const int LED_BLUE
Definition: pins.hpp:7
const int LED_GREEN
Definition: pins.hpp:10
const int ER_OVERFLOW_PIN
Definition: pins.hpp:24
const int LED_YELLOW
Definition: pins.hpp:8