PSOC6 Want a example which a timer could capture a pin last high level time in modustoobox ,no GUI achieve this ,only code

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

cross mob
Frank_vec
Level 4
Level 4
Distributor - Zenitron(GC)
50 replies posted First like received First comment on blog

Dear 

   I  have not find a modus example of psoc6  which  a timer measure  a pin low or high level  last time  ,The  example show that a timer was tiriger by a pin's  rising or falling   to start ,could measure the pin low or high level time etc

 

Thanks  

 我想找个psoc6的modus例程,通过定时器来测量一个pin的高电平或者低电平持续时间,定时器的计数周期是 1us,由上升沿或者下降沿触发;非GUI,因为我配置的东西比较多:Pin脚选择、定时器触发条件(rise or fall )等等

 

 

 

0 Likes
1 Solution

附件是MTB中实现capture功能的code。用PDL写的。

我把相应capture中断的信号截图也一起发到这里。MTB2.4版本。

View solution in original post

0 Likes
3 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

我在psoc creator中实现了这个功能,你先看一下,这个逻辑是不是你想要的?具体在MTB这个IDE下面的测试工程,我需要一些时间去创建。

0 Likes
Frank_vec
Level 4
Level 4
Distributor - Zenitron(GC)
50 replies posted First like received First comment on blog

我想要modus 的程序,您这个 create可以给我一些启发,依然谢谢您 

I want modus program,This create  program is also  usefull,Thanks all the same

 

0 Likes

附件是MTB中实现capture功能的code。用PDL写的。

我把相应capture中断的信号截图也一起发到这里。MTB2.4版本。

0 Likes