Difference between revisions of "FRAM Model AIO"

From OpenMotics
Jump to navigation Jump to search
Line 8: Line 8:
 
== Data output modules ==
 
== Data output modules ==
 
;Page 1 – 10 -> Contains data of the output modules, 8 modules per page, 10 pages (80 modules maximum, 640 outputs -> 0-639)
 
;Page 1 – 10 -> Contains data of the output modules, 8 modules per page, 10 pages (80 modules maximum, 640 outputs -> 0-639)
 +
 +
{| class="wikitable sortable" border="1"
 +
| align="center" style="background:#f0f0f0;"|'''Page'''
 +
| align="center" style="background:#f0f0f0;"|'''Byte'''
 +
|-
 +
| 1||x
 +
|}
 +
 +
: This page is entirely used for output module 0-7.
 +
 +
{| class="wikitable sortable" border="1"
 +
| align="center" style="background:#f0f0f0;"|'''Page'''
 +
| align="center" style="background:#f0f0f0;"|'''Byte'''
 +
|-
 +
| 2||x
 +
|}
 +
 +
: This page is entirely used for output module 8-15.
 +
 +
{| class="wikitable sortable" border="1"
 +
| align="center" style="background:#f0f0f0;"|'''Page'''
 +
| align="center" style="background:#f0f0f0;"|'''Byte'''
 +
|-
 +
| 3||x
 +
|}
 +
 +
: This page is entirely used for output module 16-23.
 +
 +
...
 +
 +
{| class="wikitable sortable" border="1"
 +
| align="center" style="background:#f0f0f0;"|'''Page'''
 +
| align="center" style="background:#f0f0f0;"|'''Byte'''
 +
|-
 +
| 10||x
 +
|}
 +
 +
: This page is entirely used for output module 72-79.

Revision as of 14:14, 30 July 2019

Introduction

The AIO has an onboard FRAM connected via I2C to the DSPIC33E (The Master). FRAM is used to keep track of the real-time change, Eeprom is used to store the settings. This document describes the FRAM memory locations used.

General Configuration Bytes

Page 0 -> General data

Data output modules

Page 1 – 10 -> Contains data of the output modules, 8 modules per page, 10 pages (80 modules maximum, 640 outputs -> 0-639)
Page Byte
1 x
This page is entirely used for output module 0-7.
Page Byte
2 x
This page is entirely used for output module 8-15.
Page Byte
3 x
This page is entirely used for output module 16-23.

...

Page Byte
10 x
This page is entirely used for output module 72-79.