<PE_PROJECT_SETTINGS_DOCUMENTATION>
  <PE_product_version v="version 3.07 for Freescale HC(S)08/RS08/CFV1"/>
  <PE_core_version v="Processor Expert Version 0434"/>

  <CPU_Bean name="Cpu" type="MC9S08QD4_8">
    <Enabled v="N"/>

    <Properties>
      <Component_name v="Cpu"/>
      <CPU_type v="MC9S08QD4CPC"/>
      <group name="Clock settings">
        <group name="Internal clock">
          <Internal_oscillator_frequency__kHz_ v="31.250000000000"/>
          <boolgroup name="Initialize trim value" v="yes">
            <Trim_value_address v="65455"/>
            <Fine_trim_value_address v="65454"/>
          </boolgroup>
        </group>
        <group name="Low-power modes settings">
          <enumgroup name="STOP instruction enabled" v="no">
          </enumgroup>
        </group>
      </group>
      <Initialization_interrupt_priority v="interrupts enabled"/>
      <list name="Shared internal resource mapping" v="1">
        <group name="Internal resource mapping">
          <group name="Interrupt vector table">
            <Address v="65488"/>
            <Size v="46"/>
          </group>
          <group name="Reset vector">
            <Address v="65534"/>
            <Size v="2"/>
          </group>
        </group>
      </list>
      <group name="Internal peripherals">
        <group name="ADC">
          <Internal_bandgap_buffer v="Disabled"/>
        </group>
        <boolgroup name="BDM pin support" v="Disabled" />
        <group name="FLASH">
          <enumgroup name="Security state" v="Disabled">
          </enumgroup>
          <boolgroup name="Protection" v="Disabled" />
          <Vector_redirection v="no"/>
        </group>
        <group name="I/O module">
          <group name="PORT A">
            <Slew_rate_control_for_PTA0 v="no"/>
            <Slew_rate_control_for_PTA1 v="no"/>
            <Slew_rate_control_for_PTA2 v="no"/>
            <Slew_rate_control_for_PTA3 v="no"/>
            <Slew_rate_control_for_PTA4 v="no"/>
            <Drive_strength_for_PTA0 v="High"/>
            <Drive_strength_for_PTA1 v="High"/>
            <Drive_strength_for_PTA2 v="High"/>
            <Drive_strength_for_PTA3 v="High"/>
            <Drive_strength_for_PTA4 v="High"/>
          </group>
        </group>
        <boolgroup name="LVD module" v="Enabled">
          <enumgroup name="LVD operation" v="Reset">
          </enumgroup>
          <Enable_in_stop_mode v="yes"/>
          <Low_voltage_detect_voltage v="Low trip point"/>
          <Low_voltage_warning_voltage v="Low trip point"/>
        </boolgroup>
        <boolgroup name="Reset pin support" v="Disabled" />
      </group>
      <group name="CPU interrupts">
        <boolgroup name="SWI" v="Disabled" />
      </group>
      <group name="Enabled speed modes">
        <boolgroup name="High speed mode" v="Enabled">
          <Bus_freq__divider v="Auto select"/>
          <Internal_bus_clock v="4"/>
          <Fixed_freq__clock_clk_src_ v="Divided reference clock"/>
          <Fixed_frequency_clock v="0.015625000000"/>
          <enumgroup name="FLL mode" v="Engaged">
            <FLL_output_clock_freq___MHz_ v="16"/>
          </enumgroup>
        </boolgroup>
        <boolgroup name="Low speed mode" v="Disabled" />
        <boolgroup name="Slow speed mode" v="Disabled" />
      </group>
    </Properties>

    <Methods>
      <SetHighSpeed v="don&apos;t generate code"/>
      <SetLowSpeed v="don&apos;t generate code"/>
      <SetSlowSpeed v="don&apos;t generate code"/>
      <GetSpeedMode v="don&apos;t generate code"/>
      <SetIntVect v="don&apos;t generate code"/>
      <GetIntVect v="don&apos;t generate code"/>
      <EnableInt v="generate code"/>
      <DisableInt v="generate code"/>
      <GetResetSource v="don&apos;t generate code"/>
      <SetWaitMode v="don&apos;t generate code"/>
      <SetStopMode v="don&apos;t generate code"/>
      <GetLowVoltageFlag v="don&apos;t generate code"/>
      <ClearLowVoltageFlag v="don&apos;t generate code"/>
      <GetLowVoltageWarningFlag v="don&apos;t generate code"/>
      <ClearLowVoltageWarningFlag v="don&apos;t generate code"/>
      <GetPartialPowerDownFlag v="don&apos;t generate code"/>
      <ClearPartialPowerDownFlag v="don&apos;t generate code"/>
      <GetIdentification v="don&apos;t generate code"/>
      <SetBackdoorKey v="don&apos;t generate code"/>
      <Delay100US v="don&apos;t generate code"/>
    </Methods>

    <Events>
      <Event_module_name v="Events"/>
      <event name="OnReset" v="don&apos;t generate code" />
      <event name="OnSwINT" v="don&apos;t generate code" />
      <event name="OnLvdINT" v="don&apos;t generate code" />
    </Events>
    <Compiler v="CodeWarrior HCS08 C Compiler"/>

    <CompilerProperties>
      <Compiler v="CodeWarrior HCS08 C Compiler"/>
      <enumgroup name="Unhandled vectors" v="One handler for all">
        <Unhandled_int_code>
