是否可以使用两个GPIOTE任务设置/清除NRF52 GPIO PIN

发布于 2025-01-21 21:08:08 字数 180 浏览 5 评论 0原文

我想拥有一个具有两个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

停顿的约定 2025-01-28 21:08:08

回答我自己的问题。是的,有可能。我试图通过两个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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文