martes, 14 de junio de 2011

EEPROM

 With this exercise we will learn to read and write in an EEPROM (25LC020) through SPI communication with the PIC 18F4550.

The exercise consists of the following:




To start writing the program code in C language for PIC's of CCS. The PIC is programmed as a master at using the SPI BUS. The first thing is to write, in this case write 7 data, from 0 × 00 to 0 × 07. Amedida that are written to the EEPROM is written to the LCD every half second, the first E stands for writing. Once written, we will read and display them as Ian is displayed on the LCD every half second. The L is read




To test the operation load the program on the Proteus and simulate. Using a tool you can view all transfers made by the SPI. In the simulation is seen as the PIC reads the data recorded in the EEPROM as the LED goes from 0 to 6.



Dowload year:

https://sites.google.com/site/franbc0100/%5BEscribirLeerEEPROMSPI%5D.rar?attredirects=0&d=1

No hay comentarios:

Publicar un comentario