1 2 Previous Next 18 Replies Latest reply on Oct 1, 2014 2:12 AM by user_420283366

    capsense programming

    user_420283366

      Good afternoon everyone,

         

      I'm creating a capsense module with CY8C20534.

         

      It constructing a board with 4 buttons & 1 slider (with 4 sensors/buttons), the design & pcb's are ready.

         

      what I need is the sample codes for the above stated details.

         

      Since I'm able to program the button section, especially I want the suggestions for the slider section.

        • 1. Re: capsense programming
          user_1377889

          Open the capsense datasheet. Near the end you find two examples accessing buttons and sliders. You may cut & paste those and adopt them to your design.

             

           

             

          Bob

          • 2. Re: capsense programming
            user_1377889

            The bad news is: the design will not fit into the selected chip, you need a device with more ram. When you build your project, you'll get some errormessages which will explain that there is not enough ram availlable.

               

             

               

            Bob

            • 3. Re: capsense programming
              user_1377889

              I hope, I do not conflict with Cypress's marketing policy, but a rather better solution would be for you to switch to PSoC4 for your design if this is possible.

                 

              Download Creator and get yourself a Pioneer Kit (look here www.cypress.com/).

                 

              You get comparatively much flash, ram, capsense and other components, the ability to debug and all that for a very reasonable price.

                 

               

                 

              Bob

              • 4. Re: capsense programming
                user_14586677

                Part seems to have a Capsense focus, from datasheet -

                   

                 

                   

                Features

                   


                ■Low power CapSense block
                ❐Configurable capacitive sensing elements
                ❐Supports combination of CapSense buttons, sliders,
                touchpads, and proximity sensors

                • 5. Re: capsense programming
                  user_1377889

                  I just checked with Cypress: using a PSoC4 in this case is quite reasonable.

                     

                   

                     

                  Bob

                  • 6. Re: capsense programming
                    user_14586677

                    Cypress should stick a flag in the sand and let community know

                       

                    if its time to move off PSOC 1.

                       

                     

                       

                    Note he has boards already made, so clearly must have had tools

                       

                    as well, one would hope. So now he needs to know what the remaining

                       

                    support for manufacturing of the PSOC 1 will be. Bob can you contact

                       

                    marketing and get that answer ? Or better yet turn this over to cutsomers

                       

                    local field sales support, Rep or RSM or FAE. Let them carry the business

                       

                    ball.

                       

                     

                       

                    Regards, Dana.

                    • 7. Re: capsense programming
                      user_1377889

                      I checked some more:

                         

                      Try the following settings in Project -> Settings...

                         

                       

                         

                      Enable paging
                      Stack page offset 7f

                         

                       

                         

                      This will give you some more room in the availlable ram area.

                         

                       

                         

                      Bob

                      • 8. Re: capsense programming
                        user_1377889

                        @Dana

                           

                        When a new chip family comes with 4 times more flash, 8 times more sram, quite a lot more functionality than an older chip and all that for a lower price, then I can read the signs. On the PSoC1 side is only few development done, while it is undenieable that on the quite more performant PSoC4 the timeline announces more and more new models.

                           

                         

                           

                        What does this tell you?

                           

                         

                           

                        Bob

                        • 9. Re: capsense programming
                          user_14586677

                          When a new chip family comes with 4 times more flash, 8 times more sram, quite a lot more functionality than an older chip and all that for a lower price, then I can read the signs. On the PSoC1 side is only few development done, while it is undenieable that on the quite more performant PSoC4 the timeline announces more and more new models.

                             

                           

                             

                          What does this tell you?

                             


                             

                          Bob

                             

                           

                             

                          @Bob, tells me to contact the decision makers, not assume what is the trajectory of a family.

                             

                          To wit the ongoing lifetime of 8051 families. Or the LM324, ~ 50 years old, hundreds of upgrades

                             

                          introduced over that period, yet still in production, albeit some in other process technologies, but not

                             

                          all.

                             

                           

                             

                          Dana.

                          • 10. Re: capsense programming
                            user_1377889

                            OK, Dana. So let us wait for 20 years and then let's open a bottle of wine and talk about the good-old-times.

                               

                            Probably we both will be surprised what has gone on in that time.

                               

                             

                               

                            Bob

                            • 11. Re: capsense programming
                              user_14586677

                              No need to wait 20 years, just pick up the phone and contact the

                                 

                              decision makers. Typically marketing has this responsibility. If one

                                 

                              needs more than standard boiler plate then senior management

                                 

                              excellent resource.

                                 

                               

                                 

                              Dana.

                              • 12. Re: capsense programming
                                user_420283366

                                sorry for the late reply guys, I've just checked your suggestions and will try to work with them.

                                   

                                hope will workout with it. thanks for the reply.

                                   

                                thanks Dana, thanks Bob.

                                   

                                regards--

                                   

                                amit

                                • 13. Re: capsense programming
                                  user_14586677

                                  We digressed over the topic of guessing in engineering, but

                                     

                                  glad to have been of help.

                                     

                                   

                                     

                                  Regards, Dana.

                                  • 14. Re: capsense programming
                                    user_420283366

                                    hello,

                                       

                                    I have made the board with the capsense PSoC cy8c20534, working for the 5 buttons.

                                       

                                    the problem is that the o/p is not holding. when I put my finger on the button the respective LED's glow(ON) but as soon as the finger is removed they goes OFF.

                                       

                                    will you suggest me the required modifications in the program to hold the o/p.

                                       

                                    ----

                                       

                                    Amit

                                    1 2 Previous Next