Slave device, master device, and data transmission method
AssigneeNuvoton Technology Corporation
InventorChi-Yung Sun
Life of this patent
Estimating the term…
Abstract
A slave device coupled to a master device via a bus and including a serial interface, a code generator circuit, and a control circuit is provided. The serial interface is configured to be coupled to the bus. The code generator circuit is configured to generate a unique code. The control circuit is coupled between the serial interface and the code generator circuit. In a set mode, the control circuit triggers the code generator circuit to generate the unique code. In an operation mode, the control circuit determines whether to perform commands provided by the master device according to the unique code.
Claims23
A master device coupled to a plurality of slave devices via a bus, comprising:
- a serial interface configured to be coupled to the bus;
- a scanning circuit configured to generate a plurality of scanning codes;
- and
- a control circuit controlling the slave devices via the serial interface,
- wherein:
- in a set mode, the control circuit directs each of the slave devices to generate a unique code via the serial interface;
- and
- in a scanning mode, the control circuit outputs the plurality of scanning codes to the slave devices to obtain the unique codes of the slave devices via the serial interface,
- in response to one of the scanning codes matching the unique code of a corresponding slave device, the corresponding slave device sets a level of a transmission line of the bus equal to a predetermined level,
- in response to the level of the transmission line of the bus being equal to the predetermined level, the control circuit stores the scanning code which matches the unique code of the corresponding slave device,
- the control circuit provides a control command to one of the slave devices, and a value of an identification field of the control command matches one of the stored scanning codes.
A data transmission method for a master device of a master-slave system, wherein the master-slave system comprises a plurality of slave devices, comprising:
- directing each of the plurality of slave devices to generate a unique code;
- generating a plurality of scanning codes;
- outputting the plurality of scanning codes to the slave devices via a bus to obtain the unique codes of each of the slave devices;
- detecting whether a level of a transmission line of the bus is equal to a predetermined level in response to one of the scanning codes having output;
- storing the output scanning code in response to the level of the transmission line of the bus being equal to the predetermined level;
- and
- assigning commands to each of the slave devices according to the unique codes of the slave devices,
- wherein:
- in response to one of the scanning codes matching the unique code of a corresponding slave device, the corresponding slave device sets the level of the transmission line equal to the predetermined level,
- a value of an identification field of each assigned command matches one of the stored scanning codes.
A slave device coupled to a master device via a bus, comprising:
- a serial interface configured to be coupled to the bus;
- a code generator circuit configured to generate a unique code;
- and
- a control circuit coupled between the serial interface and the code generator circuit,
- wherein:
- in a set mode, the control circuit triggers the code generator circuit to generate the unique code,
- in an operation mode, the control circuit determines whether to perform commands provided by the master device according to the unique code, and
- in response to the master device sending a trigger command, the control circuit enters the set mode to trigger the code generator circuit,
- in response to the control circuit receiving a scanning code via a transmission line of the bus, the control circuit determines whether the scanning code matches the unique code, and
- in response to the scanning code matching the unique code, the control circuit sets the level of the transmission line to a predetermined level.
Dependencies are inferred from the claim text.