MC9S12XDT512_80
 
 
 CPU Bean MC9S12XDT512_80
 
Freescale HC9S12X family: MC9S12XDT512 in 80 pinout

Methods are user callable functions/subroutines that are means of controlling the bean functions.

Methods:

  • SetHighSpeed - Sets the high speed mode. The method is enabled only if low or slow speed mode is enabled in the bean as well.

      ANSIC prototype: void SetHighSpeed(void)

  • SetLowSpeed - Sets the low speed mode. The method is enabled only if low speed mode is enabled in the bean.

      ANSIC prototype: void SetLowSpeed(void)

  • SetSlowSpeed - Sets the slow speed mode. The method is enabled only if slow speed mode is enabled in the bean.

      ANSIC prototype: void SetSlowSpeed(void)

  • GetSpeedMode - Gets current speed mode. The method is enabled only if more than one speed mode is enabled in the bean.

      ANSIC prototype: byte GetSpeedMode(void)
    • Return value:byte - Speed mode (HIGH_SPEED, LOW_SPEED, SLOW_SPEED)

  • EnableInt - Enable maskable interrupts

      ANSIC prototype: void EnableInt(void)

  • DisableInt - Disable maskable interrupts

      ANSIC prototype: void DisableInt(void)

  • SetWaitMode - Set low power mode - Wait mode.
    For more information about the wait mode see documentation of this CPU.
    Release from Wait mode: Reset or interrupt

      ANSIC prototype: void SetWaitMode(void)

  • SetStopMode - Set low power mode - Stop mode.
    For more information about the stop mode see documentation of this CPU.

      ANSIC prototype: void SetStopMode(void)

  • Delay100US - This method realizes software delay. The length of delay is at least 100 microsecond multiply input parameter us100. As the delay implementation is not based on real clock, the delay time may be increased by interrupt service routines processed during the delay. The method is independent on selected speed mode.

      ANSIC prototype: void Delay100US(word us100)
    • us100:word - Number of 100 us delay repetitions.

  • SetIPL - This method sets IPL bits (CCRH) of the Condition Code Register (CCR).

      ANSIC prototype: void SetIPL(byte IPL)
    • IPL:byte - New value for CCRH register

  • GetLowVoltageFlag - This method returns the flag of the Low Voltage Detect device. The flag is set when the low-voltage error is detected.

      ANSIC prototype: bool GetLowVoltageFlag(void)
    • Return value:bool - This method returns a true when flag is set otherwise returns a false.

  • GetPllLockStatusFlag - This method returns the current state of PLL lock condition bit.

      ANSIC prototype: bool GetPllLockStatusFlag(void)
    • Return value:bool - This method returns a true when flag is set otherwise returns a false.

  • GetResetSource - This method returns source of last reset.

      ANSIC prototype: byte GetResetSource(void)
    • Return value:byte - One of the following constants is return by this method
      CPU_POWER_ON_RESET - Last reset has been caused by Low level detection at the RESET pin (External Eeset).
      CPU_WATCHDOG_RESET - Last reset has been caused by COP.
      CPU_CLOCK_MONITOR_RESET - Last reset has been caused by Clock monitor failure.
      CPU_LVI_RESET - Last reset has been caused by Low voltage detection.
      CPU_ILLEGAL_ADDRESS_RESET - Last reset has been caused by Illegal Address access.
      CPU_EXTERNAL_RESET - Last reset has been caused by External reset.


Note: Some methods can be implemented as macros.



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.