- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
It is necessary to measure the voltage across the resistor using psoc 4 prototyping kit (CY8C4125AXI-483).
I add an ADC_SAR_Seq component, but it makes two errors.
"Too many clocks allocated for SARADC components."
"Resource limit: Maximum number of SAR Fixed Blocks exceeded (max=1, needed=2)."
I just add a component to empty project. What I have to do? Maybe there is another method to get a voltage?
Taras
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In cases like yours it is always advisable to post your complete project here, so that we all can look at all of your settings.To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are modifying an existing design which already contains an ADC. In the view of Topdesign.cysch you will find several tabs at the bottom of that window, one of them is named "ADC" some others ("DAC". "LCD") are disabled and so do not use any components.
It might be easier for you to start with one of the examples that that have been installed together with your kit or to be found on the Creator Start page under "Examples and Kits"->"Find Example Project"
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Instead of starting with a bare project you used the prepopulated schematics which
are using most if not all the resources. Right click the other schematic tabs you are
not using and either delete them of disable them.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your schematic shows you feeding 5V to chan 0 of the SAR, buts its range is setup
for 0 - 2.048V (single ended). So thats an issue.
Note you do not buffer chan 0 so any measurement you take will be affected by the
SARs low input Z.
Also you do not use ADC_IsEndConversion(uint32 retMode) API to determine when
data is ready, when the SAR has finished converting all channels. Or use the EOC ISR
and set a flag to indicate your SAR finished. There is a placeholder in the ISR file to put
your defines and code. Any variables used that are global should be declared volatile.
Note if so desired you can let the SAR run continuously rather than start and stop it.
http://www.barrgroup.com/Embedded-Systems/How-To/C-Volatile-Keyword Volatile
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all! I found the solution! It was necessary to use a different function!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad we could help.
Regards, Dana.