Yamaha DRX-2 Service Manual page 69

Hide thumbs Also See for DRX-2:
Table of Contents

Advertisement

Nucleus Name
DS_SYS_IicRead
Nucleus Number
1210
Description
Perform an IIC read action on the digital board
Technical
-
Determine the bus ID, slave address and number of bytes to read from the user input
-
Initialize IIC
-
Read the data form the slave specified
Execution Time
Less than 1 second
User Input
The user inputs the number of bytes to read and the address to read them from:
<BusID><Slave address to read from><Number of bytes to read>
Where the bus ID is either 0 (normally used) or 1
Error
Number
121000
121001
121002
121003
121004
121005
121006
121007
121008
121009
121010
121011
Example
DS:> 1210 0 0xa0 1
121000: Value read =0x06
Test OK @
Nucleus Name
DS_SYS_UartWrite
Nucleus Number
1211
Description
Perform an UART write action on the digital board on a specified UART
Technical
-
Decode the user input for the proper port to use
-
Write out the bytes through the indicated port
Execution Time
Less than 1 second.
User Input
The user inputs the UART to write to, the number of bytes and the bytes to be written to the
UART.
1=UART port 1 : not used
2=UART port 2 : Bit DVDR Mechanism
3=UART port 3 : Analog board
<UartNr><Number of bytes to write><d1><d2><..><dx>
Error
Number
121100
121101
121102
Example
DS:>1211 2 2 0xd1 0x01
121100:
Test OK @
Description
Reading the data over IIC succeeded
The IIC bus was not accessible
There was a timeout writing to the device
The IIC acknowledge was not received
The communication with the device failed
There was an unknown IIC bus error
IIC bus initialization failed
Decoding bus ID unsigned value failed
Decoding slave address unsigned value failed
Decoding number of bytes unsigned value failed
Bus ID out of range
nrBytes out of range
Description
Writing the bytes to the UART succeeded
The user provided wrong input
Writing to the UART failed
DRX-2
69

Advertisement

Table of Contents
loading

Table of Contents