Community Translation - Using I 2C Pin with LVTTL Logic Input in PSoC® 4 - KBA223289

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

cross mob
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,

I would like to translate KBA223289 into Japanese.

Thanks,

Kenshow


Original KBA:

Using I 2C Pin with LVTTL Logic Input in PSoC 4 - KBA223289

Translated by Kenshow

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

タイトル: PSoC®4でI 2CピンをLVTTLロジック入力で使用する – KBA223289

バージョン:**

質問:

PSoC 4デバイスで、CMOSロジックの代わりにLVTTLロジックでのI2Cの入力を持たせることは可能でしょうか?

回答:

直接ではありませんが、設定は可能です。これは、コンポーネント設定の変更ではなく、レジスタ書き込みを介して行わなければなりません。CMOSまたはLVTTLでのしきい値を選択するレジスタについては、 PSoC 4 Architecture TRMのセクション「7.3.1 Digital Input Bufferをご参照願います。レジスタ名はGPIO_PRTx_PCになります。PORT_VTRIP_SELビット(GPIO_PRTx_PC [24])でモードを決定します。

この設定はフルポート用であることに注意してください。これは、そのポートのすべてのピンが同じしきい値を持つことを意味します。

I 2 Cポートのこのビットを1に設定して、LVTTLにすることができます。CY_GET_REG32マクロを使用して、そのビットのみを設定できます。

これは、1行の追加コードで実行できます。

CY_SET_REG32 CYREG_GPIO_PRT3_PC CY_GET_REG32 CYREG_GPIO_PRT3_PC | 0x01000000;

これは、ポート3のピンがI2Cに使用されていることを前提としています。ユースケースに応じてレジスタ名を変更する必要があります。

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

7-May-2020

Kenshow

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

Hello, Kenshow-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 internal review, 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