125 lines
4.0 KiB
INI
125 lines
4.0 KiB
INI
# YP8811 iic board, external rf chip, external pa chip.
|
|
general
|
|
bid 106 #BOARD_YPIIC03
|
|
mid 2 #MODULE_TYPE_COLLECTOR_II
|
|
vid YP
|
|
fver 1
|
|
|
|
#=============================== default rc====================================#
|
|
# overview: extern flash chip
|
|
# gpio function gpio function gpio function
|
|
# 11 rf_spi_do 10 rf_spi_di 9 rf_spi_cs
|
|
# 42 rf_mclk 43 rf_fclk 39 ext_flash_cs
|
|
# 38 ext_flash_clk 36 ext_flash_do 37 ext_flash_di
|
|
# 34 ir_rx 32 485_ctr 31 charge_en
|
|
# 30 ir_tx 29 zc_up 28 uart2_tx
|
|
# 46 rf_agc_gain 45 rf_enable 44 rf_txnrx
|
|
# 47 rf_dq0 48 rf_dq1 49 rf_dq2
|
|
# 0 sta led 1 tx\rx led 3 pa_testp(warning)
|
|
# 2 pa_rx_en 4 pa_tx_en 7 pa_lan_gain_ctr0
|
|
# 6 uart0_tx 5 uart0_rx 8 pa_lan_gain_ctr1
|
|
# 26 pa_lan_gain_ctr2 50 rf_dq3 51 rf_dq4
|
|
# 52 rf_dq5 53 rf_dq6 54 rf_dq6
|
|
# 55 rf_dq8 56 rf_dq9 57 rf_dq10
|
|
# 58 rf_dq11 59 rf_pd 61 rf_channel_sw1
|
|
# 62 rf_channel_sw2 64 pwr_led 65 adc_12v
|
|
# 66 adc_3.3v 68 485_rxd 69 485_txd
|
|
# 12 rf_spi_clk 35 rf_clk
|
|
|
|
rc_hdr
|
|
# the first version of each product line defaults to 0
|
|
hw_ver 0x00000000
|
|
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
|
|
|
|
# extern flash spi gpio
|
|
39 1 69 #GPIO_SPI_FLASH_CS
|
|
38 1 68 #GPIO_SPI_FLASH_CLK
|
|
36 1 71 #GPIO_SPI_FLASH_MISO
|
|
37 1 70 #GPIO_SPI_FLASH_MOSI
|
|
|
|
32 1 7 #GPIO_RS485_TXE
|
|
31 1 12 #GPIO_PM_CHARGE_EN
|
|
29 1 18 #GPIO_PA_ZC
|
|
|
|
30 1 8 #GPIO_IR_TXD
|
|
34 1 9 #GPIO_IR_RXD
|
|
|
|
35 1 121 #GPIO_RF_CLK
|
|
|
|
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
|
|
# current serial port is not multiplexed, uart0(6\5) as download port reserved
|
|
1 1 3 #UART_IR_PORT
|
|
tx 30
|
|
rx 34
|
|
|
|
2 1 0 #UART_PRINT
|
|
tx 28
|
|
|
|
3 1 2 #UART_METER_PORT
|
|
tx 69
|
|
rx 68
|
|
|
|
#spi #SPI resource allocation, controlled by gpio resource now.
|
|
# 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 #SPI_PORT_TYPE_PYH_RF
|
|
# cs 9
|
|
# clk 12
|
|
# miso 10
|
|
# mosi 11
|
|
|
|
ledc #LEDC resource allocation
|
|
# A:ledc channel;
|
|
# B:belongs to the core;
|
|
# C:function
|
|
# A B C
|
|
0 1 6 #IOT_RS485_LED
|
|
ledout 1
|
|
|
|
1 1 7 #IOT_PLC_TR_LED
|
|
ledout 0
|
|
|
|
2 1 5 #IOT_PWR_LED
|
|
ledout 64
|
|
|
|
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
|
|
1 1 0 #ADC_PM_12V (Temporary annotation)
|
|
2 1 1 #ADC_PM_3V (Temporary annotation: Shielded supercapacitor)
|
|
|
|
#zc # (PARTICULAR RESOURCE) Chip level zero crossing detection resource
|
|
# allocation, controlled by gpio resource now.
|
|
# up_0: Zero-crossing detection rising edge input channel 0,
|
|
# which corresponds to phase A rising edge zero-crossing
|
|
# circuit by default
|
|
# up_0 29
|
|
|
|
pa # (PARTICULAR RESOURCE)
|
|
rx_en_0 2 #Phase A Enable receiving
|
|
tx_en_0 4 #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
|