US 12,450,111 B2
System and method for one-wire non-volatile memory
Xiao Tian Zhang, Shanghai (CN)
Assigned to GIANTEC SEMICONDUCTOR CORPORATION, Shanghai (CN)
Filed by Giantec Semiconductor Corporation, Shanghai (CN)
Filed on Mar. 20, 2024, as Appl. No. 18/610,696.
Prior Publication US 2025/0173205 A1, May 29, 2025
Int. Cl. G06F 11/07 (2006.01); G06F 9/448 (2018.01)
CPC G06F 11/073 (2013.01) [G06F 9/4498 (2018.02); G06F 11/0757 (2013.01)] 6 Claims
OG exemplary drawing
 
1. A system comprising: a one-wire communication interface coupled with a single-wire serial bus and a non-volatile memory to process data communication according to one-wire communication protocol, wherein the one-wire communication interface comprising: an interface controller, an internal clock oscillator, a first and a second state machine;
wherein the first state machine comprises an idle state, a command state, an address state, a wait state, a read state, a write state, and a high voltage state, and the second state machine comprises an idle state, a wait state, a sample state, a drive state, a release state, and a stop state;
wherein the interface controller is coupled to one-wire serial bus and the first and the second state machine;
the second state machine is driven by a first clock signal generated by the internal clock oscillator, and is configured to process bit signal communicated on the serial bus via the interface controller;
the first state machine, coupled with the second state machine, is driven by a second clock signal defined by the falling edge of the data signal on the serial bus and is configured to process byte information received from the second state machine;
wherein a bit frame on the one-wire serial bus comprising a first, a second, and a third segment: the signal level for logic 0 and logic 1 bit are low during the first segment, and the level for logic 0 and logic 1 bit are high during the third segment, the level for logic 0 is defined by a low level and logic 1 is defined by a high level during the second segment;
during the first segment of a bit, a master device drives the single-wire bus and it pulls the bus to a low level,
during the third segment of the bit, the master device and the interface both release the control on the bus and thereby to let the bus pulled to a high level through a pull-up resistor to a power source,
during the second segment of the bit, when the interface is transmitting bit information to the master device, the master device releases the control on the bus and allows for the interface to control the level on the bus; whereas when the master device is transmitting bit information to the interface, the interface releases the control of the bus and allows for the master to take the control of the level on the bus;
wherein the one bit data signal operation by the second state machine comprising:
the second state machine starts from the idle state;
during the first segment of the bit, the master device drives the one-wire serial bus to a low level, the second state machine changes to the wait state until it receives the read or write state information from the first state machine;
during the second segment of the bit, the second state machine changes to the drive state or the sample state for a read or write operation respectively, wherein the second state machine controls the signal level on the bus via the interface controller for a memory read operation, and the second state machine saves the received bits in an internal buffer for the first state machine for a memory write operation,
during the third segment of the bit, the second state machine changes to the release state to release the control on the serial bus which allows the bus to float to a high level, providing charging opportunity for the system;
at the end of the third segment of the bit, the second state machine changes to the stop state and then returns to the idle state upon the next SDA signal.