Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:13 24 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Analog vs Digital I/O

Author Message
pcaffalldavis

Senior Member

Joined: 17/10/2011
Location: United States
Posts: 187
Posted: 04:08pm 20 Nov 2011
Copy link to clipboard 
Print this post

I'm trying to understand what the differences of the 20 MM outputs are exactly.

Seems like all 20 can be used as digital I/O. Looks like temperature sensors will run on the uppper row or bottom row of 10 pins. Before I define all my pins with soldered jumpers on the PCB I thought I'd better check to make sure what exactly the top 10 pins can do that the bottom 10 can't. And for the life of me, even after researching analog computers on wikipedia I don't understand what the special advantage of analog pins is, nor exactly how to use them. Seems I can run 24 volt relays off of either row, and I think the 16x2 LCD will run off the upper row too, so am I missing something basic?

Pete in Hyder
We're all here 'cause we're not all there.
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 04:13pm 20 Nov 2011
Copy link to clipboard 
Print this post

at the point of not really wanting to anser this but have you read the maximite manual and you will see that the pins 10- to 14 can do special functions .....pointless....
technicians do it with least resistance
 
pcaffalldavis

Senior Member

Joined: 17/10/2011
Location: United States
Posts: 187
Posted: 04:35pm 20 Nov 2011
Copy link to clipboard 
Print this post

If you don't have anything accurate or helpful to contribute would you please refrain from answering my posts?

I've read the manual many times. There is no mention of pins 10-14 being different. 1-10 are different from 11-20 but I could not find any explanation of exactly what these differences mean to the un-initiated. Seems like logic “high/low” can be run on either set of pins, and it appears floating point values like are used in temperature sensors can be handled by either set of pins. So, like I asked originally; What exactly are the benefits of the analog 1-10 pins and how might they best be used?

Sparkey need not reply.

We're all here 'cause we're not all there.
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 04:48pm 20 Nov 2011
Copy link to clipboard 
Print this post

page 20 and page four of the manual ver 2 point seven ...this may help 2011-11-21_030601_pin_volts.pdf Edited by sparkey 2011-11-22
technicians do it with least resistance
 
elproducts

Senior Member

Joined: 19/06/2011
Location: United States
Posts: 282
Posted: 06:02pm 20 Nov 2011
Copy link to clipboard 
Print this post

Analog pin are Analog to Digital converter pins.
This means they can be connected to an analog voltage and the software will convert it to a digital value.
This allows you to hook up sensors to Maximite and measure variable temperature, voltage, pressure, etc. with the proper sensor connected.

Digital pins just sense or drive digitally (on/off, high/low, etc.).

All 20 Maximite I/O can be digital but only 1-10 can be analog.
www.elproducts.com
 
mookster1
Regular Member

Joined: 10/06/2011
Location: New Zealand
Posts: 81
Posted: 07:46pm 20 Nov 2011
Copy link to clipboard 
Print this post

Hi pcaffalldavis!

Pins 11-14 are counting pins i.e. they can also act as a frequency counter up to 200kHz (and count pulses over 10ns wide). Those pins are 3.3V and can be used as analogue inputs.


Happy to help

mookster1

RE your original question about the analogue pins: they have an analogue-digital converter behind them which lets them sample voltages ranging from 0-3.3 volts. The Maximite gives the values of these back as actual voltages (i.e. no conversion from a bit value to actual voltage.) Possible uses include graphing the voltage like an oscilloscope (there's an example program in the downloadable zip of example programs that demonstrates this) and it can be used to measure the frequency of mains voltage (just wrap an insulated wire around an insulated mains cable, connect it to an analogue pin and either frequency-count it or just use the ADC and graph it.) You could also connect a microphone and record sounds (I haven't tried this though.)Edited by mookster1 2011-11-22
Capacitance is futile - roll on 2012!
 
Warpspeed
Guru

Joined: 09/08/2007
Location: Australia
Posts: 4406
Posted: 09:58pm 20 Nov 2011
Copy link to clipboard 
Print this post

  pcaffalldavis said   I'm trying to understand what the differences of the 20 MM outputs are exactly.


The history of microcontrollers is a long and interesting one.

But very briefly, as devices became much more powerful with more available internal features added, the number of connection pins to the outside world became a severe bottle neck.

The solution to this problem is to make many of the connection pins have more than one possible function. It would be very unusual to need to use absolutely every possible available feature of the device, so it is entirely practical to allocate pin functions.

A very basic requirement might be that some user applications require more inputs than outputs, or vice versa. Being able to use a particular pin as EITHER an input or an output greatly adds to the usefulness of the device.

But it does not stop there.
Some pins can also be multi functional and access analog inputs or outputs, internal timers and counters, and have other very specific specialties.

When laying out your circuit board you need to first figure out what functions of the microcontroller are needed, and which specific pins have those particular features selectable in software.

If you read the application notes for the particular chip, it will tell you exactly what each pin can do, and how to select that function in software.

This is a general answer to your question, not a specific answer for the exact chip you are using.

Cheers,  Tony.
 
pcaffalldavis

Senior Member

Joined: 17/10/2011
Location: United States
Posts: 187
Posted: 05:24am 21 Nov 2011
Copy link to clipboard 
Print this post

Thank you folks. That is helpful.

Pete in Hyder
We're all here 'cause we're not all there.
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 07:45am 21 Nov 2011
Copy link to clipboard 
Print this post


does this help.
Thanks to http://www.hamfield.com.au/


Channels (Pins) Functionality

1-10 Analog Input (3.3V)
Digital Output (3.3V)
Digital Input (3.3V)
Interrupt (low and High)

11-20 Digital Output (3.3V)
Digital Input (5V)
Open Collector Output (max pull up 5V)
Interrupt (low and High)

11-14 Frequency Input
Period Input
Counting Input






Cliff
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024