大家好、Keystone 支持团队、
我想知道 C6678的"nysh.spi.map"中的"c2t_delay = 0"单位。
是"毫微秒"还是"时钟"?
我的客户希望将"c2t_delay"设置为"5毫微秒"。
您能否告知如何在 C6678的"nysh.spi.map"中正确设置"c2t_delay"?
此致、
卡纳
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、Keystone 支持团队、
我想知道 C6678的"nysh.spi.map"中的"c2t_delay = 0"单位。
是"毫微秒"还是"时钟"?
我的客户希望将"c2t_delay"设置为"5毫微秒"。
您能否告知如何在 C6678的"nysh.spi.map"中正确设置"c2t_delay"?
此致、
卡纳
您好、Rahul、
感谢你的答复。
"nysh.spi.map" SPI 时钟周期中是否存在 c2t 延迟?
如果我的客户在"nysh.spi.map"中设置"c2t_delay = 5"、SPICLK=666kHz、
tC2TDELAY 为7.5微秒
或
"nysh.spi.map"中的"c2t_delay = 5"表示 SPI 延迟寄存器中的 C2TDELAY 字段值。
如果是、我在用户指南中查看了示例公式;第3-14页。
(小部分
设置时间值计算如下:
tC2TDELAY =(C2TDELAY + 2)×SPI 模块时钟周期
示例:
SPI 模块时钟= 25MHz -> SPI 模块时钟周期= 40ns;
C2TDELAY = 06h;然后 tC2TDELAY = 320ns;
(小部分
如果我的客户在"nysh.spi.map"中设置"c2t_delay = 5"、SPICLK=666kHz、
tC2TDELAY =(5 + 2)×1.5 (SPI 模块时钟周期)= 10.5微秒
哪种理解是正确的?
此致、
卡纳
很抱歉耽误你的回答。 我们在此提供 ROM 引导加载程序源作为参考:
processors.wiki.ti.com/.../Keystone_Device_Architecture
以下是 BootROM 中设置的跟踪:
spiCfg.c2tdelay = p_boot_params->c2tdelay;//从引导参数表复制配置。 RET = hwSpiConfig (&spiCfg); SPI_REG_SPIDELAY_SET_C2T (v、cfg->c2tdelay); #define SPI_REG_SPIDELAY_SET_C2T (v、delay)(v)= BOOT_SET_BITfield (((v)、DELAY、31、24)
因此、它会显示引导参数表中的值、用于设置字段、这意味着它对应于您的第二个选项。
此致、
Rahul