7e 硬件学习 :)
STM32 ConnectionsBOOT0: CON2
NRST: Debugger (NRESET)
GPIOA:1: Piezo speaker
2: output to 0 to shut off Tx
3: power-switch in 'off' position (goes high on 'off')
5 (SPI1_SCK): SPI Flash, LCD
6 (SPI1_MISO): SPI Flash, LCD
7 (SPI1_MOSI): SPI Flash, LCD
9 (USART1_TX): Trainer Rx?
10 (USART1_RX): Trainer Tx?
11 (USBDM): USB+
12 (USBDP): USB-
13 (SWDIO): Debugger SWDIO (TMS)
14 (SWCLK): Debugger SWCLK (TCK)
GPIOB:0: LCD Chip Enable
1: LCD Backlight
2 (BOOT1): SPI Flash Chip-Enable
5: Button Matrix Col 1
6: Button Matrix Col 2
7: Button Matrix Col 3
8: Button Matrix Col 4
10: USB Enable (enable Low)
11: TxModule pin 10 - CYRF6936 Reset
12 (SPI2_NSS?): TxModule pin 1
13 (SPI2_SCK?): TxModule pin 3
14 (SPI2_MISO?): TxModule pin 9
15 (SPI2_MOSI?): TxModule pin 7
GPIOC:0 (ADC_IN_10): Right Vertical Stick
1 (ADC_IN_11): Left Vertical Stick
2 (ADC_IN_12): Left Horizontal stick
3 (ADC_IN_13): Right Horizontal Stick
4 (ADC_IN_14): Battery Voltage
5: LCD Data/Command mode
6: Button Matrix Row 1
7: Button Matrix Row 2
8: Button Matrix Row 3
9: Button Matrix Row 4
10: FMode Switch
11: Hold Switch
GPIOD:2: Haptic vibration motor
The battery voltage (ADC1_14) is calculated by the formula:
V = 0.0021x + 0.3026
Button Matrix:
B.5 B.6 B.7 B.8
C.6 Rudder TL Rudder TR Elevator TU Elevator TD
C.7 NC Ent R+ L-
C.8 Throttle TU Throttle TD Aileron TR Aileron TL
C.9 NC DN- UP+ Ext
TL: Trim Left TR: Trim RightTU: Trim Up TD: Trim down
|