Reference : SGP_AVS_SW_ATLAS-05-05 Classification : COMPANY RESTRICTED
Version : 0.17 Project : ATLAS_DSW
Status : Proposed Chapter : User Manual
Date : 2006-09-12
Section : Diagnostic Software (Leco+)
© Philips Electronics N.V. 2006 Philips Semiconductors Page 52 of 124
1
Nucleus Name
DS_SYS_IicWrite
Nucleus Number 1209
Description Perform an IIC write action on the digital board
Technical - Determine bus ID, slave address, number of bytes to be written and the
byte array of data from the user input
- Initialise IIC
- Write the data to the slave specified through IIC
Execution Time Less than 1 second
User Input The user input the number of bytes to write followed by the bytes to write:
<BusID><Slave address to write to><number of bytes to
write><d1><d2><..><dx>
Where the bus id is either 0 (normally used) or 1
Error Number Description
120900 Writing the data over IIC succeeded
120901 The IIC bus was not accessible
120902 There was a timeout writing to the device
120903 The IIC acknowledge was not received
120904 The communication with the device failed
120905 Got unknown IIC bus error:
120906 Unable to initialise IIC bus
120907 Decoding bus ID unsigned value failed
120908 Decoding slaveAddr unsigned value failed
120909 Decoding nrBytes unsigned value failed
120910 Bus ID out of range
120911 nrBytes out of range
120912 Unable to decode parameters
Example
DS:> 1209 0 0xa0 1 0x6
120900: 1 Bytes written
Test OK @
2
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
- Initialise IIC
- Read the data form the slave specified
Execution Time Less than 1 second
User Input The user inputs the bus number, the address to read them from and the
number of bytes to read:
<BusID><Slave address to read from><Number of bytes to read>
Where the bus id is either 0 (normally used) or 1
Error Number Description
121000 Reading the data over IIC succeeded
121001 The IIC bus was not accessible
121002 There was a timeout writing to the device
121003 The IIC acknowledge was not received
121004 The communication with the device failed
121005 There was an unknown IIC bus error
121006 IIC bus initialisation failed
121007 Decoding bus ID unsigned value failed
121008 Decoding slave address unsigned value failed
121009 Decoding number of bytes unsigned value failed
121010 Bus ID out of range
121011 nrBytes out of range
Example
DS:> 1210 0 0xa0 0x20
Read :
0x0000: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x0008: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x0010: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x0018: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
121000: 0 0xa0 0x20
Test OK @