Maxim-integrated MAXQ Family Users Guide: MAXQ8913 Supplement Uživatelský manuál Strana 101

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 100
MAXQ Family Users Guide:
MAXQ8913 Supplement
25-2
25.2 In-Application Programming Functions
25.2.1 UROM_flashWrite
Notes:
This function uses one stack level to save and restore values.
If the watchdog reset function is active, it should be disabled before calling this function.
If the flash location has already been programmed to a non-FFFF value, this function returns with an error (Carry set).
In order to reprogram a flash location, it must first be erased by calling UROM_flashErasePage or UROM_flash-
EraseAll.
25.2.2 UROM_flashErasePage
Notes:
If the watchdog reset function is active, it should be disabled before calling this function.
When calling this function from flash, care should be taken that the return address is not in the page which is being
erased.
25.2.3 UROM_flashEraseAll
Notes:
If the watchdog reset function is active, it should be disabled before calling this function.
This function can only be called by code running from the RAM. Attempting to call this function while running from
the flash results in an error.
Function:
UROM_flashWrite
Summary:
Programs a single word of flash memory.
Inputs:
A[0]: Word address in program flash memory to write to.
A[1]: Word value to write to flash memory.
Outputs:
Carry: Set on error and cleared on success.
Destroys:
PSF, LC[1]
Function:
UROM_flashErasePage
Summary:
Erases (programs to 0FFFFh) a 512-word page of flash memory.
Inputs:
A[0]: Word address located in the page to be erased. (The page number is the high 9 bits of A[0].)
Outputs:
Carry: Set on error and cleared on success.
Destroys:
LC[1], A[0]
Function:
UROM_flashEraseAll
Summary:
Erases (programs to 0FFFFh) all locations in flash memory.
Inputs:
None.
Outputs:
Carry: Set on error and cleared on success.
Destroys:
LC[1], A[0]
Maxim Integrated
Zobrazit stránku 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 113 114

Komentáře k této Příručce

Žádné komentáře