151 lines
5.4 KiB
INI
151 lines
5.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 50 #BOARD_EVB3211
|
|
mid 0 #sta
|
|
vid WQ
|
|
fver 1
|
|
|
|
#=============================== default rc====================================#
|
|
# overview
|
|
# pin_num pin_name func_default func_2
|
|
# 1 GPIO11 RF_SPI_DI(rf module)
|
|
# 2 GPIO10 RF_SPI_DO(rf module)
|
|
# 3 GPIO09 RF_SPI_CS(rf module)
|
|
# 4 GPIO42 207_MCLK(rf module)
|
|
# 5 GPIO43 207_FCLK(rf module)
|
|
# 8 GPIO39 pc_tx_en(pa module) spi_cs(extern flash)
|
|
# 9 GPIO38 pc_rx_en(pa module) spi_clk(extern flash)
|
|
# 10 GPIO37 pb_tx_en(pa module) spi_d1(extern flash)
|
|
# 11 GPIO36 pb_rx_en(pa module) spi_d2(extern flash)
|
|
# 12 GPIO35 pa_tx_en(pa module) spi_d0(extern flash)
|
|
# 13 GPIO34 pa_rx_en(pa module) spi_d3(extern flash)
|
|
# 14 GPIO33 m_sta(in place detect) key1(press down is low)
|
|
# 15 gpio32 set(sta) i2c_scl(lm75bdp)
|
|
# 16 gpio31 event i2c_sda(lm75bdp)
|
|
# 18 gpio30 sta0 485_ctr
|
|
# 19 gpio29 uart2_tx 485_tx
|
|
# 20 gpio28 uart2_rx 485_rx
|
|
# 24 GPIO46 AGC_GAIN(rf module)
|
|
# 25 GPIO45 207_ENABLE(rf module)
|
|
# 26 GPIO44 207_TXNRX(rf module)
|
|
# 27 GPIO47 207_DQ0(rf module)
|
|
# 28 GPIO48 207_DQ1(rf module)
|
|
# 29 GPIO49 207_DQ2(rf module)
|
|
# 30 gpio27 testp(pa module warning) key2(press down is low)
|
|
# 31 tms\gpio01 pc_led\d_rst jtag_tms
|
|
# 32 tck\gpio00 tx_led jtag_tck
|
|
# 33 tdo\gpio03 rx_led jtag tdo
|
|
# 34 tdi\gpio02 uart1_tx\pa_led jtag tdi
|
|
# 35 trst\gpio04 uart1_rx\pb_led jtag trst
|
|
# 36 GPIO07 LNA_GAIN_CTR0(pa module)
|
|
# 39 gpio06\tx0 uart0_tx ir_tx
|
|
# 40 gpio05\rx0 uart0_rx ir_rx
|
|
# 41 GPIO08 LNA_GAIN_CTR1(pa module)
|
|
# 42 GPIO26 LNA_GAIN_CTR2(pa module)
|
|
# 51 GPIO50 207_DQ3(rf module)
|
|
# 52 GPIO51 207_DQ4(rf module)
|
|
# 53 GPIO52 207_DQ5(rf module)
|
|
# 54 GPIO53 207_DQ6(rf module)
|
|
# 55 GPIO54 207_DQ7(rf module)
|
|
# 56 GPIO55 207_DQ8(rf module)
|
|
# 57 GPIO56 207_DQ9(rf module)
|
|
# 58 GPIO57 207_DQ10(rf module)
|
|
# 59 GPIO58 207_DQ11(rf module)
|
|
# 60 GPIO59 RF_PD(rf module)
|
|
# 61 GPIO61 SW_VC2(rf module, send and receive mode transitions)
|
|
# 62 GPIO62 SW_VC1(rf module, send and receive mode transitions)
|
|
# 68 ADC0/GPIO64 ZA_DOWN(phase A zero-cross, falling edge)
|
|
# 69 ADC1/GPIO65 ZC_DOWN(phase C zero-cross, falling edge)
|
|
# 70 ADC2/GPIO66 ZB_DOWN(phase B zero-cross, falling edge)
|
|
# 71 ADC3/GPIO67 ZC_RISE(phase C zero-cross, rising edge)
|
|
# 72 ADC4/GPIO68 ZB_RISE(phase B zero-cross, rising edge)
|
|
# 73 ADC5/GPIO69 ZA_RISE(phase A zero-cross, rising edge)
|
|
# 76 GPIO12 RF_SPI_CLK(rf module)
|
|
|
|
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
|
|
# bbcpu spi gpio, query by plc core
|
|
12 1 107 #GPIO_SPI_RF_CLK
|
|
11 1 110 #GPIO_SPI_RF_MOSI
|
|
10 1 109 #GPIO_SPI_RF_MISO
|
|
9 1 108 #GPIO_SPI_RF_CS
|
|
|
|
#33 1 x #does not support gpio for in place detection
|
|
32 1 17 #GPIO_GOLDEN_SET
|
|
31 1 0 #GPIO_PLC_EVENT
|
|
30 1 1 #GPIO_STA_OUT
|
|
|
|
27 1 10 #GPIO_GEODE_OVT
|
|
|
|
64 1 18 #GPIO_PA_ZC
|
|
|
|
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
|
|
0 1 2 #UART_METER_PORT
|
|
tx 6
|
|
rx 5
|
|
|
|
1 1 0 #UART_PRINT
|
|
tx 2
|
|
rx 4
|
|
|
|
2 1 1 #UART_CLI_PORT
|
|
tx 29
|
|
rx 28
|
|
|
|
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
|
|
|
|
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
|
|
# sampling of gnd, but 12v\3v samples are not designed,
|
|
# power mgmt is invalid
|
|
1 1 1 #ADC_PM_GND
|
|
|
|
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 0
|
|
|
|
1 1 1 #IOT_PLC_RX_LED
|
|
ledout 3
|
|
|
|
2 1 4 #IOT_PLC_PHASE_C_LED
|
|
ledout 1
|
|
|
|
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_0 64
|
|
|
|
pa # (PARTICULAR RESOURCE)
|
|
tx_en_0 35 #Phase A Enable receiving
|
|
rx_en_0 34 #Phase A Enable sending
|
|
gain_0 7 #Phase A gain control
|
|
gain_1 8 #Phase B gain control
|
|
gain_2 26 #Phase C gain control |