Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: spizzak on July 18, 2009, 07:40:43 PM
-
I saw that the datasheet for the atmega8 says it has a maximum of 23 i/o lines. If I wanted to keep the 6 pin connector for the programmer, how many I/O ports is it possible to use? And how can they be used? Working from the $50 robot design, I'm guessing I would need to solder on some more busses and connect header for the rest of the locations. Is there any more detailed info on how to do this anywhere?
-
there are 11 digital I/O that are not being used by the programmer... 3 that are used by the programmer
(sck, mosi, miso) and then the 6 analogue I/O. look at the attached images for reference.
so the maximum I/O you can have without using the programming pins is 17 (6 analogue, 11 digital)
-
Technically it would be 17 digital pins, 6 of them being able to read analog voltages. It isn't good to think certain pins are analog and others are digital - all are digital, but some ports have certain features like interrupts, timers, and ADCs.
-
uhh... doesn't everybody know that the avr's analog and programming pins can be used a regular I/O pins?
-
uhh... doesn't everybody know that the avr's analog and programming pins can be used a regular I/O pins?
apparently not, or he wouldn't be asking the question.
like SmAsH and Razor both mentioned, it would be 17 pins. And, for the Atmega8 any pin that can input or output (whether digital or analog) can be used as a digital I/O pin. Some of these pins may also have special features which they can be used for. For example, some pins can read analog values, and some pins can write PWM.
-
like SmAsH and Razor both mentioned, it would be 17 pins.
20 if you count sck, miso and mosi ;)
-
like SmAsH and Razor both mentioned, it would be 17 pins.
20 if you count sck, miso and mosi ;)
counting was never my thing, once i get past 10 i'm sunk, unless i'm wearing sandals ;)
-
like SmAsH and Razor both mentioned, it would be 17 pins.
20 if you count sck, miso and mosi ;)
counting was never my thing, once i get past 10 i'm sunk, unless i'm wearing sandals ;)
i didn't get the sandals part?
-
Sandals are open toed ;)
-
ah, lol... i see what you did there... nice...
-
i made a funny....
now this thread gets trashed with continuations of i can't count jokes. at least we answered the question first