/* This code can be changed using the CPU bean property "Build Options / Unhandled int code" */
asm(BGND);
        </Unhandled_int_code>
      </enumgroup>
      <Generate_macros v="yes"/>
      <group name="User initialization">
        <User_data_declarations>
        </User_data_declarations>
        <User_code_before_PE_initialization>
        </User_code_before_PE_initialization>
        <User_code_after_PE_initialization>
        </User_code_after_PE_initialization>
      </group>
      <Memory_model v="Small"/>
      <boolgroup name="Generate PRM file" v="yes">
        <enumgroup name="Stack specification" v="size">
          <Stack_size v="128"/>
        </enumgroup>
        <Set_memory_areas_default v="Click to set default &gt;"/>
        <list name="ROM/RAM Areas" v="0">
        </list>
      </boolgroup>
    </CompilerProperties>
  </CPU_Bean>

  <CPU_Bean name="Cpu" type="MC9S08QD4_8">
    <Enabled v="Y"/>

    <Properties>
      <Component_name v="Cpu"/>
      <CPU_type v="MC9S08QD4CPC"/>
      <group name="Clock settings">
        <group name="Internal clock">
          <Internal_oscillator_frequency__kHz_ v="31.250000000000"/>
          <boolgroup name="Initialize trim value" v="yes">
            <Trim_value_address v="65455"/>
            <Fine_trim_value_address v="65454"/>
          </boolgroup>
        </group>
        <group name="Low-power modes settings">
          <enumgroup name="STOP instruction enabled" v="no">
          </enumgroup>
        </group>
      </group>
      <Initialization_interrupt_priority v="interrupts enabled"/>
      <list name="Shared internal resource mapping" v="1">
        <group name="Internal resource mapping">
          <group name="Interrupt vector table">
            <Address v="65488"/>
            <Size v="46"/>
          </group>
          <group name="Reset vector">
            <Address v="65534"/>
            <Size v="2"/>
          </group>
        </group>
      </list>
      <group name="Internal peripherals">
        <group name="ADC">
          <Internal_bandgap_buffer v="Disabled"/>
        </group>
        <boolgroup name="BDM pin support" v="Disabled" />
        <group name="FLASH">
          <enumgroup name="Security state" v="Disabled">
          </enumgroup>
          <boolgroup name="Protection" v="Disabled" />
          <Vector_redirection v="no"/>
        </group>
        <group name="I/O module">
          <group name="PORT A">
            <Slew_rate_control_for_PTA0 v="no"/>
            <Slew_rate_control_for_PTA1 v="no"/>
            <Slew_rate_control_for_PTA2 v="no"/>
            <Slew_rate_control_for_PTA3 v="no"/>
            <Slew_rate_control_for_PTA4 v="no"/>
            <Drive_strength_for_PTA0 v="High"/>
            <Drive_strength_for_PTA1 v="High"/>
            <Drive_strength_for_PTA2 v="High"/>
            <Drive_strength_for_PTA3 v="High"/>
            <Drive_strength_for_PTA4 v="High"/>
          </group>
        </group>
        <boolgroup name="LVD module" v="Enabled">
          <enumgroup name="LVD operation" v="Reset">
          </enumgroup>
          <Enable_in_stop_mode v="yes"/>
          <Low_voltage_detect_voltage v="Low trip point"/>
          <Low_voltage_warning_voltage v="Low trip point"/>
        </boolgroup>
        <boolgroup name="Reset pin support" v="Disabled" />
      </group>
      <group name="CPU interrupts">
        <boolgroup name="SWI" v="Disabled" />
      </group>
      <group name="Enabled speed modes">
        <boolgroup name="High speed mode" v="Enabled">
          <Bus_freq__divider v="Auto select"/>
          <Internal_bus_clock v="8"/>
          <Fixed_freq__clock_clk_src_ v="Divided reference clock"/>
          <Fixed_frequency_clock v="0.015625000000"/>
          <enumgroup name="FLL mode" v="Engaged">
            <FLL_output_clock_freq___MHz_ v="16"/>
          </enumgroup>
        </boolgroup>
        <boolgroup name="Low speed mode" v="Disabled" />
        <boolgroup name="Slow speed mode" v="Disabled" />
      </group>
    </Properties>

    <Methods>
      <SetHighSpeed v="don&apos;t generate code"/>
      <SetLowSpeed v="don&apos;t generate code"/>
      <SetSlowSpeed v="don&apos;t generate code"/>
      <GetSpeedMode v="don&apos;t generate code"/>
      <SetIntVect v="don&apos;t generate code"/>
      <GetIntVect v="don&apos;t generate code"/>
      <EnableInt v="generate code"/>
      <DisableInt v="generate code"/>
      <GetResetSource v="don&apos;t generate code"/>
      <SetWaitMode v="don&apos;t generate code"/>
      <SetStopMode v="don&apos;t generate code"/>
      <GetLowVoltageFlag v="don&apos;t generate code"/>
      <ClearLowVoltageFlag v="don&apos;t generate code"/>
      <GetLowVoltageWarningFlag v="don&apos;t generate code"/>
      <ClearLowVoltageWarningFlag v="don&apos;t generate code"/>
      <GetPartialPowerDownFlag v="don&apos;t generate code"/>
      <ClearPartialPowerDownFlag v="don&apos;t generate code"/>
      <GetIdentification v="don&apos;t generate code"/>
      <SetBackdoorKey v="don&apos;t generate code"/>
      <Delay100US v="don&apos;t generate code"/>
    </Methods>

    <Events>
      <Event_module_name v="Events"/>
      <event name="OnReset" v="don&apos;t generate code" />
      <event name="OnSwINT" v="don&apos;t generate code" />
      <event name="OnLvdINT" v="don&apos;t generate code" />
    </Events>
    <Compiler v="CodeWarrior HCS08 C Compiler"/>

    <CompilerProperties>
      <Compiler v="CodeWarrior HCS08 C Compiler"/>
      <enumgroup name="Unhandled vectors" v="One handler for all">
        <Unhandled_int_code>
