cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ Creator & Designer

Anonymous
Not applicable
0 Likes
34 Replies
Bob_Marlowe
Expert II

Any problems in posting your question?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

no, not at all. actually it was an network problem. but thanks for response, hope you'll continue the same in future.

   

need some help in programming the capsense PSoC CY8C20534, if you have any samples for the same please convey.

   

 

   

regards--

   

Amit

0 Likes
Bob_Marlowe
Expert II

Thread continues here ... www.cypress.com/

   

 

   

Bob

0 Likes
Anonymous
Not applicable

thanks Bob, hope we'll have good options for each other.

   

 

   

Amit

0 Likes
Anonymous
Not applicable

hey, Bob I tried working my board with the code I have; its working ok for the buttons-- they are glowing the LED's accordingly.

   

Now the problem I'm facing is slider.

   

I'm using the separate LED's for each sensor in the slider. I'm unable to program any of those. the syntax I'm using is as--

   

 

   

void display_update_LEDs(BYTE sensor_state)
{
   
    LED_0_Switch( (sensor_state & 0x02) );            ----------B0==L0
    LED_1_Switch( (sensor_state & 0x04) );            ----------B1==L1
    LED_2_Switch( (sensor_state & 0x08) );            ----------B2==L2
    LED_3_Switch( (sensor_state & 0x10) );             --------- B3==L3----------till here my 4 buttons are working ok

   


    LED_4_Switch( (sensor_state & 0x01) );             --------- B4==L4------------this one is used as a pre-requisite for the slider

   

                                                                                                                                      i.e. it has to be ON to turn ON the slider sensors.

   

the condition for the slider is B4+(any of the slider sensor) will be ON a/c ly.

   


    LED_5_Switch( (sensor_state & 0x??) );             ----------here after slider sensors start-------B5==L5
    LED_6_Switch( (sensor_state & 0x??) );             ----------                          B6==L6
    LED_7_Switch( (sensor_state & 0x??) );             ----------                          B7==L7(to be done)
    LED_8_Switch( (sensor_state & 0x??) );             ----------                          B8==L8

   

}

   

can you tell me the values in the '??' block and logic behind it.

   

-------

   

Amit

0 Likes
Bob_Marlowe
Expert II

@Amit

   

I'm afraid you will have to post your complete project here to answer your question. Use Designer -> File -> Archive Project and then attach the resulting .zip file.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

can you give me the sample program for the buttons and slider with separate LED's for each sensor?

   

----

   

Amit

0 Likes
Bob_Marlowe
Expert II

Yes, of course, but you may do that yourself.

   

Open Creator 3.0 and select on the start page "Find Example Project". There are some examples using CapSense CDC which you can adapt to your chip and the board you use easily. Together with the example usually comes a detailled documentation which may additionally help you.

   

 

   

Bob

0 Likes
Bob_Marlowe
Expert II

Oh, I am very sorry, my advices were for PSoC3/4/5 and you are using PSoC1 for which I do not have got an example yet.

   

From this page here you can find example projects for the listed kits, something will be there for you:www.cypress.com/

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hi Bob, can you tell me what actually is the INTEGRATING INPUT-----I/O P0[3]   of CY8C20534 28-Pin (SSOP)

0 Likes
ETRO_SSN583
Esteemed Contributor

This might help -

   

 

   

0 Likes
ETRO_SSN583
Esteemed Contributor

Pic did not post, here it is attached.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thanks Dana, that was of help

0 Likes
Anonymous
Not applicable

Hi Dana, can you tell me how to check the reward points & use them to order new kits

   

----

   

Amit

0 Likes
ETRO_SSN583
Esteemed Contributor

The rewards points are just for the items in the store, no kits available.

   

 

   

10 points = $ 1 for the store.

   

 

   

www.cypress.com/

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

OK, but how to check my points

   

------

   

Amit

0 Likes
Anonymous
Not applicable

hey Dana, you asked me to post my archieved project & I have done that in the other case with the same header----(Capsense Programming).

   

so check that out & tell me how to make that work. thamks

   

------

   

Amit

0 Likes
ETRO_SSN583
Esteemed Contributor

Go to your profile or just clcik your highlighted Forum ID on on eof your posts

   

and reward posts are shown.

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Esteemed Contributor

Try this again with a little better spelling.

   

 

   

Go to your profile or just clcik your highlighted Forum ID on one of your posts

   

and reward points are shown.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

thanks Dana I got that one. have you seen my project file, have you found any solution for it?

   

how much time will take you to suggest me the modifications to run it?

   

