Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Getting by on Example C code is no longer enough

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Getting by on Example C code is no longer enough
Moderator:
JFMD

Post Reply
Follow this topic



Getting by on Example C code is no longer enough

TDGM posted on 03 Mar 2011 12:01 PM PST
Top Contributor
29 Forum Posts

I'm an analog circuit guy. I took a C programming class, an assembly language class, and a Basic class in the distant past (before IDE's were invented). I have been getting by in the PSoC world by adapting the example code for quite a while now. As I am getting more ambitious, I would like to know more about the features and functions of the Creator IDE and the best reference for the syntax used by the C compiler. Would someone 'in-the-know' please suggest (for both these areas seperately)...?

1.  On-demand training or video (intro level and above)

2.  Cypress (or provider) documentation

3.  One or two 'C' textbooks that (hopefully) would not lead me very far outside the PSoC syntax

Thanks very much.

Tim M




Re: Getting by on Example C code is no longer enough

Robert-CY posted on 03 Mar 2011 03:42 PM PST
Cypress Employee
129 Forum Posts

Hi Tim,

you are crossing over the analog border line, that's great and will open a whole new world. To get you going here are some pointers.

If you start on the "Creator homepage" http://www.cypress.com/?id=2494  you will see on the right hand side lots of links. One is to Videos http://www.cypress.com/?id=2494&rtID=337 and several others to documentation.

The best entry point for training though is http://www.cypress.com/go/training

Documentation is also available within Creator for every component, right click on the component and one option will be "Open Datasheet".

My first 5 PSoC3 designs is good reading:

http://www.cypress.com/?rID=43123

 

As for a good C-Book, that is highly depending on personal liking.

"The C programming language by Kernighan / Ritchie" is old but still a reference.

"Embedded C-programming by Michael J. Pont" comes to mind.

Have fun developing with PSoC and Creator!

Robert



Re: Getting by on Example C code is no longer enough

TDGM posted on 05 Mar 2011 08:15 PM PST
Top Contributor
29 Forum Posts

Robert, thanks very much. I have looked at much of that already but will definately take a look at those links and the embedded C book... I have a copy of K&R C 2nd edition... somewhere...

Thanks again.



Re: Getting by on Example C code is no longer enough

Gautam Das posted on 07 Mar 2011 04:42 AM PST
Cypress Employee
742 Forum Posts

Hi TDMG,

 

The syntax can also be referred to from the Keil Documentation available in the PSoC Creator.

The relevant APIs associated with a given component can be obtained from the Component datasheet.



Re: Getting by on Example C code is no longer enough

TDGM posted on 08 Mar 2011 10:58 AM PST
Top Contributor
29 Forum Posts

Hi DASQ,

I am having trouble seeing syntax in the Keil Docs... I'm not used to that kind of doc, I guess.

For example: if.... else if.... then(?), ... else and then putting if (and else if) statements within another set of them. How can one keep track of the pieces so they function in a way that is predictable and (hopefully) productive.

Where in the Keil docs do I find that? OR... is there a fundamental C programming syntax or methodology that I've skated right past?

On a different note: where would you recommend I learn Creator debugging... stepping thru code and dealing with stepping into interrupt service routines (when I'm not expecting that event)?

Thanks

Tim (aka TDGM and Tim M)






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20