Pinguino Forum
Which are the analog input pins in MICRO? - Printable Version

+- Pinguino Forum (http://forum.pinguino.cc)
+-- Forum: General (http://forum.pinguino.cc/forumdisplay.php?fid=5)
+--- Forum: Frequently-Asked Questions (http://forum.pinguino.cc/forumdisplay.php?fid=9)
+--- Thread: Which are the analog input pins in MICRO? (/showthread.php?tid=3792)

Pages: 1 2


Which are the analog input pins in MICRO? - jumpjack - 18-01-2013

Which are the analog input pins in PIC32 Pinguino MICRO?
The only definitions I can find are:

#elif defined (PIC32_PINGUINO_MICRO)
#define GREENLED 32 //PORTGbits.RG6 // led1
#define YELLOWLED 10 //PORTDbits.RD1 // led2


While for non-MICRO there are:
#elif defined(PIC32_PINGUINO) || defined(PIC32_PINGUINO_OTG)
// Arduino's digital pins
#define D0 0
#define D1 1
#define D2 2
#define D3 3
#define D4 4
#define D5 5
#define D6 6
#define RTCC 6
#define D7 7
#define D8 8
#define D9 9
#define D10 10
#define D11 11
#define D12 12
#define D13 13
// Arduino's analogic pins
#if defined(__ANALOG__)
#define A0 0
#define A1 1
#define A2 2
#define A3 3
#define A4 4
#define A5 5
#define A6 6
#define A7 7
#else
#define A0 14
#define A1 15
#define A2 16
#define A3 17
#define A4 18
#define A5 19
#define A6 20
#define A7 21
#endif

Wait, maybe I found the answer into analog.c:

#if defined(PIC32_PINGUINO_MICRO)

u16 __analogmask[] = { _1, _2, _3, _4, nil, nil, nil, _8, // 0- 7
_9, _10, _11, _12, nil, _14, nil, nil, // 8-15 nil is a unavailable pin
_0, nil, nil, nil, nil, nil, nil, nil, // 16-23
nil, nil, nil, nil, nil, nil, nil, nil }; // 24-31

Numbers in comments represent IDE numbers, hence this should mean that available input pins in PIC32 PINGUINO MICRO IDE are:
0,1,2,3,7,8,9,10,11,13

which should match to PIC pins:
1,2,3,4,8,9,10,11,12,14

which match to CON pins:
CON2-16, CON2-15, CON2-14, CON2-13, CON2-8, CON2-7, CON2-6, CON2-5, CON2-4, CON2-2

So the crossreference we need for analog inputs on PIC32 PINGUINO MICRO (search engine optimization :-) should be:
IDE - CON2
0-16
1-15
2-14
3-13
7-8
8-7
9-6
10-5
11-4
13-2

Unfortunately I can't find anything about maximum voltage, sampling speed and bits number.

USE AT YOUR OWN RISK!


RE: Which are the analog input pins in MICRO? - pingotg - 18-01-2013

The board schematic shows the chip type. It's made by Microchip and their site has the detailed data sheet which answers what you ask.

John


RE: Which are the analog input pins in MICRO? - jumpjack - 18-01-2013

"Detailed" is not the right term. "Humongous" is the right one.
Totally useless, can't look inside 1 thousands page spread around 20 chapters, one file per chapter, just to figure out how to use ONE pin.
Pinguino project is really hilarious. And I even PAID to have one of their experimantal alfa buggish boards!!!


RE: Which are the analog input pins in MICRO? - pingotg - 18-01-2013

If you ignore data sheets on any uC you will regret it and deservedly so.

Every uC maker writes them for very good reasons.

Obviously you don't need to do as you allege.

You could of course do the same as I suggested before with that Xref file but you should still consult the proper doc for max ratings etc.

John


RE: Which are the analog input pins in MICRO? - moreno - 19-01-2013

Hi

A complex device require complex documentation.


Bye Bye, Moreno


RE: Which are the analog input pins in MICRO? - jumpjack - 19-01-2013

(19-01-2013, 07:58 AM)moreno Wrote: Hi

A complex device require complex documentation.


Bye Bye, Moreno

Definitely not true!
Would you like to need to read full datasheets of components inside your TV set or cellphone to be able to use them?!?


RE: Which are the analog input pins in MICRO? - pingotg - 19-01-2013

Yes if you wanted to go inside the set and make meaningful changes to its functioning.

That is the equivalent of what you wish to do.

John


RE: Which are the analog input pins in MICRO? - moreno - 19-01-2013

Hi

Or if I want repair it.

I think you want a magic box which fulfilling your every wish, I think is not the case of Pinguino.


Bye Bye, Moreno


RE: Which are the analog input pins in MICRO? - pingotg - 19-01-2013

It doesn't exist for any platform, never will and indeed is by definition impossible.

You just have to learn enough for your own wants. Sometimes it needs hard work.

One alternative is to have limited wants then find something that matches them and has very few excess features. That very definitely isn't an open-ended highly flexible fully-featured uC such as those supported by Pinguino project.

John


RE: Which are the analog input pins in MICRO? - jumpjack - 19-01-2013

On arduino board what each pin does is clearly written on the PCB itself! "Analog in", "Power", Digital, TX, RX, even in very first models dated 2008!

[Image: arduino_dritto.jpg]

It's not that hard, even Olimex should be able to write something on a PCB!

But no, they think it's MUCH more important writing the name of EACH COMPONENT! R1, C2, D1,.... (Who cares how the components are named??? Huh)
[Image: PIC32-PINGUINO-MICRO-2.jpg]

I don't need to build such an incredibly complex project, I just need to log a couple of analog values, and I already spent a week reading useless Pinguino "user manuals" (manuals? they're not manuals, they are brochures!), collecting PDFs, JPGs and documents from all around the world.
Very boring.