Goal: To write and read EEPROM
What we have: PIC16f628a and a simple devboard.
Microcontroller PIC16f628a has 128 bytes of EEPROM memory on board, not too much but we have what we have. Hi-tech PICC compiler has internal functions for work with EEPROM, but here I’m going to make some my personal functions.
Let’s look at the EECON1 register:


I wanted to make a small board, not those huge with everything you can imagine, and, perhaps, never going to use. A 3d model shows what I wanted and what I made: 4 buttons + 4 LED hanging on the PORTB. There is also one button and one LED for PORTA. Everything can be disconnected from the microcontroller using the dip switch.