please get it as son as you can.

   

Again I'm attaching my project in here, go through it.

   

------

   

Regards

   

Amit

0 Likes
ETRO_SSN583
Esteemed Contributor

I find a compile error, and suggest you file a CASE for this.

   

 

   

lib/csa_emc.asm
!E CSA_EMC.inc(19): no such mnemonic 'Wizard_was_not_called_after_place_rename_configuration_change_or_update_Open_Chip_Editor_open_Wizard_press_OK_button_and_generate_project'
make: *** [lib/obj/csa_emc.o] Error 1
make: *** Deleting file `lib/obj/csa_emc.o'

   

 

   

I am using Designer 5.4

   

 

   

    

   

          

   

To create a technical case at Cypress -

   

 

   

www.cypress.com

   

“Support”

   

“Technical Support”

   

“Create a Case”

   

 

   

You have to be registered on Cypress web site first.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

sorry Dana but I didn't get what you are telling me, if it is about the building & downloading the project it does work ok for me. I'm also using  PSoC Designer 5.4 & CY8C20534 controller.

   

if it is anything else then please elaborate. thanks

   

-------

   

Regards

   

Amit

0 Likes
Anonymous
Not applicable

Hey Dana, I got that & I've filed the case. lets see what they come up with

   

Regards---

   

Amit

0 Likes
Anonymous
Not applicable

Hey Dana, I got that one ready to compile. I'm sending you that file, check this out & tell me the modifications to work it full. Thanks.

   

Regards--

   

Amit

0 Likes
Anonymous
Not applicable

Hi Bob & Dana,

   

I have a project working to my expectations, i.e. its working good for the buttons. for slider its working good now but the problem now is about the LED's

   

while I'm assigning the separate LED's for the buttons & slider, I'm getting the o/p of the slider on the same LED's assigned fopr the buttons rather than the ones for the slider.

   

what is the reason for that n how to overcome it.

   

Regards---

   

Amit

0 Likes
Anonymous
Not applicable

Hello guys, what is the difference between-

   

Slave address   &   sub-address

   

Figure 14. EzI2Cs Example: Write to iVolts

   

Start    (slave address)0x04      Write      ACk      (sub-Address)0x02     ACK    (data to write)0x55   ACK    0xAA   ACK    P

   

if I'm writing a instruction as-

   


if ( (sensor_state & 0x01) && flag1 ==0)
        {   
            flag1=1;
            LED_0_Invert();
      
        }
        else if (!CSA_EMC_bIsAnySensorActive())
        {   
            flag1=0;
       
        }

   

what I'm specifying as 0x01------is it a slave addr or the sub-addr?

   

Regards-

   

Amit

0 Likes
ETRO_SSN583
Esteemed Contributor

Attached ap note discusses this and shows examples.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thanks Dana, I'm uploading my project here.

   

In that I'm specifying some addresses, can tou tell me are they the slave addresses or the sub-addresses.

   

I'm having those addresses for the 5 sensors, tell me what are the necessary changes to modify them; you can take an case of 10 addresses to explain it to me.

   

Regards-

   

Amit

0 Likes
Anonymous
Not applicable

sorry the project is here

0 Likes
Anonymous
Not applicable

Hi all,

   

HOW TO CONFIGURE MY I2Cs?

   

while I'm trying to configure my I2Cs in my project with-

   

PSoC designer 5.4  &  PSoC mini-prog1

   

I'm unable to do that. is it possible to edite it in my project environment.

   

Thanks & Regards-

   

Amit

0 Likes
Bob_Marlowe
Expert II

Configuration of EzI2Cs is done in the chip editor

   

Setting the slave address (you choose 😎

   

Speed (400K)

   

Pins (pin1_0 and pin1_1)

   

 

   

You should check with EzI2Cs_GetActivity() to see if anything has been red from or written to your device.

   

A question: What is the device you are controlling your PSoC board with? What is the address range that device can communicate with (link to datasheet) or is that another PSoC?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 Hi to all, can anyone tell me why to use the external resistors (one of the PSoC's pin is assigned for that)?

   

on what base does that pin is chosen & how does its presence or absence affects the operations.

   

Thanks & Regards-

   

Amit

0 Likes
Bob_Marlowe
Expert II

This thread has become a bit lengthy and apart from its title several different questions have been asked. So I am not quite sure whether your question addresses CapSense or I2C.

   

 

   

What about starting a new thread for a new question?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 thats a good idea Bob, thanks

   

Regards-

   

Amit

0 Likes