Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mimeshy1
Level 1
Level 1
10 sign-ins 5 questions asked First like given

mimeshy1_0-1688548598392.png

对于手册中Buffer Type中FAST ,SOLW,PU1,VEXT,ES这些类型如何理解?

我使用TC387的GPIO口对100HZ-500HZ的PWM信号进行采样需要注意什么?

 

0 Likes
1 Solution
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

For detailed descriptions of the "Buffer Type," you can consult the document tc39x_ds_v10.pdf or similar documents. The following buffer types are listed:

RFAST
FAST
SLOW
LVDS_TX
LVDS_RX
S
D
Porst
XTAL1
XTAL2
PU
PU1
PU2
PD
PD1
PD2
OD
ES
ES1
ES2
ES3
ES4
ES5
ES6

对于PWM采样,除了GPIO外,还有ADC/CCP比较捕获/定时器,可以使用。例子代码可以参考github https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples

如果确定使用GPIO,那么可以设置一个定时器中断,比如每毫秒进入一次中断,然后读取GPIO的值。这个精度和效率是比较低的,所以可以考虑使用其他模块,比如CCU6,例子代码如下:

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/CCU6_PWM_Capture_1_KIT_TC3...

 

 

View solution in original post

0 Likes
1 Reply
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

For detailed descriptions of the "Buffer Type," you can consult the document tc39x_ds_v10.pdf or similar documents. The following buffer types are listed:

RFAST
FAST
SLOW
LVDS_TX
LVDS_RX
S
D
Porst
XTAL1
XTAL2
PU
PU1
PU2
PD
PD1
PD2
OD
ES
ES1
ES2
ES3
ES4
ES5
ES6

对于PWM采样,除了GPIO外,还有ADC/CCP比较捕获/定时器,可以使用。例子代码可以参考github https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples

如果确定使用GPIO,那么可以设置一个定时器中断,比如每毫秒进入一次中断,然后读取GPIO的值。这个精度和效率是比较低的,所以可以考虑使用其他模块,比如CCU6,例子代码如下:

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/CCU6_PWM_Capture_1_KIT_TC3...

 

 

0 Likes