Thank you for your interest in the Cypress products.
I see that you need a capsense solution that will require two sensing buttons and 2 I/O ports to know the status of the sensor using PSoC 4000. You will not be able to do this application with the present device you mentioned, since it has limited number of pins. So, I recommend you to use the 16 pin PSoC 4000 with part number CY8C4014SXI-421.
I have created a sample project for that will give you an idea regarding this application you asked for. Please find the attached project.
To understand more about PSoC 4 devices, I recommend you to go through the following documents:
1. PSoC 4000 datasheet : http://www.cypress.com/file/138646/download
2. PSoC 4000 architecture TRM : http://www.cypress.com/file/126386/download
3. PSoC 4000 Register TRM : http://www.cypress.com/file/126381/download
4. PSoC 4 101 tutorial videos (Highly recommended) : http://www.cypress.com/training/psoc-101-video-tutorial-series-how-use-arm-cortex-m0-based-psoc-4
5. PSoC 4 Hardware design considerations : http://www.cypress.com/file/141176/download
PSoC creator is a really simple tool which enables you to realize your applications in a quicker way. To understand more about our PSoC creator, I recommend you to go through the following well documented user guide http://www.cypress.com/file/137441/download .
To develop any applications using CapSense, it is highly essential to know just the basics of how it works. Although this is not a compulsory thing, it will allow you to realize more applications of Capsense effectively. I recommend you to go through the following documents to develop an capsense solution using PSoC 4 device.
1. Getting Started with CapSense : http://www.cypress.com/file/41076/download
2. PSoC 4/6 CapSense design guide : http://www.cypress.com/file/46081/download
Apart from these we have numerous code examples for each of the different families. As a beginner, it is good to start with the code examples and then start developing your applications based on them. You have various sources to find the code examples.
1. In PSoC Creator, Open File -> Code Example. In the Find Code example dialog, you can select the device family in the drop down and choose the code example you want. Download the project by clicking the globe icon next to it and click create project. The explanation of the project will be displayed as a PDF along with the project.
2. You can use this link to find more code examples: http://www.cypress.com/documentation/code-examples/psoc-345-code-examples
In case you have any questions during any of your design/ learning process, please feel free to create a question in the Cypress Community, our engineers and other valuable contributors are always there to help you.
Also regarding the second part of your question. We have a Knowledge Based Article on this topic. Please refer to the below mentioned link:
Thank you for your reply!
I consider the CY8C4014SXI-420 is because I was use CY8CMBR3002 as the old version in design, and it's hard to re-design my PCB because we made a lot, due to the CY8CMBR3002 have a Auto-sleep mechanism and can't be configured as always active,it's not suitable for my design, the PSoC4000 family is recommended by a FAE of CYPRESS and we choose CY8C4014SXI-420 as Pin compatible device to CY8CMBR3002. I have been read datasheet and other references of CY8C4014SXI-420, I see Pin3.0 and Pin3.1 can be configured as programming port also as a GPO port, therefor, it is Pin to Pin compatible to CY8CMBR3002, and I consider it is suitable for my design.
Can you sure about that? If that 8 pin PSoC is not suitable, I have to consider re-design my PCB now.
It's really appreciate for your help, thank you!
I have read the pdf"AN88619 - PSoC 4 HARDWARE DESIGN CONSIDERATIONS", it says follows:
SWD pins are located in different ports in different device families. The pins could be used for other functionality, when the devices are not being programmed; see the device datasheet for the possible functionality details.
According to above information, I think Pin 3.0 and Pin 3.1 of CY8C4014SXI-420 can be configured as GPO port. But you said it's Pin has limited number of pins. May I ask you to help me to sure for that?
Thank you for the information.
You can use the same 8 pin SOIC as before. But you need to make small changes to that to use SWD_DATA and SWD_SCL pins in PSoC Creator. By defaut, these pins are set to SWD. Therefore it will not allow you to connect these to the GPIO pins. To give GPIO functionality to these pins, do the following:
1. Open Design wide resources in the Workspace explorer.
2. Click on System tab at the bottom and in Debug select choose GPIO.
3. Now you can use these pins for both programming and as GPIO but not for debugging.
4. I have attached the sample project with these changes for your reference.
I didn't know that your PCB was already designed. So I suggested an IC with more no. of pins. You can use the same 8 pin SOIC by following the previous comment.
Thank you for your reply!
I'm sure that I can use CY8C4014SXI-420 to continue my design now. I was created a project with CY8C4014SXI-420 at earlier time, but I don't know how to configure detail options. With your help I know how to configure the device to active always now. You helped me a lot. I'm really thankful for your help. Thank you!