1 2 Previous Next 14 Replies Latest reply on Mar 29, 2016 5:34 AM by JoMe_264151

    PSOC4000 family. Pin mapping

      I am facing problem while pin mapping.  am getting red mark while using p[4].2 and p[4].3 port pin.

         

      am using the above pins as bidirectional pins.

         

      am not getting what is the problem and please explain me briefly about the error and please let me know the solution.

        • 1. Re: PSOC4000 family. Pin mapping
          JoMe_264151

          Datasheet tells that for PSoC4 the pins of ports >= 4 cannot be used to route hardware signals but can be used by setting the state programmatically. So I would suggest you to use ports 0 to 3 for your temperature sensors.

             

           

             

          Bob

          • 2. Re: PSOC4000 family. Pin mapping

            Thank you for your immediate response.

            • 3. Re: PSOC4000 family. Pin mapping
              JoMe_264151

              You are always welcome!

                 

               

                 

              Bob

              • 4. Re: PSOC4000 family. Pin mapping

                Hello Bob,

                   

                in PSoC 4200 family datasheet , they have given we can use port 4 pins as gpio's ,  am in confusion .

                   

                am using digital sensor , am sending command to sensor, sensor will convert the temperature and will send the 2 byte digital data to controller. am using that port as digital pins,  

                   

                please can you explain me briefly about that port(port 4).

                   

                why can not use that port pins for general purpose?

                   

                please let me know.

                • 5. Re: PSOC4000 family. Pin mapping
                  JoMe_264151

                  GPIO means you may configure the pin in several different (8) modes as input, output or IO-pin. In a PSoC4 pins on ports >= 4 are not connected to the routing matrix. You still can control the pins/ports in firmware by using Pin_Read(), Pin_Write() etc. But you cannot connect one of those pins to a PSoC internal signal.

                     

                   

                     

                  Bob

                  1 of 1 people found this helpful
                  • 6. Re: PSOC4000 family. Pin mapping

                    Thank you Bob, 

                       

                    i need one more information .

                       

                    i have mini prog 1 programmer , CY8CKIT-042 evaluation kit and CY8C4245AXI-483 IC.

                       

                    i need to flash the program in CY8C4245AXI-483 IC, is it possible to flash the program using evaluation kit and  mini prog 1 ?

                       

                    miniprog 3 is used for flashing PSoC4 devices.

                       

                      by using evaluation kit and  mini prog 1 , we can program?

                       

                    if yes , please explain me briefly

                    • 7. Re: PSOC4000 family. Pin mapping
                      JoMe_264151

                      The Miniprog1 can only be used to program PSoC1 chips. The Miniprog3 can be used for PSoC 3, 4, 5 PRoC BLE and PSoC BLE.

                         

                      When you have got a CY8CKIT-042 Pioneer Kit you do not need a miniprog3 to program the chip on the board, there is already a KitProg programmer integrated that allows for debugging etc. When you want to program your own boards, the cheapest programmer will be to get a CY8CKIT-043 Prototyping Kit that has got a snap-off KitProg which you can use to program your own boards at 5V.

                         

                       

                         

                      Bob

                      1 of 1 people found this helpful
                      • 8. Re: PSOC4000 family. Pin mapping

                        Hello Bob,

                           

                        can you explain me the difference between CY3210 and CY3217 miniprog1?

                           

                        i have CY3210, can i program PSoC(CY4245AXI-483) using PSoC programmer?

                           

                        how to generate hex flies in PsoC creator?

                        • 9. Re: PSOC4000 family. Pin mapping
                          HeLi_263931

                          Miniprog1 can only program PSoC1 devices. For PSoC[345] you need a Miniprog3, or a KitProg 8thats on the newer DevBoards).

                             

                          PSoC Creator automatically should create a hex file during compile.

                          • 10. Re: PSOC4000 family. Pin mapping

                            Thank you Hli, i need one more information.

                               

                            we know that miniprog 3 is used for programming the PSoC 4 family , my question is can i debug the my board (consist of PSoC CY4245AXI-483 MPN) using miniprog3?

                               

                            mini prog 3 - cy8ckit-002 and cy8ckit-043

                               

                            can i debug the my board by using above mini prog 3 kits?

                               

                            am using PSoC Creator IDE for coding and debugging.

                            • 11. Re: PSOC4000 family. Pin mapping
                              JoMe_264151

                              Miniprog3 allows to debug PSoC3,4 and 5.

                                 

                               

                                 

                              Bob

                              • 12. Re: PSOC4000 family. Pin mapping

                                Thank you Bob.

                                   

                                I have one more question.

                                   

                                I included stdio.h library and included printf statements in the code for printing the two integer values.

                                   

                                it is compiling without error but while debugging , it hangs and it is showing serious error and starts executing interrupt handler function. the value is not  printing on the console.

                                   

                                please explain briefly about the error and how to use printf statements. 

                                • 13. Re: PSOC4000 family. Pin mapping
                                  JoMe_264151

                                  There is no OS in your PSoC, so nobody knows where to send printf() output to.

                                     

                                  When you are using a Kitprog as debugging interface you may send the output to an UART component and use the Kitprog internal UART-USB bridge and a terminal emulation program as PuTTY.

                                     

                                  Cheapest Kitprog will be to get a CY8CKIT-043.

                                     

                                   

                                     

                                  Bob

                                  • 14. Re: PSOC4000 family. Pin mapping

                                    thank you for your immediate responce..

                                       

                                    but i just want to know while typing printf in the PSoC editor, it is showing one printf function.

                                       

                                    please find the attached image for more information.

                                       

                                    what is the use of that function and in which file  it is defined in the generated source code?

                                       

                                     

                                       

                                    1 2 Previous Next