|
|
|
CPU
MC9S08GT16A_32
Freescale HCS08 family : MC9S08GT16A in 32 pin package
Device Initialization
(Description of the CPU component parameters.)
-
Clock settings - MCU Clock settings
-
Source CPU clock - The clock source for the internal bus clock.
-
Internal Clock - Internal clock oscillator settings.
-
Internal oscillator frequency [kHz] - Frequency of the internal oscillator. Typical recommended value is 243 kHz. It is responsibility of the user to provide correct trim value (see 'Initialize trim value' property), which will adjust the frequency of the internal oscillator to the required value.
-
Initialize trim value - This property enables to generate code for initialization of the trim register (ICGTR) by the value from a non-volatile memory location.
The following items are available only if the group is enabled (the value is "yes"):
-
Trim value address - The location where the trim value is stored in the non-volatile memory.
-
External clock - If this property is enabled, an external clock is allowed for the MCU timing.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Clock source - Possible external clock sources (external crystal or external oscillator).
There are 2 modes:
- External crystal - The following items are displayed in this mode:
-
Clock frequency [MHz] - Frequency of the external clock (external crystal or the external oscillator). The following properties may restrict the valid range of the external clock: The Clock source, Clock range, Operating mode and the FLL clock. The valid frequency range of the external clock for current CPU component settings is shown in the third column of the Clock range property in the Component Inspector.
For details see the MCU specification.
-
Clock range - This property selects one of two reference frequency ranges for the ICG (High frequency and Low frequency range). The property controls the oscillator, reference divider, and FLL loop prescaler multiplication factor (P). The property has only an effect in FLL engaged external and FLL bypassed external modes. The valid frequency range of the external clock for current CPU component settings is shown in the third column of the Component Inspector.
-
Operating mode - The operating mode of the oscillator module. It provides a high gain for the noise immunity improvement or the low power consumption. This property also affects the valid range of an external crystal.
There are 2 options:
- High gain: This mode provides a higher amplitude output for the improved noise immunity.
- Low power: This mode provides the lower power consumption.
-
Clock input pin - Clock input properties.
-
Pin name - Clock input pin name (for information only).
-
Clock output pin - Clock output properties.
-
Pin name - Clock output pin name (for information only).
- External oscillator - The following items are displayed in this mode:
-
Clock frequency [MHz] - See previous modes for more details
-
Clock range - See previous modes for more details
-
Clock input pin - Clock input properties.
-
The content is the same as in previous modes.
-
Clock divider - The reduced frequency divider of the internal clock generator module.
-
Internal bus clock - The internal bus clock frequency [MHz] for timing of internal peripherals. The CPU clock is twice the internal bus clock.
-
Fixed frequency clock - Fixed frequency clock for internal timer peripherals [MHz] (for information only).
-
Loss of clock - Determines what type of request is made when the FLL loses the clock.
-
FLL clock - FLL clock (Enabled/Disabled)
The following items are available only if the group is enabled (the value is "Enabled"):
-
FLL clock frequency - FLL clock frequency [MHz]. This property is for information only and is set by PE according to the selected clock source. The value of the FLL clock frequency depends on the bus clock frequency.
-
Loss of FLL lock - Determines what type of request is made when the FLL loses the lock indication.
-
Low-power modes settings - Low-power modes settings.
-
STOP instruction enabled - This property enables the STOP instruction.
The following items are available only if the group is enabled (the value is "yes"):
-
Power down control - This property sets power down control bits that determine which power-down mode will be invoked when the STOP instruction is executed.
There are 3 options:
- STOP1 - Power down mode: Power down mode
- STOP2 - Partial power down mode: Partial power down mode
- STOP3 - Standby mode: Standby mode
-
Enable oscillator in ICG off mode - Enables/disables the external oscillator in the ICG off mode.
-
Maskable CPU interrupts - Enable/disable CPU maskable interrupts. This item modifies Interrupt Mask Bit I in Condition Code CPU register CCR.
-
Internal resource mapping - Internal resource mapping setting
-
Interrupt vector table - This group contains settings for placement of interrupt vector table.
-
Address - This property defines address of definition of interrupt vector table. For a bootloader support the definition of the interrupt vector table can be placed on a user defined address. In this case the user has to ensure correct redirection of interrupt vector to a valid source. The setting of the interrupt vector table address doesn't affect any HW resources.
When the Vector redirection property is available and is enabled the user is offered automatic adjustment of the address of the interrupt vector table according to the current setting of FLASH memory protection (see property group Internal peripherals/FLASH).
-
Size - Size of the exception vector table. (For information only)
-
Reset vector - This group contains settings for placement of reset vector.
-
Address - This property defines address of definition of reset vector. For a bootloader support the definition of the reset vector can be placed on a user defined address. In this case the user has to ensure correct redirection of the reset vector to a valid source. The setting of the reset vector address doesn't affect any HW resources.
-
Size - Size of the reset vector. (For information only)
-
Internal peripherals - Internal peripherals settings.
-
BDM pin support - Enables/disables the background debug mode pin support.
The following items are available only if the group is enabled (the value is "Enabled"):
-
BDM pin - Background Debug Mode pin name (for information only)
-
LVD module - Low Voltage Detect module settings.
The following items are available only if the group is enabled (the value is "Enabled"):
-
LVD operation - This property defines operation performed upon detection of a low voltage condition.
There are 3 modes:
- Reset - Reset is generated upon detection of a low voltage condition. There are no items in this mode.
- Interrupt - Interrupt is generated when LVI detector state is changed. The following items are displayed in this mode:
-
Interrupt name - Interrupt vector that is invoked from the Low Voltage Detect interrupt (for information only).
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly.
- Polling mode - No operation is done after detection of low voltage condition. You can use GetLowVoltageFlag() method to to get current status of the LVI output. There are no items in this mode.
-
Enable in stop mode - Enables the low-voltage detection during stop mode.
-
Low-voltage detect voltage - Low-voltage detect trip point selection (low or high).
-
Low-voltage warning voltage - Low-voltage warning trip point selection (low or high).
-
FLASH - The FLASH memory options.
-
Security state - If the security state is enabled the content of the memory cannot be read by an instruction from any unsecured source including the background debug interface. Security state can be temporary disabled by the Backdoor key mechanism property.
There are 2 modes:
- Enabled - The following items are displayed in this mode:
-
SEC01:SEC00 bits value - This property specifies value for enabled security state (useful if it must be set exactly for debugger).
This item modifies SEC00:SEC01 bits in the NVOPT register.
-
Backdoor key mechanism - This property enables/disables security unlocking mechanism. This mechanism uses an 8-byte backdoor security key to unsecure the MCU. You can use SetBackdoorKey() method to unsecure the MCU (Not available in Device Initialization tool).
The following items are available only if the group is enabled (the value is "Enabled"):
- Disabled - There are no items in this mode.
-
Protection - Protection of the selected memory block. If a block of the FLASH memory is protected a bootloader cannot erase the protected block of memory.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Boundary address - This boundary defines the last address within Flash memory that is unprotected. The rest of the Flash memory is protected up to address $FFFF. The size of the protected area shall be a multiple of 512 bytes block. The inserted value is adjusted by Processor Expert to meet this requirement.
-
Vector redirection - If the protection is enabled the vector interrupts can be redirected to the unprotected area by setting of this vector redirection property.
-
I/O module - I/O ports' settings
-
PORT A - Slew rate control for all pins of PORT A.
-
PORT B - Slew rate control for all pins of PORT B.
-
PORT C - Slew rate control for all pins of PORT C.
-
PORT D - Slew rate control for all pins of PORT D.
-
PORT E - Slew rate control for all pins of PORT E.
-
PORT G - Slew rate control for all pins of PORT G.
-
Reset pin - Reset pin
-
Reset pin - Reset pin name (for information only)
-
CPU interrupts - Interrupts allocated by CPU bean
-
Reset vector - Reset vector settings.
-
Interrupt - Interrupt associated with the reset vector (for information only)
-
ISR name - Name of the reset vector - routine, that initializes CPU after reset.
-
Clock monitor - Clock monitor interrupt settings. This property is set by Processor expert and depends on the setting of 'Loss of FLL lock' and 'Loss of clock' properties. (For information only)
The following items are available only if the group is enabled (the value is "Enabled"):
-
Interrupt - Clock monitor interrupt. (for information only)
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly.
-
SWI - This property enables/disables generation of SWI interrupt service routine.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Interrupt - Software Interrupt (for information only)
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly.
|