Digi NS9215 manual C o m m a n d i n t e r f a c e, Command Name Description

Models: NS9215

1 517
Download 517 pages 25.29 Kb
Page 449
Image 449

I 2 C M A S T E R / S L A V E I N T E R F A C E

. . .

I2C command interface. .

I 2 C c o m m a n d i n t e r f a c e

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Locked interrupt driven mode

Master module and slave module commands

The I2C module converts parallel (8-bit) data to serial data and serial data to parallel data between the processor and the I2C bus, using a set of interface registers.

The primary interface register for transmitting data is the CMD_TX_DATA_REG (write-only).

The primary interface register for receiving data is the STATUS_RX_DATA_REG (read-only).

I2C operates in a locked interrupt driven mode, which means that each command issued must wait for an interrupt response before the next command can be issued (illustrated in "Flow charts," beginning on page 457).

The first bit of the command — 0 or 1 — indicates to which module — master or slave, respectively — the command in the CMD field (of the CMD_TX_DATA_REG) is sent. The master module can be sent a master command only; the slave module can be sent a slave command only (see "Master module and slave module commands," beginning on page 449, for a list of commands). If a command is sent to the master module, that module is locked until a command acknowledgement is given. Similarly, if a command is sent to the slave module, the slave module is locked until it receives a command acknowledgement. With either module, the acknowledgement can be any interrupt associated with that module. When a module is locked, another command must not be sent to that module.

The command lock status can be checked in the STATUS_RX_DATA_REG.

The I2C master recognizes four high-level commands, which are used in the CMD field of the Command register; the I2C slave recognizes two high-level commands:

Command

Name

Description

 

 

 

0x0

M_NOP

No operation.

0x4

M_READ

Start reading bytes from slave.

 

 

 

0x5

M_WRITE

Start writing bytes to slave.

 

 

 

0x6

M_STOP

Stop this transaction (give up the I2C bus).

0x10

S_NOP

No operation. This command is necessary for 16-bit

 

 

mode, providing data in TX_DATA_REG without a

 

 

command.

 

 

 

0x16

S_STOP

Stop transaction by not acknowledging the byte

 

 

received.

 

 

 

Bus arbitration Any M_READ or M_WRITE command causes the I2C module to participate in the bus arbitration process when the I2C bus is free (idle). If the module becomes the new

www.digiembedded.com

449

Page 449
Image 449
Digi NS9215 manual C o m m a n d i n t e r f a c e, Command Name Description

NS9215 specifications

The Digi NS9215 is a powerful solution designed for industrial applications that require reliable connectivity and robust performance. Built on a foundation of advanced technologies, the NS9215 serves as a versatile networking device that meets the demands of automation, remote monitoring, and data acquisition.

One of the standout features of the Digi NS9215 is its multi-protocol support. It is capable of handling various communication protocols, including Ethernet, Serial, and Wireless, making it ideal for integration into heterogeneous environments. This flexibility enables users to connect legacy devices to modern networks seamlessly, facilitating smoother data communication across different platforms.

The NS9215 is equipped with powerful processing capabilities, featuring an integrated processor that ensures efficient data handling. This enables the device to perform complex data tasks without compromising performance. Its high-speed connectivity options also allow for rapid data transmission, which is crucial for real-time applications in industrial settings.

Another critical characteristic of the Digi NS9215 is its reliability in harsh environments. Built to withstand extreme temperatures, humidity, and electrical interference, this device assures consistent operation even in challenging conditions. Its rugged design minimizes the risk of failure, making it suitable for deployment in various industrial environments.

Security is a top priority for the Digi NS9215. It comes with advanced security features that protect sensitive data during transmission and prevent unauthorized access. Employing encryption protocols and secure authentication methods, the NS9215 ensures that data integrity and confidentiality are maintained throughout its operation.

The user-friendly interface of the NS9215 allows for easy configuration and management. This ease of use reduces the time required for installation and setup, enabling quick deployment in field operations. Additionally, remote management capabilities enhance operational efficiency, allowing users to monitor device performance and make adjustments from anywhere.

Furthermore, the NS9215 supports extensive scalability options. As organizations grow and evolve, the ability to scale up or adapt the networking capabilities becomes essential. With its modular design, the NS9215 can easily accommodate additional devices and protocols, ensuring longevity and continued relevance in a rapidly changing technological landscape.

In conclusion, the Digi NS9215 is a robust networking device designed for a wide range of industrial applications. Its multi-protocol support, reliability, security features, user-friendly interface, and scalability make it a valuable addition to any industrial network infrastructure, delivering performance and efficiency that businesses can depend on for critical operations.