unable to find a solution for the analog routing

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
dafa_1669371
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

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
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
6 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

David please post your program so we can check it.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
lock attach
Attachments are accessible only for community members.
dafa_1669371
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

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

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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 😉

0 Likes
dafa_1669371
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

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
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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