cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

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.

0 Likes
12 Replies
Bob_Marlowe
Expert II

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

0 Likes
Anonymous
Not applicable

 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.

0 Likes
Bob_Marlowe
Expert II

Fine that you checked that, now you should try to check P0_2 for any damage.

   

 

   

Bob

0 Likes
ETRO_SSN583
Esteemed Contributor

When you set up the pin what did you pick for initial state ? A "0" or a "1" ?

   

 

   

0 Likes
ETRO_SSN583
Esteemed Contributor

Image did not post, attached.

0 Likes
Anonymous
Not applicable

 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.

0 Likes
ETRO_SSN583
Esteemed Contributor

P2[0] is also tied to LCD data pin thru a 10K R, maybe thats what

   

you are seeing ?

   

 

   

0 Likes
Anonymous
Not applicable

 The pin is P0_2 not P2_0 

0 Likes
HeLi_263931
Honored Contributor II

Do you use any other component, lika the SAR ADC or OpAmps? P0[2] has some predefined functions, maybe they get used somewhere...

0 Likes
Anonymous
Not applicable

nope..just as SPI Master...and P0_2 as MISO line

0 Likes
HeLi_263931
Honored Contributor II

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)?

0 Likes
Anonymous
Not applicable

Strange indeed ...I will test other functions (digital out/In).

   

Perhaps the pin was damaged somehow

0 Likes