Can we use the 5th TCPWM in CY8C4024PVS-S412

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

cross mob
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

こんにちは、

One of my customer is investigating CY8C4024PVS-S412 for their project.

As the datasheet states that this device has 5 TCPWM, the customer is expecting to generate 5 PWM output.

But they seem to have had hard time to implement this set-up and asked us for help.

私のお客様に CY8C4024PVS-S412 を検討されている方がおいでです。

データシートによると 5つの TCPWM が搭載されているということで、

お客様は 5つの独立した PWM 出力を生成することを期待されています。

しかし、試されたところ上手くいかなかったようでお問合せをいただきました。

So I tried with PSoC Creator v4.3.

例によって PSoC Creator v4.3 で試してみました。

The first schematic

Looks ok to me

先ずは回路図、

問題なさそうです。

001-schematic.JPG

But, I could not assign LED_5, which is for TCPWM[4] the 5th TCPWM.

しかし、5個目の PWM (TCPWM[4]) につないだ LED_5 のピンが設定できません。

002-pin-assign.JPG

Even auto pin assign returned error fit.M0059: FFB and IO placement failed: Failed to find a valid placement for LED_5(0).

自動アサインで走らせたところ、M0059 という上記のエラーが返されました。

Then I checked the data sheet,

No wonder, both tcpwm.line[4]:0 and tcpwm.line_compl[4]:0 are assigned to non-existing pins,  namely P2[0] and P2[1].

ここでデータシートを確認したところ

なるほど、tcpwm.line[4]:0 も tcpwm.line_compl[4]:0 もデバイス上に存在しない P2[0] と P2[1] にアサインされています。

003-device-pin.JPG

So I tried to bypass P2[0] to P2[7] by using SmartIO

それならば、SmartIO を使用して P2[0] をデバイスに存在する P2[7] にバイパスしてみました。

Schematic / 回路図

004-schematic.JPG

Pins / ピンアサイン

Note: This time I could assign LED_5 to P2[7] as I planned,

but SmartIO pin seems to be floating

今回は無事 LED_5 を P2[7] にアサインすることができました、

しかし SmartIO の内部ピンの接続先が浮いているようです。

005-pin-assign.JPG

And when I tied to compile, I got following errors.

そして、アプリケーションの生成を行ったところ下記のエラーが返されました。

006-errors.JPG

Now my question is

Would someone teach me if there is a way to use all 5 TCPWM output in this device, CY8C4024PVS-S412?

さて、今回の私の質問なのですが、

CY8C402PVS-S412 で 5つの TCPWM の出力を全て外部に出す方法はあるのでしょうか?

Best Regards,

24-Sep-2020

Motoo Tanaka

0 Likes
1 Solution
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Tanaka-san,

再度確認しましたが、CY8C402PVS-S412 で 5つの TCPWM の出力を全て外部に出すことができません。

他のソリューションもございません。

以上、よろしくお願い致します。

View solution in original post

3 Replies
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Tanaka-san,

既にお調べされている通り、CY8C402PVS-S412 で 5つの TCPWM の出力を全て外部に出す事できません。

何か他のソリューションがあるかどうか調べています。

分かり次第、本スレッドをアップいたします。

Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Tanaka-san,

再度確認しましたが、CY8C402PVS-S412 で 5つの TCPWM の出力を全て外部に出すことができません。

他のソリューションもございません。

以上、よろしくお願い致します。

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

Matsubara-san,

ご回答をありがとうございました。

承知しました。

moto

0 Likes