7618C–AVR–07/08
JMP flash_page_erase_and_write
entry_flash_read_sig:
JMP flash_read_sig
entry_flash_read_fuse:
JMP flash_read_fuse
entry_flash_fill_temp_buffer:
JMP flash_fill_temp_buffer
entry_flash_prg_page:
JMP flash_prg_page
entry_flash_page_erase:
JMP flash_page_erase_public
entry_lock_wr_bits:
JMP lock_wr_bits
RSEGBOOT
;*F************************************************************************
**
; NAME: flash_page_erase_and_write
;--------------------------------------------------------------------------
--
; PARAMS: R18:17:R16: The byte address of the page
;--------------------------------------------------------------------------
--
; PURPOSE: This function can be called for the user appplication
; This function performs an erase operation of the selected target page and
; the launch the prog sequence of the same target page.
; This function allows to save the 256 bytes software temporary buffer in
; the application section
;**************************************************************************
**
flash_page_erase_and_write:
PUSH R18
RCALL flash_page_erase
POP R18
RCALL flash_prg_page
RET
;*F************************************************************************
**
; NAME: flash_prg_page
;--------------------------------------------------------------------------
--
; PARAMS: R18:17:R16: The byte address of the page
;--------------------------------------------------------------------------
--
; PURPOSE: Launch the prog sequence of the target page
21