- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
In my design I've defined an 8 pin non contiguous output port.
After executing Build, there is no API created for the port.
I can't post the design here.
Is there a solution for this?
Also, in the same design I have a 4 pin non contiguous input port. For this port there is only one file in the API - Port_aliases.h. There are no Read() or Write() functions for the pins. How can I read these pins?
Thanks.
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try to delete the pins for which the APIs aren't generated and create them anew.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"I can't post the design here."
You do not need to post the design, but you can make an example which you can post here. This would ease my amount of work to see what you want to do and try out different solutions.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I made an example with 2 ports - one contiguous and the other non-contiguous. The contiguous port compiles with "full" API. The non-contiguous gets only the _aliases.h file (which is more than in my main design).
It seems that I couldn't recreate the problem in the example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The term "Port" describes the chip-internal connection to the outer world which is grouped in (up to) 8 data lines with its internal registers. So a "non contiguous port" does not exist. There are a couple of APIs to access pins listed in the "System Reference Guide" (from Creator Help). These you will need to use when accessing non countiguous pins.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A "non contiguous port" is my definition for multi-pin input (or output) pin component, with Contiguous option disabled in the Mapping tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I was aware of "your definition".
Datasheet says:
The API functions access all pins in the Component in a single function call. Efficient
implementation of Component-wide function is only possible if all pins are placed in a single
physical port on the device. They are generated only if the Component is configured to be
contiguous. Non-contiguous Pins Components only allow access on the per-pin basis described
under Per-Pin API.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see.
But still, there is no API for these pins in my design (not even aliases), as if they don't exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, that is what is said in the datasheet. Use the APIs from "System Reference Guide".
Still no example project upload?
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
Try to delete the pins for which the APIs aren't generated and create them anew.
Bob