DS1990 connection diagram.
The block for writing the code to the key. It is forbidden to use two blocks of reading and writing in one program!
Block reading the code from the key. Writing code to a variable! (Blocks are set at the beginning of the program loop!)