![Texas Instruments LMH0318 Скачать руководство пользователя страница 5](http://html.mh-extra.com/html/texas-instruments/lmh0318/lmh0318_programmers-manual_1094647005.webp)
Register Command Syntax
3
Register Command Syntax
Unless otherwise specified, the settings below apply to both SMBus and SPI register programming.
Operations are read-modify-write. This requires the register to be read first and modified by applying the
specific bit mask.
Command Syntax:
RAW
Register
Register
Register Mask
//Comments
Address
Content
RAW:
This defines a Read/Write command
Register Address: Specifies the register address in hex
Register Content
Specifies the value in hex that is going to be written
Register Mask:
Defines bits within the register content that will be modified
//:
Text comment
Example: RAW
In this example, we are setting reg 0x80[0] = 1'b to power down OUT0.
80 01 01
0x80[7:1] are not modified since mask = 0x01
RAR
Register
Register
Register Mask
//Comments
Address
Content
RAR:
Read Only Command
Register Address: Specifies the register address in hex format
Register Content
Specifies the register content that is being read
Register Mask:
Defines the mask for register content. For example, 1 in a mask defines bits
being read
//:
Characters following // are text comments
Example: RAR
Read 0xE2[4] and check if bit 4 is set
E2 10 10
●
When using SMBus or SPI interface, the host controller may need to set over-ride bit prior to setting
the control bits of a register
●
It is recommended to issue CDR Reset and Release after changing register settings that alters CDR
state machine
●
See
for further details on register bit definitions
5
SNLU183 – September 2015
LMH0318 Programming Guide
Copyright © 2015, Texas Instruments Incorporated