是否可以使用两个GPIOTE任务设置/清除NRF52 GPIO PIN
我想拥有一个具有两个GPIOTE任务的NRF52832 GPIO PIN,一个将其设置为清除。是否有可能或每个GPIO PIN仅限于单个GPIOTE控制任务(对我来说没有意义)。
动机,具有带有两个比较寄存器的计时器,CC1 = 5和CC2 = 20,使CC1清除GPIO PIN和CC2可以设置相同的GPIO PIN并重置计时器。
I would like to have an nrf52832 GPIO pin that has two GPIOTE tasks, one that sets it and one that clears it. Is it possible or is each GPIO pin restricted to a single GPIOTE controlling task (which doesn't make sense to me).
Motivation, having a timer with two compare registers, cc1=5 and cc2=20 such that cc1 clears the GPIO pin and cc2 sets the same GPIO pin and reset the timer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答我自己的问题。是的,有可能。我试图通过两个GPIOTE通道来实现这一目标,一个用于设置,一个用于清除PIN,但每个引脚只能使用一个通道。
而是使用单个通道并使用预定义的集合/CLR任务
Answering my own question. Yes, it's possible. I tried to achieve that with two GPIOTE channels, one for setting and one for clearing the pin but only a single channel can be used for each pin.
Instead, use a single channel and use the predefined SET/CLR tasks in that