- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi folks,
If I place an opamp in the designer, how can I tell whether this is implemented as opamp0, opamp1, opamp2 or opamp3 in hardware? I have placed a single opamp, but can't tell whether its output should appear at pin P0[1], P3[6], P0[0] or P3[7] (from the opamp datasheet).
Thanks,
Stephen
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Build your design. Then look at the Design-Wide Resources Pin Editor. The table will show you where PSoC Creator mapped the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stephenf555,
You can see the mapping of the opamp by referreing to the cyfitter_cfg.c file in the Workspace. In AnalogSetDefault(void), the opamp used will be specified.
Another way of determining it is as follows, In case you use an opamp but did not assign any pin in the .cydwr Pins tab, then Creator will assign one of the pins P0[0], P0[1], P3[6] or P3[7]. But looking at which pins has been chosen, you can figure out which opamp is used.
There is also provision to Force Creator to use a Specific Analog Block. Like say, in your design you want to use opamp0, then you can do so by going to 'Directives' tab in .cydwr, choose Directive Type as 'ForceComponentFixed' and force Creator to use opamp0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Excellent, thanks very much folks.