Datasheet
Delay_ms(1000);
PORTA := 0x00;
PORTB := 0x00;
Delay_ms(1000);
PORTA := EEPROM_Read(0x02); // Read data from
address 2 and display it on PORT0
PORTB := EEPROM_Read(0x150); // Read data from
address 0x150 and display it on PORT1
Delay_ms(1000);
for counter := 0 to 31 do // Read 32 bytes
block from address 0x100
begin
PORTC := EEPROM_Read(0x100+counter); // and display
data on PORT2
Delay_ms(100);
end;
end.
229
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6