cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

hello 

   

i'm trying to make an adc successive approximation 

   

i get this error message unable to find a solution for the analog routing

   

i enable all the channels ,connect them to an analog pins , make the mode single mode , 

   

but i still can't generate the api , any ideas please ??

0 Likes
Reply
1 Solution
Esteemed Contributor II

You are blocking the preferred analog inputs of port2 with your 7-segment display.

   

As a first approach for a new project I let the fitter choose the pin configuration by unlocking all pins.

   

 

   

Bob

   

PS: Your indentation is bad and your commenting is even worse. I strongly suggest you to improve both 😉

View solution in original post

0 Likes
Reply
6 Replies
Honored Contributor II

David please post your program so we can check it.

0 Likes
Reply
Esteemed Contributor II

As Bob said: Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
Reply
New Contributor II

thank you bob
after try and error it only work in one channel 

0 Likes
Reply
Esteemed Contributor II

You are blocking the preferred analog inputs of port2 with your 7-segment display.

   

As a first approach for a new project I let the fitter choose the pin configuration by unlocking all pins.

   

 

   

Bob

   

PS: Your indentation is bad and your commenting is even worse. I strongly suggest you to improve both 😉

View solution in original post

0 Likes
Reply
New Contributor II

thank you 
i only did that because i know that i'm allowed to do so , can you recommend any reference to know what is the preferred pins for all kinds 
meaning preferred analog , digital communication etc ?
so in future i wouldn't slip in the same mistake 
thanks for your support  

0 Likes
Reply
Esteemed Contributor II

Just click in the .cydwr view (where you set the pins) on one of your analog input pins. In the selection window you see all the preferred pins marked in green. Yellow pins show that there are restrictions.

   

Another view opens when you select the "Analog" tab showing some chip internals. there you will see that for this chip the port2 pins have individual selections to the ADC block.

   

 

   

Bob