|
|
|
Bean
IntFLASH
|
Internal FLASH
Parameters of the bean.
|
Properties:
-
Bean name - Name of the bean.
-
Settings for Freescale HCS12/HCS12X/HCS08 derivatives, Fujitsu 16LX and National Semiconductor microcontrollers.
-
FLASH - Internal on-chip FLASH resource name.
-
Write method - Method for writing into FLASH memory.
Possible choices:
WRITE - write only value into FLASH without any tests. Only erased bits can be changed. For a reverse change a different method using erasing FLASH must be used.
DESTRUCTIVE WRITE - actual sector is erased if necessary (without any data backup) and after that data is written into the FLASH.
SAFE WRITE - if the requested FLASH area is not empty (erased) affected FLASH sectors are saved to data RAM and the FLASH is erased, after that the previously saved data, except wanted position, are written back into the FLASH.
-
Interrupt service/event - Required Interrupt support: yes/no.
If interrupt support is disabled the pooling communication with FLASH is used.
-
Wait in RAM - Wait for completion of the write/erase operation in RAM. This option enables to change the FLASH that the application is running in.
-
Settings for Freescale HCS12/HCS12X/HCS08 derivatives, Fujitsu 16LX and National Semiconductor microcontrollers.
-
Save buffer - Use buffer for storing the FLASH content before erasing and rewriting.
-
Buffer type - Buffer implementation variant.
Buffer is necessary for safe writing into FLASH, because FLASH must be erased before write. Data from FLASH must be saved temporarily in other place and after erasing must be restored back.
There are two events OnSaveBuffer and OnRestoreBuffer. These events are called when saving or restoring of FLASH is needed. The user must handle this action in his/her own code (possible solutions are creating buffer in external memory, sending data using serial line, storing in a different FLASH sector etc.). Typically, these events are called two times for each write request.
-
Settings for Freescale HCS12/HCS12X/HCS08 derivatives, Fujitsu 16LX and National Semiconductor microcontrollers.
-
Virtual page - Virtual page for block access.
This buffer, which is located in memory, is used for a block access into FLASH memory. There are methods for writing into this buffer and also for reading from this buffer. The whole buffer can be stored into FLASH by using SetPage method. Also the buffer can be filled by data from FLASH using GetPage method.
-
Allocated - The type of a virtual page.
A virtual page can be allocated "By a bean" or it can be allocated "By the user" using SetVirtualPageAddres method.
-
Page size - The size of a virtual page in bytes.
The size of a virtual page must be even for HCS12, FUJITSU_16LX and COP8 derivates.
-
Settings for Freescale HCS12, HCS12X and 56800 derivatives.
-
Initialization - Initialization of the bean
-
Events enabled in init. - Events enabled in initialization code
-
Wait enabled in init. - Wait enabled in initialization code (yes/no). If wait is enabled the driver always stays in the loop till the end of operation.
Wait can also be selected by SetWait method in the runtime.
-
Settings for Freescale HCS12/HCS12X/HCS08 and 56800 derivatives.
-
CPU clock/speed selection - Settings for the CPU speed modes: identifies whether the bean is supported or not.
For details about speed modes please refer to page Speed Modes Support.
-
FLASH clock - Flash internal timing clock. The correct value is frequency of 150kHz - 200kHz. If the clock could vary for different speed modes, there is a value for each of the speed modes.
-
High speed mode - The bean is enabled/disabled for write and erase method in high speed mode.
-
Low speed mode - The bean is enabled/disabled for write and erase method in low speed mode.
-
Slow speed mode - The bean is enabled/disabled for write and erase method in slow speed mode.
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|