- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi developers,
i have a doubt regarding internal routing between two analog modules through port pins. can any pin which is configured as an analog module's output can also be used as an input to other module? in other words can its "drive" setting be "strong" and simultaneously its "select" setting be "analoginput"
for example the port 0 pin 5 can be an output pin from a buffer at the same time can it be used in the input side of another PGA ?
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may set the output to "strong" and define it as analog input at the same time. The question is:does that make sense? The analog input (your PGA) will "see" the voltage on the pin, which is a digital (outputted) signal and has its defined voltage-levels.
So, what do you want to accomplish or is it just a kind of theoretical question? Keep in mind, that with the internal routing you may of course generate shortcuts and other quite unusable configurations.
Happy routing
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi bob,
The doubt arised from this project regarding peakholding. in this project see the port 0 pin 4. which acts as an output and as an input at the same time.
- 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
sorry some how the attachment is not shown.
- 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
What's your specific application? If I base it on what you said as peakholding, are you planning to attach a capacitor/resistor?
There are drive modes, e.g. Open Drain High, wherein an output 1 generates a strong HIGH output, an output 0 activates High Z and reading the port will get the status of the port.
You have also an option to modify the PRTxDMx registers (PRT0DM0/PRT0DM1/PRT0DM2 for port 0) on the fly so you can switch between strong digital I/O and analog input for the same pin.
Your intended application will dictate the best way to configure the PSoC.