<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[同一个物理引脚在不同时间段切换CAN和GPIO工作模式]]></title><description><![CDATA[<p dir="auto">YTM32B1MC03中让PTC6引脚在不同时间段切换不同的工作模式，平时作为CAN_RX接收报文，休眠前一段时间为GPIO的ICU模式监控总线情况，目前将CAN的RX（PTC_6）配置为ICU，初始化时程序停在了ICU的初始化中的/<em>Clear pin interrupt flag</em>/ICU_GPIO_REG_ADDR32_INDEX_W1C_BIT(GPIO_PIFR_ADDR32(PortInstance), PortChannel);什么原因，该怎么解决呀？<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/81ebbd62-fc5d-4a63-b58a-a6872e23fb69.png" alt="f2287ff2-c18f-4dd9-8025-48509f138e7f-278a9b58a44d29f6dcc66bb853185f85.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/topic/1957/同一个物理引脚在不同时间段切换can和gpio工作模式</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 04:57:14 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/1957.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 May 2026 10:01:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 同一个物理引脚在不同时间段切换CAN和GPIO工作模式 on Tue, 19 May 2026 02:55:28 GMT]]></title><description><![CDATA[<p dir="auto">请问您将 CAN_RX 在休眠前切换成 ICU 捕获的目的是不是想监测 CAN 总线上是否还有报文？您们的需求是否是必须检测 CAN 总线上没有报文后才允许执行休眠逻辑是吗</p>
]]></description><link>https://forum.ytmicro.com/post/8490</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8490</guid><dc:creator><![CDATA[Kirk]]></dc:creator><pubDate>Tue, 19 May 2026 02:55:28 GMT</pubDate></item><item><title><![CDATA[Reply to 同一个物理引脚在不同时间段切换CAN和GPIO工作模式 on Tue, 19 May 2026 02:34:18 GMT]]></title><description><![CDATA[<p dir="auto">请问你用的MCAL哪个版本的代码。</p>
]]></description><link>https://forum.ytmicro.com/post/8489</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8489</guid><dc:creator><![CDATA[jan]]></dc:creator><pubDate>Tue, 19 May 2026 02:34:18 GMT</pubDate></item><item><title><![CDATA[Reply to 同一个物理引脚在不同时间段切换CAN和GPIO工作模式 on Tue, 19 May 2026 02:21:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/946">向阳</a> 在 <a href="/post/8487">同一个物理引脚在不同时间段切换CAN和GPIO工作模式</a> 中说：</p>
<blockquote>
<p dir="auto">如果关了的话是改不动的</p>
</blockquote>
<p dir="auto">您好，没明白您的意思，是什么关闭无法修改，想实现CANRX引脚在不同时间段切换CAN和ICU监控是否可行？该如何配置,麻烦您可以指导一下不？</p>
]]></description><link>https://forum.ytmicro.com/post/8488</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8488</guid><dc:creator><![CDATA[chenchao]]></dc:creator><pubDate>Tue, 19 May 2026 02:21:28 GMT</pubDate></item><item><title><![CDATA[Reply to 同一个物理引脚在不同时间段切换CAN和GPIO工作模式 on Tue, 19 May 2026 02:14:50 GMT]]></title><description><![CDATA[<p dir="auto">如果关了的话是改不动的</p>
]]></description><link>https://forum.ytmicro.com/post/8487</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8487</guid><dc:creator><![CDATA[向阳]]></dc:creator><pubDate>Tue, 19 May 2026 02:14:50 GMT</pubDate></item><item><title><![CDATA[Reply to 同一个物理引脚在不同时间段切换CAN和GPIO工作模式 on Tue, 19 May 2026 02:06:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/237">jan</a> 在 <a href="/post/8483">同一个物理引脚在不同时间段切换CAN和GPIO工作模式</a> 中说：</p>
<blockquote>
<p dir="auto">初始化Icu前已经把PTC6引脚切换成GPIO模式了吗</p>
</blockquote>
<p dir="auto">我试了一下，在ICU初始化前切换成GPIO模式，程序还是停在了ICU的初始化中的/Clear pin interrupt flag/ICU_GPIO_REG_ADDR32_INDEX_W1C_BIT(GPIO_PIFR_ADDR32(PortInstance), PortChannel);<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1720/573f2f0b-ada6-4cd4-a876-f359cab37229.png" alt="6a636499-54e1-440e-8fc2-ef758485ec18-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/8485</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8485</guid><dc:creator><![CDATA[chenchao]]></dc:creator><pubDate>Tue, 19 May 2026 02:06:03 GMT</pubDate></item><item><title><![CDATA[Reply to 同一个物理引脚在不同时间段切换CAN和GPIO工作模式 on Tue, 19 May 2026 01:52:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/237">jan</a> 在 <a href="/post/8483">同一个物理引脚在不同时间段切换CAN和GPIO工作模式</a> 中说：</p>
<blockquote>
<p dir="auto">初始化Icu前已经把PTC6引脚切换成GPIO模式了吗</p>
</blockquote>
<p dir="auto">没有切换，如果需要在不同时间段切换CAN和ICU模式监控，初始化时该怎么做，切换后CAN还可以正常使用吗？</p>
]]></description><link>https://forum.ytmicro.com/post/8484</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8484</guid><dc:creator><![CDATA[chenchao]]></dc:creator><pubDate>Tue, 19 May 2026 01:52:23 GMT</pubDate></item><item><title><![CDATA[Reply to 同一个物理引脚在不同时间段切换CAN和GPIO工作模式 on Tue, 19 May 2026 01:47:52 GMT]]></title><description><![CDATA[<p dir="auto">初始化Icu前已经把PTC6引脚切换成GPIO模式了吗</p>
]]></description><link>https://forum.ytmicro.com/post/8483</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8483</guid><dc:creator><![CDATA[jan]]></dc:creator><pubDate>Tue, 19 May 2026 01:47:52 GMT</pubDate></item></channel></rss>