Hi
I am trying to store values to the EEPROM in the MIAC.
The simulation works fine, but when it is downloaded to the MIAC unit it appears that the maximum value that can be stored is 255.
Example; if storing the number 255 the simulation and MIAC store 255. if storing 256 then the simulation stores 256 but the MIAC appears to stores 0 as this is what is displayed when the EEPROM is read and its value displayed
Is there a maximum value that can be stored?
Using the EEPROM in the MIAC
-
- Posts: 33
- Joined: Tue May 21, 2013 4:21 pm
- Been thanked: 1 time
- Contact:
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Using the EEPROM in the MIAC
Hello Dave,
The EEPROM in a MIAC is an array of bytes (8bit value), so 0-255 are the only available numbers you can store in it.
To store higher numbers you will need to use two or more EEPROM locations and combine them, with just two memory locations you can get numbers from 0 to 65,535 (16bit value)
The EEPROM in a MIAC is an array of bytes (8bit value), so 0-255 are the only available numbers you can store in it.
To store higher numbers you will need to use two or more EEPROM locations and combine them, with just two memory locations you can get numbers from 0 to 65,535 (16bit value)
-
- Posts: 33
- Joined: Tue May 21, 2013 4:21 pm
- Been thanked: 1 time
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Using the EEPROM in the MIAC
Hi Dave,
You may already know how to store numbers higher than 255 in EEPROM.
Just in case your not sure I have posted a flowchart here:
http://www.matrixmultimedia.com/mmforum ... 79&#p24210
Hope that will help.
If you need any further help just ask away,
You may already know how to store numbers higher than 255 in EEPROM.
Just in case your not sure I have posted a flowchart here:
http://www.matrixmultimedia.com/mmforum ... 79&#p24210
Hope that will help.
If you need any further help just ask away,
Martin