Community Translation - Reducing the Deep-Sleep Current for PSoC® 4 Devices – KBA90930

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

cross mob
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I'd like to translate KBA90930 into Japanese.

moto

Original KBA: KBA90930

Reducing the Deep-Sleep Current for PSoC® 4 Devices – KBA90930

Translated by: MoTa_728816

=============================

タイトル: PSoC® 4 デバイスのディープスリープ時の電流を減らす - KBA90930

ヴァージョン: *A

質問:

PSoC 4 デバイスのディープスリープ時の電流消費を少なくするのにはどうしたら良いでしょうか?

回答:

CY8CKIT-042 を使用して測定したところ PSoC 4 はディープスリープ時に 1.5 mA 程度を消費します。これは下図のように Project_name.cydwr タブ下の system で Debug Select オプションを “SWD” と選択した場合の挙動です。

001-pastedImage_0.png

PSoC 4 プロジェクトで、Debug Select オプションで “SWD”  が選択されている場合、SWD ピンのドライブモードは Strong drive に設定されます。これがディープスリープ時でも消費電力が高い理由です。ディープスリープ時の消費電力を抑えるためには、手動で PSoC 4  デバイスの SWD ピン、すなわち P3[2] と P3[3] ピンをディープスリープに入る前に、Analog Hi-Z モードに設定する必要があります。デバイスがディープスリープから復帰した時点でこれらピンのドライブモードを元の設定に戻すことが出来ます。この手法はディープスリープ時にもデバッグが必要な場合に要求されます。もし、そうでない場合には一番容易なのは Debug Select オプションを SWD から GPIO にすることです。

SWD ピンのドライブモードを Analog Hi-Z に変更するのには、0x40040308 にある PRT3_PC レジスタのビット [6:11] に 0 を書き込みます。PRT3_PC レジスタのこれらのビットに 0 を書き込むと SWD ピンのドライブモードを Analog Hi-Z に変更します。 PRT3_PC レジスタに関する詳細は PSoC 4 Registers TRM  8.1.3 項の PRT3_PC レジスタの説明をご参照ください。下記はディープスリープに入る前に SWD ピンを Hi-Z に設定して、ディープスリープからの復帰後に元に設定に戻すコードスニペットです:

    x= CY_GET_REG32(0x40040308u);

    CY_SET_REG32(0x40040308u, 0x00);

    CySysPmDeepSleep();

    CY_SET_REG32(0x40040308u, x);

=============================

27-Apr-2020

moto

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

Hello, Tanaka-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
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi Jenna-san,

I have done 2nd review.

I picked up the part that would be fixed as follows:

> タイトル:PSoC® 4 デバイスのディープスリープ時の電流を減らす - KBA90930

< タイトル:PSoC® 4 デバイスのディープスリープ時の電流削減 - KBA90930

Thanks,

Kenshow

7-Nov-2020