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
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hmm, ok I'm adding 3 analog channels into an SAR ADC - the 1st one using P0[2] input worked fine.

   

Added another batter monitor using a pin P0[4] and got the analog routing error, so change to P0[2[ and all is well.

   

Now I'm adding a 3rd and nothing seems to make it happy - by trial and error. Even going by the PSoC 4 Pioneer kit guide and using P2[0],P2[1] and P2[2] for SARADC inputs fails.  Certainly we can use more than 2 analog inputs?

   

I have P0[0] used for a digital UART (9600Baud) in but that can be moved.

   

Any guidance for analog routing methodology?

   

Minimal bundle attached.

   

Thanks!  I'm having a lot of fun with this 😉

0 Likes
9 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Take a look at this ap note, shows dedicated pins -

   

 

   

    

   

          

   

http://www.cypress.com/?rID=93401     AN86439 - PSoC® 4 - Using GPIO Pins

   

 

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Here is a pin chart for the Pioneer board.

   

 

   

Regards, Dana.

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

I just found a documenation bug 😞

   

In the PSoC4 BLE series, the dedicated port for the SAR ADC MUX has changed to P3 (instead of P2 as on the P4xxx series). The Architecture TRM gets this right, but the family data sheet still shows P2.

   

(I found it when looking at the analog routing diagram in the design wide resources - it shows how everything is connected).

   

The BLE Pioneer board actually map A0-A5 to port P3. You probably looked at the documenation for the non-BLE pioneer board?

   

You can have two SAR ADC inputs on other ports, using the internal ADC busses. But anything else / more needs to got to P3 (and its recommened anyway to reduce internal capacitance and input resistance)

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

Despite the documentation bug Hli pointed to, when assigning *real* pins, all port3 pins are shown as SARMUX indicating their primary use. When your PCB is not fabricated yet you'll be fine off!

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

hli, when you report the bug might suggest the ap note be revised as well

   

(the assigned pin table is incorrect per your findings) -

   

 

   

    

   

          

   

http://www.cypress.com/?rID=93401     AN86439 - PSoC® 4 - Using GPIO Pins

   

 

   

 

   

Regards, Dana.

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

I think AN86439 is still correct since its not talking about the BLE series. But that limitation should be mentioned somewhere at least to avoid confusion.

   

(MyCase created)

0 Likes
Anonymous
Not applicable

Oh good - thanks y'all, port3 for ADC it is. Tested and verified.  CySmart shows thermometer responds to heat and ice 😉

   

Someday I'll research using the I2C DS18B20 sensor but for now the TMP36 / ADC channel will do fine.

   

Thanks for the weekend support - you guys are great!

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

No, we just have too much time on our hands 😉

   

(OTOH Cypress only needed about an hour to respond to my support case either - they will change the docs)

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

 @chswiger

   

Since you mentioned temperature measurement using DS18B20 digital thermometer, I posted custom component for that a while ago:

   

http://www.cypress.com/?app=forum&id=2492&rID=102624

   

odissey1

0 Likes