- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello I am a bit confused , i cant really understand in what language the psoc working , is it C ? or C++ ? or maybe even C sharp ?
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would suggest you to install Cypress Creator 4.2 IDE. All the required support (documentation, libraries) are generated automitically. You will be able to set all the properies of your components as ADC, IO-Pins and interfaces. There are no C++ libraries from Cypress at this time.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cypress Creator IDE is using C Language as standard. There are some tricks to have C++ compiled. C# is microsoft os dependent and will not work on embeddeds.
Of course you might use ARM assembly, but I won't suggest you to write code in a 3-operand RISC assembly language.
When you tell a bit more (or a byte more 😉 wh can probably make some suggestions...
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
well I need to use the ADC block and wondering that there are libraries from C++ and not only C language.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would suggest you to install Cypress Creator 4.2 IDE. All the required support (documentation, libraries) are generated automitically. You will be able to set all the properies of your components as ADC, IO-Pins and interfaces. There are no C++ libraries from Cypress at this time.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you create a new project in PSoC Creator, you can choose a sample project as the basis. There are several ADC examples.
Follow these steps:
- Launch PSoC Creator
- In the "Start Page" window, click on "Find Code Example"
- In the dialog that appears chose the "PSoC 5LP" Device family.
- Chose one of the ADC examples from the list.
"ADC_SingleEndedMode" might be a good place to start.
The project should be created, and a data sheet all about the project should be opened automatically.
In PSoC Creator, start by looking at the "TopDesign.cysch" file.
Are you familiar with PSOC 5LP and the Creator Software?
If not, then it will be different from what you might be used to. The PSoC family are hard cpu cores, coupled with logic blocks and programmable logic. The blocks and logic are more like a CPLD or FPGA than a traditional MCU, and so there is a different approach to using them. Many things, like for example flahshing an LED can be handle 100% in hardware, without a single line of code required, except to setup the hardware, and then the LED can flash on an off all day without using up a single CPU cycle. That is just a trivial example. Using CPLD/FPGA style logic is extremely powerful - it is well worth taking the time to learn and understand it.