- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I posted my question in the other forum but got no answer.
The problem was I 'm trying to make 2 PSoC chip communicate via SPI.
PSoC5LP as master and the PSoC4 as slave.
The problem is, MISO line (P0_2) of the PSoC5 seem to pull the pin low.
I have change the pin to P3_0 and everything works as expected.
Can anyone explained what happened?is P0_2 (Opamp ) input cannot be buffered?
Thank you.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably you are working with some development kits. To help you more, will you please tell us exactly which?
The pins do not differ in their behaveour but on a Kit they could have some connections. Did you try to program your pin P0_2 and measure to see if it is ok?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are correct, i am using CY8KIT-050.
According to the schematic pin P0_2 doesn't seem to be connected to any other hardware except to the header.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fine that you checked that, now you should try to check P0_2 for any damage.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you set up the pin what did you pick for initial state ? A "0" or a "1" ?
- 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
The initial state is 0, as I mentioned before it seem like the pin is pull low.weird...
I test the pin as analog output and then as digital output , everything seem to be working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
P2[0] is also tied to LCD data pin thru a 10K R, maybe thats what
you are seeing ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The pin is P0_2 not P2_0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you use any other component, lika the SAR ADC or OpAmps? P0[2] has some predefined functions, maybe they get used somewhere...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
nope..just as SPI Master...and P0_2 as MISO line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Strange. Can you use P0[2] as normal GPIO port (just assign a digital out pin to it which you toggle manually e.g. once per second, or maybe just as PWM output or so)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Strange indeed ...I will test other functions (digital out/In).
Perhaps the pin was damaged somehow