Abl-electronic PIC Microcontrollers PIC16 Manual do Utilizador Página 180

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 179
EEPROM data memory is available with a number of PICmicros. mikroC includes
library for comfortable work with EEPROM.
Eeprom_Read
Eeprom_Write
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
172
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
EEPROM Library
Library Routines
Prototype
char Eeprom_Read(char address);
Returns Returns byte from the specified address.
Description Reads data from the specified address. Parameter address is of byte type, which means
it can address only 256 locations. For PIC18 micros with more EEPROM data locations,
it is programmers responsibility to set SFR EEADRH register appropriately.
Requires Requires EEPROM module.
Ensure minimum 20ms delay between successive use of routines Eeprom_Write and
Eeprom_Read. Although PIC will write the correct value, Eeprom_Read might return
an undefined result.
Example
char take;
...
take = Eeprom_Read(0x3F);
Eeprom_Read
Vista de página 179
1 2 ... 175 176 177 178 179 180 181 182 183 184 185 ... 311 312

Comentários a estes Manuais

Sem comentários