CPC522
C P C 5 2 2 U s e r M a n u a l
29
© 2 0 2 2 F a s t w e l V e r . 0 0 1
2.3.4.2 Integrated SSD
The CPC522 modules have a 32GB SATA III SSD soldered onto the board.
2.3.4.3 Fast memory (
FRAM
) for saving user data
The board contains a non-volatile fast serial-access FRAM memory (32-KB) for storing service
information: 1 KB is used by the manufacturer and 31 KB - for
user’s critical data. The registers
and programming of the FRAM device are described further.
2.3.4.3.1. FRAM registers (logic device 3)
INDEX
I/O port address
Type
HARD RESET
Configuration register
30h
-
R/W
Activate
Base+0
R/W
00h
FRAM address value [7:0]
Base+1
R/W
00h
FRAM address value [14:8]
Base+2
R/W
00h
FRAM data value [7:0]
Base+3
R/W
00h
FRAM Control register
[7:1]
– reserved
[0]
– autoincrement mode
60h
-
R/W
Base[15:8] - I/O port base address
bits[15:8]
61h
-
R/W
Base[7:3] - I/O port base address bits[7:3]
Base[2:0]
– must be 0;
Working with FRAM requires you to set the base address of the device and activate it (LDN=3) in
the same way as the watchdog timer. Further work with FRAM is performed in the I/O area as
relating to the set base address. Bit <0> in the control register (Base + 3) enables the automatic
address increase mode when reading/writing the data register (base + 2).
2.3.4.3.2. FRAM device programming
The sequence of actions during the initialization of the device:
Enter the configuration mode
MOV DX, 302H
MOV AL, 46H
OUT DX, AL
MOV AL, 57H
OUT DX, AL
Write the number of the logical device to the LDN register
(FRAM has logical number 3)
MOV DX, 302H
MOV AL, 7
OUT DX, AL
MOV DX, 303H
MOV AL, 3
OUT DX, AL
Set the base address of the device in the I/O area (310h for example):