![PMD Atlas Compact Скачать руководство пользователя страница 95](http://html1.mh-extra.com/html/pmd/atlas-compact/atlas-compact_complete-technical-reference_1569420095.webp)
Atlas® Digital Amplifier Complete Technical Reference
95
6
DriveNVRAM
30h
Syntax
DriveNVRAM
Option Value
Motor Types
Arguments
Name
Instance
Encoding
option
NVRAM Mode
0
Erase NVRAM
1
Write
2
Block Write Begin
3
Block Write End
4
Skip
8
Type
Range
value
unsigned 16-bit
See below
None
Packet
Structure
Description
The
DriveNVRAM
command is used to program the non-volatile memory. This memory is used
primarily for user-specified power-on initialization, but may also be used for storing arbitrary non-
volatile user data.
The command
DriveNVRAM
0 1 may be used to reset Atlas without executing the commands in
NVRAM. This command is required in order to read NVRAM contents when they would configure
Atlas in pulse and direction input mode. It may be used either in NVRAM or normal modes.
Atlas must be put in a special mode of operation in order to program NVRAM, in this mode most Atlas
commands are not supported, and will return an error code of NVRAM Mode (26). In order to enter
NVRAM mode, use the command
DriveNVRAM
0 0.
While changing to NVRAM mode Atlas will not respond to SPI communications, so the controlling
processor should use this sequence of operations:
1) Send the
DriveNVRAM
command
2) Wait for at least 500 microseconds
3) Send a NOP torque command
4) While the checksum read is wrong, repeat step (3)
This sequence of operations should also be used with the
Erase NVRAM
,
Write
, and
Block Write
End
commands, all of which may interfere with SPI communications for some time. The Instruction Error
bit of the SPI status word should be checked after each such NVRAM operation, and the
GetInstructionError
command used to check error status if it is set.
DC Brush
Brushless DC
Microstepping
DriveNVRAM
write
checksum
30
h
15
8 7
0
write
option
15
0
write
value
15
0