Hi all,
Intro:
So I've been searching for atmega328 details..etc months and months ago and I opened a topic
here as well about I2C so I'm a bit familiar but I'd like to know from more experienced people more
and more in deep details bit to bit about the atemga328 because I have a project and need to
know exactly with what I'm working and what's the possibilities and abilities of the chip.
Atmega328 :
Flash: 32kb
RAM: 2kb
ROM: 1kb
32pins
Voltage 1.8-5.5v
0-20Mhz
(there is more but i wrote the basic details)
So I'm planing to build a board with several chips interacting with each other but as example let's take just 3 chips, why 3 and not 2? because with 3 there is more possible ways to transfer data. Few things that I don't know but I know from actual computers is RAM ram is used to store temporary data, the data which you send/receive or process in the (OLED, liquid display, serial as out or input).
2kb = 2.000bytes = 16.000bits (1 byte = 8bits).
As we know from ASCII table we store each character in a array of 8 bits which makes one character
= 1 byte. At this point we can read/write 2kb, 2k characters per second?
Example: We got 3x 328p chips connected thru I2C, 1st chip send a 500byte array of characters, the 2nd one 1000byte of characters and the 3rd one 1000 byte array of characters.
1st one send to -> 3rd
2nd send to ->1st and
3rd send to ->1st
We got a 500bytes going out of the 1st chip and at the same time 2000byte coming at the chip,
as we know there is 2kb RAM, so the chip will "crash"?
at my point of view I think it will.
About the speed Mhz
So we got 16Mhz 16.000Hz, or 16.000 times per second, mostly know as 16.000 cycles per second.
How exactly can someone understand the processing times per second and bytes/bits ?
16.000 that means is a 16byte/bit processor?
and what's the actual difference between Mhz and bit?
The main point of this topic is to understand and use practically the chip with the right coding and
saving storage adding more and more getting even the last drop of juce. To make a compact coding
with full storage and working almost at the edge of the bits
D.60