188 lines
6.4 KiB
INI
188 lines
6.4 KiB
INI
# kl3 k76 evb board, some pins have two functions,
|
||
# the second function is shielded, only one function can be enabled at a time.
|
||
|
||
general
|
||
bid 84 #BOARD_EVB5202
|
||
mid 0 #MODULE_TYPE_STA
|
||
vid HZ
|
||
fver 1
|
||
|
||
#=============================== default rc====================================#
|
||
# overview
|
||
# pin_num pin_name func_default func_2
|
||
# 3 GPIO12 485_RXD
|
||
# 4 GPIO11 485_TXD
|
||
# 5 GPIO10 485_CTR
|
||
# 6 GPIO09 I2C_SDA
|
||
# 7 GPIO42 I2C_SCL
|
||
# 8 GPIO43 NC
|
||
# 10 GPIO39 SPI_CS(spi_flash)
|
||
# 11 GPIO38 SPI_D1(spi_flash MISO)
|
||
# 12 GPIO37 SPI_D2(spi_flash)
|
||
# 13 GPIO36 SPI_D0(spi_flash MOSI)
|
||
# 14 GPIO35 SPI_CLK(spi_flash)
|
||
# 15 GPIO34 SPI_D3(spi_flash)
|
||
# 16 GPIO33 FAST_BOOT KEY_2(press down is low)
|
||
# 17 GPIO32 KEY_1(press down is low)
|
||
# 18 GPIO31 SEND
|
||
# 23 GPIO46 UART2_TXD
|
||
# 24 GPIO45 UART2_RXD
|
||
# 25 GPIO44 UART1_TXD
|
||
# 26 GPIO27 UART1_RXD
|
||
# 28 GPIO01\TMS JTAG_TMS
|
||
# 29 GPIO00\TCK JTAG_TCK
|
||
# 30 GPIO03\TDO JTAG TDO
|
||
# 31 GPIO02\TDI JTAG TDI
|
||
# 32 GPIO04\TRST JTAG TRST
|
||
# 33 GPIO07 NC
|
||
# 35 GPIO06\TX0 UART0_TXD
|
||
# 36 GPIO05\RX0 UART0_RXD
|
||
# 37 GPIO08 NC
|
||
# 39 GPIO26 NC
|
||
# 40 GPIO40 NC
|
||
# 50 TPID_ADC7\GPIO79 AP(Phase A current acquisition/branch identification +)
|
||
# 51 TPID_ADC6\GPIO78 AN(Phase A current acquisition/branch identification -)
|
||
# 52 TPID_ADC5\GPIO77 BP(Phase B current acquisition/branch identification +)
|
||
# 53 TPID_ADC4\GPIO76 BN(Phase B current acquisition/branch identification -)
|
||
# 54 TPID_ADC3\GPIO75 CP(Phase C current acquisition/branch identification +)
|
||
# 55 TPID_ADC2\GPIO74 CN(Phase C current acquisition/branch identification -)
|
||
# 56 TPID_ADC1\GPIO73 NP(DC current sampling 30mV +)
|
||
# 57 TPID_ADC0\GPIO72 NN(DC current sampling 30mV -)
|
||
# 59 GPIO55 IR_RX
|
||
# 60 GPIO57 IR_TX
|
||
# 61 GPIO59 RX_LED(low light)
|
||
# 62 GPIO63 TX_LED(low light)
|
||
# 69 ADC0\GPIO64 NC
|
||
# 70 ADC1\GPIO65 ZA_RISE(Phase A rising edge zero-crossing signal)
|
||
# 71 ADC2\GPIO66 ZA_LOAD(Station area identification zero-crossing signal)
|
||
# 72 ADC3\GPIO67 VA(Phase A voltage acquisition)
|
||
# 73 ADC4\GPIO68 VB(Phase B voltage acquisition, actual phase A voltage)
|
||
# 74 ADC5\GPIO69 VC(Phase C voltage acquisition, actual phase A voltage)
|
||
# 75 ADC6\GPIO70 ADC_CC(DC current sampling single-ended input (0-2.25V))
|
||
# 76 ADC7\GPIO71 V_FAST_DROP(Voltage fast drop input)
|
||
|
||
rc_hdr
|
||
hw_ver 0x00000000 #00.00.00.00 Hardware identification, HEX
|
||
mode 0
|
||
d_hw_ver 0xffffffff
|
||
|
||
gpio #GPIO resource allocation
|
||
# A:gpio number;
|
||
# B:belongs to the core;
|
||
# C:function (to see iot_board_api.h about gpio type)
|
||
# A B C
|
||
35 1 68 #GPIO_SPI_FLASH_CLK
|
||
39 1 69 #GPIO_SPI_FLASH_CS
|
||
36 1 70 #GPIO_SPI_FLASH_MOSI
|
||
38 1 71 #GPIO_SPI_FLASH_MISO
|
||
#37 1 #D2
|
||
#34 1 #D3
|
||
|
||
#load send gpio
|
||
31 1 82 #GPIO_TSFM_LOAD_TRIGGER
|
||
|
||
57 1 8 #GPIO_IR_TXD
|
||
55 1 9 #GPIO_IR_RXD
|
||
|
||
65 1 18 #GPIO_PA_ZC
|
||
|
||
10 1 7 #GPIO_RS485_TXE
|
||
|
||
uart #UART resource allocation
|
||
# A:uart number;
|
||
# B:belongs to the core;
|
||
# C:function (to see iot_uart_api.h about uart type)
|
||
# A B C
|
||
4 1 3 #UART_IR_PORT
|
||
tx 57
|
||
rx 55
|
||
|
||
3 1 4 #UART_RS485_PORT
|
||
tx 11
|
||
rx 12
|
||
|
||
2 1 1 #UART_CLI_PORT
|
||
tx 46
|
||
rx 45
|
||
|
||
1 1 0 #UART_PRINT
|
||
tx 44
|
||
rx 27
|
||
|
||
0 1 2 #UART_METER_PORT
|
||
tx 6
|
||
rx 5
|
||
|
||
spi #SPI resource allocation
|
||
# A:spi number;
|
||
# B:belongs to the core;
|
||
# C:function
|
||
# A B C
|
||
# bbcpu use spi1 to connect external rf chip, fixed value used now.
|
||
1 2 0
|
||
|
||
i2c #i2c资源分配
|
||
# A:i2c number;
|
||
# B:belongs to the core;
|
||
# C:function
|
||
# A B C
|
||
0 1 0 #IOT_I2C_PORT_0
|
||
scl 42
|
||
sda 9
|
||
|
||
adc #ADC resource allocation
|
||
# A:adc channel;
|
||
# B:belongs to the core;
|
||
# C:function (to see iot_board_api.h about adc type)
|
||
# A B C
|
||
|
||
ledc #LEDC resource allocation
|
||
# A:ledc channel;
|
||
# B:belongs to the core;
|
||
# C:function
|
||
# A B C
|
||
0 1 0 #IOT_PLC_TX_LED
|
||
ledout 63
|
||
|
||
1 1 1 #IOT_PLC_RX_LED
|
||
ledout 59
|
||
|
||
zc # (PARTICULAR RESOURCE) Chip level zero crossing detection resource allocation.
|
||
# up_0: Zero-crossing detection rising edge input channel 0,
|
||
# which corresponds to phase A rising edge zero-crossing
|
||
# circuit by default
|
||
# up_1: Zero-crossing detection rising edge input channel 1,
|
||
# which corresponds to phase B rising edge zero-crossing
|
||
# circuit by default
|
||
# up_2: Zero-crossing detection rising edge input channel 2,
|
||
# which corresponds to phase C rising edge zero-crossing
|
||
# circuit by default
|
||
# down_0: Zero-crossing detection descending edge input channel 0,
|
||
# which by default corresponds to the zero-crossing circuit
|
||
# of phase A descending edge
|
||
# down_1: Zero-crossing detection descending edge input channel 1,
|
||
# which by default corresponds to the zero-crossing circuit
|
||
# of phase B descending edge
|
||
# down_2: Zero-crossing detection descending edge input channel 2,
|
||
# which by default corresponds to the zero-crossing circuit
|
||
# of phase C descending edge
|
||
#up_0 65
|
||
|
||
pa # (PARTICULAR RESOURCE)
|
||
rx_en_0 80 #enlic_pad_0. Phase A Enable receiving
|
||
tx_en_0 81 #enlic_pad_1. Phase A Enable sending
|
||
gain_0 82 #glna_pad_0. Phase A gain control
|
||
gain_1 83 #glna_pad_1. Phase B gain control
|
||
gain_2 84 #glna_pad_2. Phase C gain control
|
||
|
||
pwm #pwm资源分配
|
||
# A:pwm编号
|
||
# B:所属core
|
||
# C:用途(见iot_board_api.h中的PWM_CH_TYPE_TSFM_XXX)
|
||
# A B C
|
||
# 小负载流程中,
|
||
# 获取GPIO30和PWM(PWM_CH_TYPE_TSFM_LOAD_CTRL)通道,
|
||
# 然后软件主动绑定。
|
||
1 1 3 #PWM_CH_TYPE_TSFM_LOAD_CTRL
|
||
|