Sun Microsystems S16A manual Write to a Clock Prescale Register, Wnmm, is input channel

Models: S16A

1 46
Download 46 pages 17.09 Kb
Page 39
Image 39

S16A User’s Guide

Registers

Write to a Clock Prescale Register

The clock prescale registers are written by sending a four-byte sequence beginning with W or w.

Wnmm

Write an 8-bit value to a Clock Prescale register.

 

n

Number of the Clock Prescale register to be written. 0 is input channel 0;

 

 

1 is input channel 1.

 

mm

Hexadecimal value to write to the register.

The UART responds with the four-character sequence return linefeed > space.

Write to an Input Configuration Register

The input configuration registers are written by sending a six-byte sequence beginning with W or w.

Wnmmmm Write a 16-bit value to an Input Configuration register.

nNumber of the Input Configuration register to be written. 2 is input channel 0; 3 is input channel 1.

mmmmHexadecimal value to write to the register.

The UART responds with the four-character sequence return linefeed > space.

Read from a Clock Prescale Register

The Clock Prescale registers are read by sending a two-byte sequence beginning with R or r.

Rn

Read an 8-bit value from a Clock Prescale register.

 

n

Number of the Clock Prescale register to be read. 0 is input channel 0; 1

 

 

is input channel 1.

The UART responds with the six-character sequence xx return linefeed > space, where xx is the two- character hexadecimal value read from the 8-bit register.

Read from an Input Configuration Register

The Input Configuration registers are read by sending a two-byte sequence beginning with R or r.

Rn

Read a 16-bit value from a Input Configuration register.

 

n

Number of the Input Configuration register to be written. 2 is input

 

 

channel 0; 3 is input channel 1.

The UART responds with the eight-character sequence xxxx return linefeed > space, where xxxx is the four-character hexadecimal value read from the 16-bit register.

EDT, Inc. October, 1996

35

Page 39
Image 39
Sun Microsystems S16A manual Write to a Clock Prescale Register, Wnmm, Write an 8-bit value to a Clock Prescale register