Community Translation - Control GPIO Output After Stopping the PWM - KBA218991

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

cross mob
HiOm_1802421
Level 5
Level 5
Distributor - Marubun (Japan)
50 replies posted 50 questions asked 25 replies posted

Hi,

Currently I'm working on translation of this KBA.

Omoi

0 Likes
2 Replies
HiOm_1802421
Level 5
Level 5
Distributor - Marubun (Japan)
50 replies posted 50 questions asked 25 replies posted

Hi,

I tried to translate this KBA218991 into Japanese.

Community Translation - Control GPIO Output After Stopping the PWM - KBA218991

==========

タイトル:PWM停止後のGPIO制御

バージョン:**

質問:

PWM停止後、GPIOはどう制御したらよいですか?

回答:

GPIOがPWMに接続されると、ピンがPWMのラインに接続され、HSOIM4A レジスタが自動的に変更されるため、ファームウェアで直接制御する事が出来ません。従って、ファームウェアで Pin_1_Write(0); または Pin_1_Write(1); を使用してGPIO出力レベルを制御することは出来ません。

GPIO出力を制御する必要がある場合は、HSIO4Aレジスタを手動で変更して内部接続を変更します。この記事に添付されているサンプルプロジェクトのプロジェクト回路図を図1に示します。

図1 プロジェクト回路図

Image.png

このプロジェクトでは、Pin_1 として Port 0_Pin 2 を使用します。次のコードは、HSIOM_PORT_SEL0 レジスタを変更するために使用されます。

"CY_SET_REG32(CYREG_HSIOM_PORT_SEL0, CY_GET_REG32(CYREG_HSIOM_PORT_SEL0)&(~Pin_1__0__HSIOM_MASK));"

Pin_1 は、GPIO として構成されます。詳細については、PSoC 4 Register TRM を参照してください。

==========

BR,

Omoi

0 Likes
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello, Omoi-san

We receive your translation, it will be published to KBA to Community.

After upload, You will receive the points as the word of KBA.

Due to the current delay of processed work, Please bear with me for the delayed the response.

It could be delayed, but it will be processed soon.

Thanks for your contribution to CDC!

Will keep you update the status.

Thanks,

Jenna Jo

Jenna Jo
0 Likes