Part Number:AM2634
Datasheet的特性介绍有10个ECAP,
但是在引脚配置表上只有一个
想问一下其余9个是哪个引脚?
Shine:
和其他管脚复用的。请参考下面说明。
There is an example in the SDK which configures the ECAP input, please see: https://software-dl.ti.com/mcu-plus-sdk/esd/AM263X/08_02_00_28/exports/docs/api_guide_am263x/EXAMPLES_DRIVERS_ECAP_CAPTURE_PWM.html. This example configures: GPIO61 -> INPUTXBAR Output 0 -> ECAP0 Input 202.
The ECAP and INPUTXBAR are configured in Syscfg:
ECAP
"ECAP Input" : Selects ECAP input signal. Selection is "Capture input is InputXBar Output 0".
INPUTXBAR
"Instance" : Selects Input XBAR Instance. Input XBAR 0 is selected, corresponding to ECAP selected input.
"XBAR Output" : Selects signal for XBAR Output. GPIO61 is selected.For more details, please refer to these documents on ti.com:
AM263x TRM, https://www.ti.com/lit/pdf/spruj17
AM263x TRM Registers Addendum, https://www.ti.com/lit/pdf/spruj42ECAP
Input signal options: Ref #1, Table 7-144. eCAP Input Selection
ECAPn (n=0…9) register written to select particular source: Ref #2, Figure 3-350. CONTROLSS_ECAP0_ECCTL0 for exampleInput XBAR
Ref #1, Section 7.4.10.1 INPUTXBAR
Ref #2, Section 3.12 C2K_INPUTXBAR Registers
Input XBAR n (n=0…31) register written to select particular source:CONTROLSS_INPUTXBAR_INPUTXBARn_GSEL
CONTROLSS_INPUTXBAR_INPUTXBARn_G0
CONTROLSS_INPUTXBAR_INPUTXBARn_G1The SENT output could be connected to a GPIO input.