how to scan sar adc by hardware rising edge trigger

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

cross mob
lock attach
Attachments are accessible only for community members.
waxu_2241576
Level 1
Level 1

Hi,

     我将ADC Sample Mode 设置为Single shot,Use soc terminal,将timer的ovrflw terminal和soc连接,

但是用PSoC creater编译后发生error,

Unable to directly connect a level sensitive trigger to an edge sensitive trigger.

具体配置请参考附件,我用的是PSoC62的板子

please help me┭┮﹏┭┮

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

你可以把你的测试工程贴上来。

另外,按照你说的配置,搭建工程,编译之后没有出错,附件是测试工程,请参考。

View solution in original post

0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

你可以把你的测试工程贴上来。

另外,按照你说的配置,搭建工程,编译之后没有出错,附件是测试工程,请参考。

0 Likes
lock attach
Attachments are accessible only for community members.

  Dear Lingling ,

        Thanks very much!!

        我找到了问题的原因!

        我先使用的的PSoC62(CY8C6247BZI-D54),分别使用Timer_counter和Scan_ADC component,

      然后我又换成PSoC61(CY8C6137-F14),直接将62的TopDesign copy到61中,追加hard rising edge trigger功能

      但是61和62的configure'ADC'是不一样的,从新选择之后就可以用了。

        我还有一个问题想要请你帮助我,

        Timer的overflow terminal 和soc treminal接续后,在cyfitter_cfg.c有下面两句处理

(void)Cy_TrigMux_Connect(TRIG11_IN_TCPWM0_TR_OVERFLOW2, TRIG11_OUT_TR_GROUP0_INPUT16, CY_TR_MUX_TR_INV_DISABLE, TRIGGER_TYPE_LEVEL);

(void)Cy_TrigMux_Connect(TRIG6_IN_TR_GROUP11_OUTPUT7, TRIG6_OUT_PASS_TR_SAR_IN, CY_TR_MUX_TR_INV_DISABLE, TRIGGER_TYPE_TCPWM_TR_OVERFLOW);

          其中TRIG11_OUT_TR_GROUP0_INPUT16,这里不应该是GROUP6吗?为什么是GROUP0@LinglingG_46

0 Likes

PSOC Creater 生成的文件中TRIG11_OUT_TR_GROUP0_INPUT16,从GROUP0~8的地址都是相同的

0 Likes

对于在原理图上面连线,在底层的解析,是编译器做的,这个不需要用户去操作的。

这些都是在进入main函数之前去处理的。

0 Likes