CSD Tuner for PSoC4000S with Miniprog3

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

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

I am trying CSD Tuner for PSoC4000S with Miniprog3.

The settings of Tuner communication is below.

pastedImage_0.png

but, it won't connect. Why?

Best regards,

Yocchi

0 Likes
1 Solution

VTARG must be connected to the target's VDD because your are selecting "External" in the "Port Configuration" - "Power" section of the "Tuner Communication Setup" dialogue.

VTARG will be used for the pull-up device in the MiniProg3.

Regards,

Noriaki

View solution in original post

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

Hi,

I wonder if the following discussion can be a hint.

Re: MiniProg3 as I2C bridge for capsense tuning

moto

0 Likes

Hello,

I will supplement.

I am trying with CY8CKIT145-40XX, but the connection is as follows.

pastedImage_0.png

If Miniprog3 is not connected, SCK and SDA are pulled up to +5V.

When connecting miniprog3, both signals are about +1.0V.

Best regards,

Yocchi

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

External pull-up is not required.

The MiniProg3 User Guide states:

pastedImage_0.png

0 Likes

Hello,

Add more. I2C protocol of PSoC Programmer cannot be selected.

pastedImage_0.png

Best regards,

Yocchi

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

You want CSD Tuner to work, right?

At that time, PSoC Programmer doesn't matter?

I think that I2C will be selected in the setting of BCP or Launch Tuner of PSoC Cretor.

0 Likes

Hello,

Since only 1V is output, I thought that the protocol setting was necessary in Programmer.

All I need is the tuner to work.

Best regards,

Yocchi

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

Hi,

> All I need is the tuner to work.

If that's the case, can you disconnect USB from KitProg

and provide VDD from MiniProg3?

moto

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

こんにちは、

現在、手の届く基板で一番近いのが CY8CKIT-149 なので、それで試してみました。

ちなみに、私のプロトタイプ基板は全て、羽をむしっちゃっているので、ジャンパで繋いでいます。

IMG_4333.JPG

回路

001-schematic.JPG

ピン配

002-pins.JPG

main.c

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

#include "project.h"

#include "stdbool.h"

#define LED_ON  0u

#define LED_OFF 1u

int main()

{

    bool buttonState  = false;

    CyGlobalIntEnable;                  /* Enable global interrupts*/

    EZI2C_Start();                  /* Initialize EZI2C block */

   

    EZI2C_EzI2CSetBuffer1(sizeof(CapSense_dsRam),

                          sizeof(CapSense_dsRam),

                          (uint8 *)&CapSense_dsRam

                          );

    CapSense_Start();       

   

    CapSense_ScanAllWidgets();

    for(;;){

        if(CapSense_NOT_BUSY == CapSense_IsBusy()){  

            CapSense_ProcessAllWidgets();

           

            buttonState  = (bool)CapSense_IsSensorActive(

                CapSense_BUTTON0_WDGT_ID, CapSense_BUTTON0_SNS0_ID);           

            if(buttonState) {

    LED_Write(LED_ON);      /* Turn ON Active-Low LED */

            } else {

            LED_Write(LED_OFF);      /* Turn OFF Active-Low LED */  

            }

           

            CapSense_RunTuner();

            CapSense_ScanAllWidgets();                     

        }

        CyDelay(20);

       

    }

}

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

この構成であれば、同じように MiniProg3 から、GND, SDA, SCL を接続した状態で、KitProg から電源供給で Tuner は動作しました。

※ PSoC Creator の Debugger は停止している必要がありますが。

003-Tuner.JPG

moto

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

ついでに、KitProg 側のケーブルを外して、

MiniProg3 の VTarget からの電源供給も試してみました。

IMG_4334.JPG

Tuner の接続設定

004-mini-prog-connection.JPG

これも動きました。

005-tuner-2.JPG

moto

0 Likes

Hello Noriaki-san,

thank you everyone.

By connecting VTARG to the Kit and removing the pull-up resistor of 10kΩ that

was also prepared externally, it came to operate.

Best regards,

Yocchi

0 Likes

VTARG must be connected to the target's VDD because your are selecting "External" in the "Port Configuration" - "Power" section of the "Tuner Communication Setup" dialogue.

VTARG will be used for the pull-up device in the MiniProg3.

Regards,

Noriaki

0 Likes