7 Replies Latest reply on Oct 6, 2011 3:46 PM by bernard.corwin

    PSoC 3 - Programming Connections/Pins

    alex.b

      Hello All,

         

      I am in the process of making a board using the PSoC 3 chip.

         

      I was using the schematics of the CY8CKIT-030 as a reference. In that design, there is a 10 pin header. My questions are as follows:

         

      1) What are the connections needed for the chip to program & debug? In the reference schematic, they have:

         

      p10 - SWDIO

         

      p11 - SWDCK

         

      p13 - SWO

         

      p14 - TDI

         

      These seem to be JTAG. I though miniprog 3 could do SWV/SWD which only required 2 pins? Please clarify.

         

      2) Where can I find the female header to put on the board? I looked at Digikey, and they seem to be out of stock.

         

      3) What should I do with the USB pins if I choose not to use them?

         

      Thanks,

         

      Alex

        • 1. Re: PSoC 3 - Programming Connections/Pins
          udayanu_51

          For programming and debugging PSoC3 using SWD, following are the connections required between Miniprog3 and PSoC3 chip:

             
                
          1. SWDIO (P1[0])
          2.     
          3. SWDCK (P1[1])
          4.     
          5. XRES     - Reset
          6.     
          7. VTARG  - Target Voltage(VTARG of Miniprog3 should be connected to VDDIO1 of PSoC3) - The SWDIO and SWDCK Pins are on the voltage quadrant corresponding to VDDIO1
          8.     
          9. GND
          10.    
             

          For Programming and debugging via JTAG(4 wire):

             
                
          1. TMS P1[0]
          2.     
          3. TCK P1[1]
          4.     
          5. TDO P1[3]
          6.     
          7. TDI   P1[4] 
          8.    
             

           

             

          For Programming and debugging via JTAG(5 wire):

             

           

             

           

             
                
          1. TMS P1[0]
          2.     
          3. TCK P1[1]
          4.     
          5. TDO P1[3]
          6.     
          7. TDI   P1[4] 
          8.     
          9. NTRST  P1[5]
          10.    
             

          If you do not intend to use USB in your application, the USBIO pins P15[6] and P15[7] can be used as GPIOs.

          • 2. Re: PSoC 3 - Programming Connections/Pins
            alex.b

            Thanks for the quick reply.

               

            Is there a preferred method? I was thinking that the SWD/SWV method has a lower pin count and therefore might be more desirable. However, is there a debugging time cost to this (do data transfers/programming take longer)?

               

            Thanks,

               

            Alex

            • 3. Re: PSoC 3 - Programming Connections/Pins
              VivekK_11

              If you do not require JTAG specific features like Boundry scan, JTAG chain programming, SWD is the recommended debug interface option. SWD is the debug interface from ARM intended to replace JTAG with lower pin count and no loss of performance or features.

              1 of 1 people found this helpful
              • 4. Re: PSoC 3 - Programming Connections/Pins
                udayanu_51

                SWD is the preferred interface for Programming and debugging. With PSoC3 SWD is a more Robust interface. Interms of timing, both the interface should take the sametime as long as the operating frequency is the same.

                1 of 1 people found this helpful
                • 5. Re: PSoC 3 - Programming Connections/Pins
                  bernard.corwin

                  U2's first illustration shows the SWD setup for miniprog3.  

                     

                  Can this configuration be used for capsense tuning as well?  

                     

                  Or are seperate pins need for I2C?

                     

                  I connected P1[0,1] to P12[1,0] respectively on my target (no pull-ups).  The tuner freezes quite a bit and the trouble seems to be I2C related.

                     

                  Any ideas?

                     

                  Thank you.

                     

                  Bernie 

                  • 6. Re: PSoC 3 - Programming Connections/Pins
                    bernard.corwin

                    Please disregard previous post.

                       

                    bc

                    • 7. Re: PSoC 3 - Programming Connections/Pins
                      surekhakc_2275991

                      Hi 

                         

                       

                         

                      I need a help in designing a 32 channel data acquisition system