- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to obtain the status of a port pin of CY8C9560A after sending a value. Can I get the status by reconfiguring the same port as input and reading it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you meant that at one moment you want to configure a pin as an output and after some time as an input then yes you can do that.
Best regards,
Pushek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let me elaborate.
For example, suppose port A is configured as output port and the value 32H is sent. Now it is reconfigured as input port and read. Would I get back the value 32H?
In the datasheet attached, it says in page 3 that, "
It is significant for me because I have to include a status check of the port in my project.
Regards
Sojan
When the Input register is read, the external pin logic levels are captured and transferred".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let me elaborate.
For example, suppose Port A is configured as output port and a value 32H is sent. Now it is reconfigured as input port and is read. Would I get back the value 32H?
In the datasheet attached, it says in page 3 that "when the input register is read, the external pin logic levels are captured and transferred".
It is significant for me since I have to include a status check of the port in my project.
Regards
SOJAN