Can anyone recommend a good book/tutorial on PSoC C programming for beginners? When I say beginners I mean people who have never dealt with hardware before. Any help is appreciated. Thank you.
I don't think that you will find such thing. I am a beginner in PSoC too and I have spent a lot of time searching for some info, the best I found however was on the Cypress web cite. The C programming is in plain C with some C++ syntax, so there is nothing special. Then you should take a look in the datasheets of every single component you use for the API and more detailed description. I think that you could get some training from Cypress or their partners.
Have you looked at the book My First 5 PSoC Designs by Robert Ashby? I know it's PSoC 3 (insted of PSoC 5) but at the beginner level, they are almost the exact same.
You can download a free softcopy of it here: www.cypress.com/?rID=43123
hello bobby ,
the book u were suggesting is not free i'm a student and new to this psoc 5 desigining.. can u suggest any other links where i can get some info
The Cypress site has some excellent "learning" resources, you just have to look for them carefully! If you follow along with the video projects, they are a great help for newcomers. They are all available via 'Cypress University'.
Also, the whitepapers are an excellent resource. One of the DMA whitepapers answered every single question I had about using the DMA with TDs and so on - much better than the straight datasheet or family datasheet.
Unfortunately, there aren't a lot of whitepapers, and you have to search the videos for the correct PSoC solution (otherwise you get annoying references to "PSoC 3 or PSoC 5" and "PSoC 3 and PSoC 5 devices" every time they mention the chip type!)
One of the trainers is also unaware of some of the technical details, reading range dashes as minus signs or straight dashes and so on, which is a bit distracting, but otherwise the videos are very detailed and helpful.
I hope this helps anyone looking here!
I ran across this while looking for something else. I get quite a few requests like this so I did a blog post which assembled some of the recommendations I've gotten over the years
as already mentioned, there are almost no such books and even more rarely for PSoC. For my trainees, I use the bottom-up approach: begin with small(tm) projects and/or tasks. This will ensure that the task itself is not too complicated, and the trainees get into first touch with C, port hardware, etc. For example, the first session is about some switches and LEDs, so it's no rocket science. It begins with simple reading the switches and output their state to the LEDs and finishes with a switch configurable moving light.
Then the tasks are getting higher levels, e.g. switch and LED matrixes, controlling a LCD, etc.
I think this is the best way to rise the knowledge of both hardware and programming language.
Everything starts with an Idea 😉
In addition to all the hints given above I only can advice to take the idea you have to build some thing.
Being a beginner myself I have learned to love PSoCs and PSoC Creator. Even though my first project is a quite complex thing. I have segregated it down to smaller, less complex items. Starting from there, with the help of the examples Cypress is providing it was possible to piece things together. Don't be afraid to start and don't hesitate to ask whenever you feel for it.
All the Best
I also recommend using the IDE and looking through some of the example projects. I usually find those to be really useful when I'm working with a new component.
Hello.. everybody... I have a problem... I used the PSoC 5LP but with the Serial Port my PSoC send's trash to my PC... My code haven't mistakes and all compile... I have the question What is the problem with my device... and how I solve this problem...
Welcome in the forum. Without your project it's just a guess: mismatching baud rates.
Which board are you using? A CY8CKIT-059 ? A -001??
Can you please post your complete project so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Just a hint look at your settings from baudrate, data bits, parity, stop bits and flow control.
They should match on both sides.
In the UART component and in hyperterminal or other software on your pc.