/* This code can be changed using the CPU bean property "Build Options / Unhandled int code" */
asm(BGND);
        </Unhandled_int_code>
      </enumgroup>
      <Generate_macros v="yes"/>
      <group name="User initialization">
        <User_data_declarations>
        </User_data_declarations>
        <User_code_before_PE_initialization>
        </User_code_before_PE_initialization>
        <User_code_after_PE_initialization>
        </User_code_after_PE_initialization>
      </group>
      <Memory_model v="Small"/>
      <boolgroup name="Generate PRM file" v="yes">
        <enumgroup name="Stack specification" v="size">
          <Stack_size v="48"/>
        </enumgroup>
        <Set_memory_areas_default v="Click to set default &gt;"/>
        <list name="ROM/RAM Areas" v="4">
          <group name="Memory Area0">
            <boolgroup name="ROM/RAM Area" v="Enabled">
              <Name v="ROM"/>
              <Address v="61440"/>
              <Size v="4010"/>
              <Qualifier v="READ_ONLY"/>
            </boolgroup>
          </group>
          <group name="Memory Area1">
            <boolgroup name="ROM/RAM Area" v="Enabled">
              <Name v="Z_RAM"/>
              <Address v="96"/>
              <Size v="32"/>
              <Qualifier v="READ_WRITE"/>
            </boolgroup>
          </group>
          <group name="Memory Area2">
            <boolgroup name="ROM/RAM Area" v="Enabled">
              <Name v="RAM"/>
              <Address v="128"/>
              <Size v="224"/>
              <Qualifier v="READ_WRITE"/>
            </boolgroup>
          </group>
          <group name="Memory Area3">
            <boolgroup name="ROM/RAM Area" v="Disabled" />
          </group>
        </list>
      </boolgroup>
    </CompilerProperties>
  </CPU_Bean>

  <Bean name="HSync" type="Capture">
    <Enabled v="Y"/>

    <Properties>
      <Component_name v="HSync"/>
      <Capture_device v="TPM11"/>
      <Counter v="TPM1"/>
      <Capture_input_pin v="PTA1_KBI1P1_TPM1CH1_ADC1P1"/>
      <Capture_input_signal v="HSync"/>
      <Pull_resistor v="pull up"/>
      <Edge v="falling edge"/>
      <boolgroup name="Interrupt service/event" v="Enabled">
        <Capture_interrupt v="Vtpm1ch1"/>
        <Capture_priority v="medium priority"/>
        <boolgroup name="Overflow support" v="Disabled" />
      </boolgroup>
      <Maximum_time_of_event v="8192 &#181;s"/>
      <group name="Initialization">
        <Enabled_in_init__code v="yes"/>
        <Events_enabled_in_init_ v="yes"/>
      </group>
      <group name="CPU clock/speed selection">
        <High_speed_mode v="This component enabled"/>
        <Low_speed_mode v="This component disabled"/>
        <Slow_speed_mode v="This component disabled"/>
      </group>
    </Properties>

    <Methods>
      <Enable v="don&apos;t generate code"/>
      <Disable v="don&apos;t generate code"/>
      <EnableEvent v="don&apos;t generate code"/>
      <DisableEvent v="don&apos;t generate code"/>
      <Reset v="don&apos;t generate code"/>
      <GetCaptureValue v="generate code"/>
      <GetStatus v="don&apos;t generate code"/>
      <GetPinValue v="generate code"/>
    </Methods>

    <Events>
      <Event_module_name v="Events"/>
      <event name="BeforeNewSpeed" v="don&apos;t generate code" />
      <event name="AfterNewSpeed" v="don&apos;t generate code" />
      <event name="OnCapture" v="generate code">
        <Event_procedure_name v="HSync_OnCapture"/>
        <Priority v="same as interrupt"/>
      </event>
      <event name="OnOverflow" v="don&apos;t generate code" />
    </Events>
  </Bean>

  <Bean name="HSyncTimeout" type="FreeCntr">
    <Enabled v="Y"/>

    <Properties>
      <Component_name v="HSyncTimeout"/>
      <Device v="TPM20"/>
      <Counter v="TPM2"/>
      <boolgroup name="Interrupt service/event" v="Enabled">
        <Interrupt v="Vtpm2ch0"/>
        <Interrupt_priority v="medium priority"/>
      </boolgroup>
      <Period_offset v="77 &#181;s"/>
      <Reset_counter_on_compare v="no"/>
      <Same_period_in_modes v="yes"/>
      <Component_uses_entire_timer v="yes"/>
      <group name="Initialization">
        <Enabled_in_init__code v="yes"/>
        <Events_enabled_in_init_ v="yes"/>
      </group>
      <group name="CPU clock/speed selection">
        <High_speed_mode v="This component enabled"/>
        <Low_speed_mode v="This component disabled"/>
        <Slow_speed_mode v="This component disabled"/>
      </group>
    </Properties>

    <Methods>
      <Enable v="don&apos;t generate code"/>
      <Disable v="don&apos;t generate code"/>
      <EnableEvent v="don&apos;t generate code"/>
      <DisableEvent v="don&apos;t generate code"/>
      <Reset v="generate code"/>
      <GetCounterValue v="don&apos;t generate code"/>
      <SetCompare v="don&apos;t generate code"/>
      <GetStatus v="don&apos;t generate code"/>
    </Methods>

    <Events>
      <Event_module_name v="Events"/>
      <event name="BeforeNewSpeed" v="don&apos;t generate code" />
      <event name="AfterNewSpeed" v="don&apos;t generate code" />
      <event name="OnInterrupt" v="generate code">
        <Event_procedure_name v="HSyncTimeout_OnInterrupt"/>
        <Priority v="same as interrupt"/>
      </event>
    </Events>
  </Bean>

  <Bean name="CSyncEn" type="BitIO">
    <Enabled v="Y"/>

    <Properties>
      <Component_name v="CSyncEn"/>
      <Pin_for_I_O v="PTA3_KBI1P3_TCLK2_ADC1P3"/>
      <Pin_signal v="CSyncEn"/>
      <Pull_resistor v="no pull resistor"/>
      <Open_drain v="push-pull"/>
      <Slew_rate_control_for_PTA3 v="no"/>
      <Drive_strength_for_PTA3 v="High"/>
      <Direction v="Input/Output"/>
      <group name="Initialization">
        <Init__direction v="Input"/>
        <Init__value v="0"/>
      </group>
      <Safe_mode v="yes"/>
      <Optimization_for v="speed"/>
    </Properties>

    <Methods>
      <GetDir v="don&apos;t generate code"/>
      <SetDir v="generate code"/>
      <SetInput v="don&apos;t generate code"/>
      <SetOutput v="don&apos;t generate code"/>
      <GetVal v="generate code"/>
      <PutVal v="generate code"/>
      <ClrVal v="generate code"/>
      <SetVal v="generate code"/>
      <NegVal v="don&apos;t generate code"/>
    </Methods>

    <Events>
    </Events>
  </Bean>

  <Bean name="CSyncInv" type="BitIO">
    <Enabled v="Y"/>

    <Properties>
      <Component_name v="CSyncInv"/>
      <Pin_for_I_O v="PTA2_KBI1P2_TCLK1_ADC1P2"/>
      <Pin_signal v="CSyncInv"/>
      <Pull_resistor v="no pull resistor"/>
      <Open_drain v="push-pull"/>
      <Slew_rate_control_for_PTA2 v="no"/>
      <Drive_strength_for_PTA2 v="High"/>
      <Direction v="Output"/>
      <group name="Initialization">
        <Init__direction v="Output"/>
        <Init__value v="1"/>
      </group>
      <Safe_mode v="yes"/>
      <Optimization_for v="speed"/>
    </Properties>

    <Methods>
      <GetDir v="don&apos;t generate code"/>
      <SetDir v="don&apos;t generate code"/>
      <SetInput v="don&apos;t generate code"/>
      <SetOutput v="don&apos;t generate code"/>
      <GetVal v="generate code"/>
      <PutVal v="generate code"/>
      <ClrVal v="generate code"/>
      <SetVal v="generate code"/>
      <NegVal v="don&apos;t generate code"/>
    </Methods>

    <Events>
    </Events>
  </Bean>

  <Bean name="VSync" type="Capture">
    <Enabled v="Y"/>

    <Properties>
      <Component_name v="VSync"/>
      <Capture_device v="TPM10"/>
      <Counter v="TPM1"/>
      <Capture_input_pin v="PTA0_KBI1P0_TPM1CH0_ADC1P0"/>
      <Capture_input_signal v="VSync"/>
      <Pull_resistor v="pull up"/>
      <Edge v="falling edge"/>
      <boolgroup name="Interrupt service/event" v="Disabled" />
      <Maximum_time_of_event v="8192 &#181;s"/>
      <group name="Initialization">
        <Enabled_in_init__code v="yes"/>
        <Events_enabled_in_init_ v="yes"/>
      </group>
      <group name="CPU clock/speed selection">
        <High_speed_mode v="This component enabled"/>
        <Low_speed_mode v="This component disabled"/>
        <Slow_speed_mode v="This component disabled"/>
      </group>
    </Properties>

    <Methods>
      <Enable v="don&apos;t generate code"/>
      <Disable v="don&apos;t generate code"/>
      <EnableEvent v="don&apos;t generate code"/>
      <DisableEvent v="don&apos;t generate code"/>
      <Reset v="don&apos;t generate code"/>
      <GetCaptureValue v="generate code"/>
      <GetStatus v="don&apos;t generate code"/>
      <GetPinValue v="generate code"/>
    </Methods>

    <Events>
      <Event_module_name v="Events"/>
      <event name="BeforeNewSpeed" v="don&apos;t generate code" />
      <event name="AfterNewSpeed" v="don&apos;t generate code" />
      <event name="OnCapture" v="don&apos;t generate code" />
      <event name="OnOverflow" v="don&apos;t generate code" />
    </Events>
  </Bean>

  <Bean name="RgbStatus" type="BitIO">
    <Enabled v="Y"/>

    <Properties>
      <Component_name v="RgbStatus"/>
      <Pin_for_I_O v="PTA4_TPM2CH0O_BKGD_MS"/>
      <Pin_signal v="RgbStatus"/>
      <Pull_resistor v="no pull resistor"/>
      <Open_drain v="push-pull"/>
      <Slew_rate_control_for_PTA4 v="no"/>
      <Drive_strength_for_PTA4 v="High"/>
      <Direction v="Output"/>
      <group name="Initialization">
        <Init__direction v="Output"/>
        <Init__value v="0"/>
      </group>
      <Safe_mode v="yes"/>
      <Optimization_for v="speed"/>
    </Properties>

    <Methods>
      <GetDir v="don&apos;t generate code"/>
      <SetDir v="don&apos;t generate code"/>
      <SetInput v="don&apos;t generate code"/>
      <SetOutput v="don&apos;t generate code"/>
      <GetVal v="generate code"/>
      <PutVal v="generate code"/>
      <ClrVal v="generate code"/>
      <SetVal v="generate code"/>
      <NegVal v="don&apos;t generate code"/>
    </Methods>

    <Events>
    </Events>
  </Bean>

</PE_PROJECT_SETTINGS_DOCUMENTATION>
