文章详情页 您现在的位置是:网站首页>文章详情
Spi非自动计算配置参数含义
WBK 发表于:2020年1月7日 15:28 分类:【嵌入式软件】 2848次阅读
在EB配置Spi模块过程中如果禁用SpiAutoCalcBaudParams,则需要配置SPI相关的参数(TQ, Q, A, B, C)。
如果禁用SpiAutoCalcDelayParams (CS_VIA_PERIPHERAL_ENGINE),则需要配置SPI相关的参数(IPRE, IDLE, LPRE, LEAD, TPRE,TRAIL)。
相关参数的定义如下(来自infineon文档):
SpiAutoCalcBaudParams:
This parameter enables/disables the automatic calculation of qspi baudrate parameters.
If the parameter is set to TRUE, then the configuration tool will automatically generate the Baudrate parameters (TQ, Q, A, B, C) based on theparameter SpiBaudrate.
SpiQSpiParamTq:
This parameter defines Qspi TQ Hw parameter
Global Time Quantum Length
Common n-divider scaling the baud rates of all channels in direction of higher or
lower baud rates.
0D division by 1
1D division by 2
...
255D division by 256
SpiQSpiParamQ:
This parameter defines Qspi Q Hw parameter. This defines the time quantum length used by A, B, and C to define the baud rate and duty cycle
000000B - 1
000001B - 2
....
111111B - 64
SpiQSpiParamA:
This parameter defines Qspi A Hw parameter
Bit Segment 1
Length expressed in quanta of Q
00B - 1
01B - 2
10B - 3
11B - 4
SpiQSpiParamB:
This parameter defines Qspi B Hw parameter.
Bit Segment 2
Length expressed in quanta of Q
00B - 0
01B - 1
10B - 2
11B - 3
SpiQSpiParamC:
This parameter defines Qspi C Hw parameter.
Bit Segment 3
Length expressed in quanta of Q
00B - 0 (if B=0, than C is minimum 1 per hardware)
01B - 1
10B - 2
11B - 3
Note: If SpiQSpiParamB = 0, then SpiQSpiParamC should have minimum of value 1
SpiAutoCalcDelayParams:
This parameter enables/disables the automatic calculation of qspi Delay parameters. If the parameter is set to TRUE, then the configuration tool will automatically generate the delay parameters (IPRE, IDLE, LPRE, LEAD, TPRE,TRAIL) based on the parameters SpiIdleTime, SpiTimeClk2CS, SpiTrailingTime.
SpiQSpiParamTPre:
Prescaler for the Trailing Delay
Length in TQSPI units
000B - 1
001B - 4
010B - 16
...
111B - 16384
SpiQSpiParamTrail:
Trailing Delay Length
Defines the length of the trailing delay, in TQSPI units pre scaled with TPRE
0D - 1 units
1D - 2 unit
...
7D - 8 units
SpiQSpiParamIPre:
Prescaler for the Idle Delay
Length in TQSPI units
000B - 1
001B - 4
010B - 16
...
111B - 16384
SpiQSpiParamIdle:
Idle Delay Length
Defines the length of both idle delays, IDLEA and IDLEB, in TQSPI units pre scaled
with IPRE
0D - 1 units
1D - 2 unit
...
7D - 8 units
SpiQSpiParamLPre:
Prescaler for the Leading Delay
Length in TQSPI units
000B - 1
001B - 4
010B - 16
...
111B - 16384
SpiQSpiParamLead:
Leading Delay Length
Defines the length of the leading delay, in TQSPI units pre scaled with LPRE
0D - 1 units
1D - 2 unit
...
7D - 8 units
版权声明 本文属于本站 原创作品,文章版权归本站及作者所有,请尊重作者的创作成果,转载、引用自觉附上本文永久地址: http://blog.lujianxin.com/x/art/m88hxi761k30
上一篇:消息队列进阶篇(一)
下一篇:Win10企业版LTSC激活
文章评论区
作者名片
- 作者昵称:WBK
- 原创文章:3篇
- 转载文章:1篇
- 加入本站:2045天
站长推荐
友情链接
站点信息
- 运行天数:2049天
- 累计访问:164169人次
- 今日访问:0人次
- 原创文章:69篇
- 转载文章:4篇
- 微信公众号:第一时间获取更新信息