Attachments are accessible only for community members.
Anonymous
Not applicable
Sep 03, 2013
05:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 03, 2013
05:06 AM
Hi
On my own breadboard[Cy8C3246AXA], GPIO Read has a problem.
It is a 4bit program Sw, connect to P5[4]-P5[7]
Pins driive mode is Resistive pull up, initial:HIgh, Max voltage:5V
If program digit is ONE, port register might be 0xE0.
Actually, measured voltage is 0V,0,0,5V
But always 0x00 was red, whichever program digit is.
I had attached the project.
Any suggestions?
On my own breadboard[Cy8C3246AXA], GPIO Read has a problem.
It is a 4bit program Sw, connect to P5[4]-P5[7]
Pins driive mode is Resistive pull up, initial:HIgh, Max voltage:5V
If program digit is ONE, port register might be 0xE0.
Actually, measured voltage is 0V,0,0,5V
But always 0x00 was red, whichever program digit is.
I had attached the project.
Any suggestions?
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 3
1 Solution
Sep 03, 2013
05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 03, 2013
05:41 AM
When reading the port with the appropiate APIs you'll have to select yourself the right bits by masking and shifting. When reading the pins the API does the shift for you and returns false (0x00 or true (0x01).
Bob
Bob
4 Replies
Anonymous
Not applicable
Sep 03, 2013
05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 03, 2013
05:08 AM
Typo:
Actual voltage: 5v,5v,5v,0v
Actual voltage: 5v,5v,5v,0v
Anonymous
Not applicable
Sep 03, 2013
05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 03, 2013
05:30 AM
Oh, I was misreading the Pins API function.
Bit shift was done in the API.
I had no need to shift the port value, that's useless.
sorry for that.
Bit shift was done in the API.
I had no need to shift the port value, that's useless.
sorry for that.
Sep 03, 2013
05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 03, 2013
05:41 AM
When reading the port with the appropiate APIs you'll have to select yourself the right bits by masking and shifting. When reading the pins the API does the shift for you and returns false (0x00 or true (0x01).
Bob
Bob
Anonymous
Not applicable
Sep 03, 2013
05:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 03, 2013
05:48 AM
Thank you.