MC9S12B128_112
 
 
 CPU Bean MC9S12B128_112
 
Freescale HC9S12 family: MC9S12B128 in 112 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)

  • SetIntVect - Set interrupt vector service routine. This method can be generated only if the interrupt vector table is generated into RAM (see options).

      ANSIC prototype: int SetIntVect(word VectNo,void* ProcAddr)
    • VectNo:word - Number of interrupt vector
    • ProcAddr:void* - Address of the new interrupt handler
    • Return value:int - Error code, possible codes:
      ERR_OK - OK
      ERR_RANGE - Vector number is out of range.

  • GetIntVect - Return address of interrupt vector service routine. This method can be generated only if the interrupt vector table is generated into RAM (see options).

      ANSIC prototype: int GetIntVect(word VectNo,void* *ProcAddr)
    • VectNo:word - Interrupt vector number
    • ProcAddr: Pointer to void* - Address of the interrupt handler
    • Return value:int - Error code, possible codes:
      ERR_OK - OK
      ERR_RANGE - Vector number is out of range.

  • 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.


Note: Some methods can be implemented as macros.



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