Development and design of an FPGA-based encoder for NPN. Issue 1 (1st January 2022)