Communicating Register Write
To summarize the following sections, use the following steps and the Write Register Code Example.
- Configure BiSS PPS
- Configure SCD frequency and getsense frequency.
- Select the client location, the protocol used on the channel and determine if the client device is a sensor or an actuator.
- Configure the SCD length.
- Configure the CRC used and the CRC length.
- Select a start address to write registers from and select how many consecutive bits are desired to be written.
- Set the read or write bit to write. Set the CTS bit to register communication and the Prototype Select bit to BiSS C.
- Set the client ID.
- Set TX Read Enable bit to allow writing to the B1SCDATAxX registers.
- Turn the BiSS module on.
- Initialize the BiSS module with INIT and poll INSTRWA (can read B1SCDATAxX right now if line delay compensation is desired).
- Set the AGS bit to start Autogetsense.
- Set B1RDATAxX to the desired value to be written to the client register.
- Poll CDMTO to confirm 14 CDM low bits have been received.
- Set the Instruction register to the instruction for writing and poll the INSTRWA Status bit to make sure nothing is written to INSTR while current instruction is in progress.
- Poll end of transmission, EOT, Status bit and/or CRC Valid bit and/or Register End bit, REGEND, to confirm a successful SCD receive and a successful register communication has been transmitted.
- Read value from B1SCDATAxX and B1RDATAx.
