- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a way to set a 10 digital outputs using an parameter in a loop like an pinMode() commands in Arduino?
A single line of code in a loop...
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is easy to write to 8 pins at once, writing to 10 pins (8+2) will have some latency as it will take 2 commands. Can you tolerate several clock mismatch in between?
There are, of course, many trucks to set all pins at once. For example, a Control register can be used in Sync mode. The output of the Control register will take effect on external sync signal, many Control registers can be synced this way. See examples here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is easy to write to 8 pins at once, writing to 10 pins (8+2) will have some latency as it will take 2 commands. Can you tolerate several clock mismatch in between?
There are, of course, many trucks to set all pins at once. For example, a Control register can be used in Sync mode. The output of the Control register will take effect on external sync signal, many Control registers can be synced this way. See examples here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using control reg component is the best way to realize this function.