a protection device which detects an erasable and programmable rom is disclosed . the device includes a memory cell and a means for writing and reading the cell as used to program the cell to a given state . the programming of the cell prevents any reprogramming of the memory unless a previous erasure of the cell has occurred .