1.Folder structure
Examples of projects are IAR EWARM and KEIL MDK PJ.

TMPM3HxA_V1.0.0
|   M3HxA_manual_eng.txt
|   SOFTWARE LICENSE AGREEMENT.pdf
|   TMPM3HxA_readme.txt
|   ソフトウエア使用権許諾契約書.pdf
|
\---TMPM3HQA
    +---BSP
    |   \---Adbun_M3HQA
    |       +---inc
    |       |       bsp_com.h
    |       |       bsp_dlcd.h
    |       |       bsp_ei2c.h
    |       |       bsp_i2c.h
    |       |       bsp_led.h
    |       |       bsp_pulse.h
    |       |       bsp_rtc.h
    |       |       bsp_sw.h
    |       |       bsp_timer.h
    |       |       bsp_uart_io.h
    |       |       bsp_uart_io_dma.h
    |       |
    |       \---src
    |               bsp.c
    |               bsp.h
    |               bsp_config_adbun_m3hqa_com.h
    |               bsp_config_adbun_m3hqa_dlcd.c
    |               bsp_config_adbun_m3hqa_dlcd.h
    |               bsp_config_adbun_m3hqa_ei2c.c
    |               bsp_config_adbun_m3hqa_ei2c.h
    |               bsp_config_adbun_m3hqa_i2c.c
    |               bsp_config_adbun_m3hqa_i2c.h
    |               bsp_config_adbun_m3hqa_led.c
    |               bsp_config_adbun_m3hqa_led.h
    |               bsp_config_adbun_m3hqa_pulse.c
    |               bsp_config_adbun_m3hqa_pulse.h
    |               bsp_config_adbun_m3hqa_rtc.c
    |               bsp_config_adbun_m3hqa_rtc.h
    |               bsp_config_adbun_m3hqa_sw.c
    |               bsp_config_adbun_m3hqa_sw.h
    |               bsp_config_adbun_m3hqa_timer.c
    |               bsp_config_adbun_m3hqa_timer.h
    |               bsp_config_adbun_m3hqa_uart_io.c
    |               bsp_config_adbun_m3hqa_uart_io.h
    |               bsp_config_adbun_m3hqa_uart_io_dma.c
    |               bsp_config_adbun_m3hqa_uart_io_dma.h
    |
    +---Examples
    |   +---ADC
    |   |   +---ADC_Monitor
    |   |   |   +---arm
    |   |   |   |       ADC_Monitor.uvoptx
    |   |   |   |       ADC_Monitor.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       ADC_Monitor.ewd
    |   |   |   |       ADC_Monitor.ewp
    |   |   |   |       ADC_Monitor.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   \---ADC_SoftwareTrigger
    |   |       +---arm
    |   |       |       ADC_SoftwareTrigger.uvoptx
    |   |       |       ADC_SoftwareTrigger.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       ADC_SoftwareTrigger.ewd
    |   |       |       ADC_SoftwareTrigger.ewp
    |   |       |       ADC_SoftwareTrigger.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---CG
    |   |   +---CG_EXINT
    |   |   |   +---arm
    |   |   |   |       CG_EXINT.uvoptx
    |   |   |   |       CG_EXINT.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       CG_EXINT.ewd
    |   |   |   |       CG_EXINT.ewp
    |   |   |   |       CG_EXINT.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   \---CG_RTC
    |   |       +---arm
    |   |       |       CG_RTC.uvoptx
    |   |       |       CG_RTC.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       CG_RTC.ewd
    |   |       |       CG_RTC.ewp
    |   |       |       CG_RTC.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---DAC
    |   |   \---DAC
    |   |       +---arm
    |   |       |       DAC.uvoptx
    |   |       |       DAC.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       DAC.ewd
    |   |       |       DAC.ewp
    |   |       |       DAC.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---DLCD
    |   |   \---DLCD_ADC
    |   |       +---arm
    |   |       |       DLCD_ADC.uvoptx
    |   |       |       DLCD_ADC.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       DLCD_ADC.ewd
    |   |       |       DLCD_ADC.ewp
    |   |       |       DLCD_ADC.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---DMAC
    |   |   \---DMAC_UART
    |   |       +---arm
    |   |       |       DMAC_UART.uvoptx
    |   |       |       DMAC_UART.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       DMAC_UART.ewd
    |   |       |       DMAC_UART.ewp
    |   |       |       DMAC_UART.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---DNF
    |   |   \---DNF
    |   |       +---arm
    |   |       |       DNF.uvoptx
    |   |       |       DNF.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       DNF.ewd
    |   |       |       DNF.ewp
    |   |       |       DNF.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---EI2C
    |   |   +---EI2C_MasterSlave
    |   |   |   +---arm
    |   |   |   |       EI2C_MasterSlave.uvoptx
    |   |   |   |       EI2C_MasterSlave.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       EI2C_MasterSlave.ewd
    |   |   |   |       EI2C_MasterSlave.ewp
    |   |   |   |       EI2C_MasterSlave.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   +---EI2C_MultiMaster
    |   |   |   +---arm
    |   |   |   |       EI2C_MultiMaster.uvoptx
    |   |   |   |       EI2C_MultiMaster.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       EI2C_MultiMaster.ewd
    |   |   |   |       EI2C_MultiMaster.ewp
    |   |   |   |       EI2C_MultiMaster.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   \---EI2C_SingleMaster
    |   |       +---arm
    |   |       |       EI2C_SingleMaster.uvoptx
    |   |       |       EI2C_SingleMaster.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       EI2C_SingleMaster.ewd
    |   |       |       EI2C_SingleMaster.ewp
    |   |       |       EI2C_SingleMaster.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---FLASH
    |   |   +---FLASH_Code
    |   |   |   +---arm
    |   |   |   |       FLASH_Code.scat
    |   |   |   |       FLASH_Code.uvoptx
    |   |   |   |       FLASH_Code.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       FLASH_Code.ewd
    |   |   |   |       FLASH_Code.ewp
    |   |   |   |       FLASH_Code.eww
    |   |   |   |       FLASH_Code.icf
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   +---FLASH_Data
    |   |   |   +---arm
    |   |   |   |       FLASH_Data.scat
    |   |   |   |       FLASH_Data.uvoptx
    |   |   |   |       FLASH_Data.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       FLASH_Data.ewd
    |   |   |   |       FLASH_Data.ewp
    |   |   |   |       FLASH_Data.eww
    |   |   |   |       FLASH_Data.icf
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   \---FLASH_UserInformation
    |   |       +---arm
    |   |       |       FLASH_UserInformation.scat
    |   |       |       FLASH_UserInformation.uvoptx
    |   |       |       FLASH_UserInformation.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       FLASH_UserInfomation.ewd
    |   |       |       FLASH_UserInfomation.ewp
    |   |       |       FLASH_UserInfomation.eww
    |   |       |       FLASH_UserInfomation.icf
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---I2C
    |   |   +---I2C_MasterSlave
    |   |   |   +---arm
    |   |   |   |       I2C_MasterSlave.uvoptx
    |   |   |   |       I2C_MasterSlave.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       I2C_MasterSlave.ewd
    |   |   |   |       I2C_MasterSlave.ewp
    |   |   |   |       I2C_MasterSlave.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   +---I2C_MultiMaster
    |   |   |   +---arm
    |   |   |   |       I2C_MultiMaster.uvoptx
    |   |   |   |       I2C_MultiMaster.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       I2C_MultiMaster.ewd
    |   |   |   |       I2C_MultiMaster.ewp
    |   |   |   |       I2C_MultiMaster.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   \---I2C_SingleMaster
    |   |       +---arm
    |   |       |       I2C_SingerMaster.uvoptx
    |   |       |       I2C_SingerMaster.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       I2C_SingleMaster.ewd
    |   |       |       I2C_SingleMaster.ewp
    |   |       |       I2C_SingleMaster.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---LVD
    |   |   \---LVD_Interrupt
    |   |       +---arm
    |   |       |       LVD_Interrupt.uvoptx
    |   |       |       LVD_Interrupt.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       LVD_Interrupt.ewd
    |   |       |       LVD_Interrupt.ewp
    |   |       |       LVD_Interrupt.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---OFD
    |   |   \---OFD
    |   |       +---arm
    |   |       |       OFD.uvoptx
    |   |       |       OFD.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       OFD.ewd
    |   |       |       OFD.ewp
    |   |       |       OFD.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---PORT
    |   |   \---PORT
    |   |       +---arm
    |   |       |       PORT.uvoptx
    |   |       |       PORT.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       PORT.ewd
    |   |       |       PORT.ewp
    |   |       |       PORT.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---RAMP
    |   |   \---RAMParity
    |   |       +---arm
    |   |       |       RAMParity.uvoptx
    |   |       |       RAMParity.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       RAMParity.ewd
    |   |       |       RAMParity.ewp
    |   |       |       RAMParity.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---RMC
    |   |   \---RMC
    |   |       +---arm
    |   |       |       RMC.uvoptx
    |   |       |       RMC.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       RMC.ewd
    |   |       |       RMC.ewp
    |   |       |       RMC.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---RTC
    |   |   \---RTC
    |   |       +---arm
    |   |       |       RTC.uvoptx
    |   |       |       RTC.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       RTC.ewd
    |   |       |       RTC.ewp
    |   |       |       RTC.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---SIWDT
    |   |   \---SIWDT
    |   |       +---arm
    |   |       |       SIWDT.uvoptx
    |   |       |       SIWDT.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       SIWDT.ewd
    |   |       |       SIWDT.ewp
    |   |       |       SIWDT.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---T32A
    |   |   +---T32A_IntervalTimer
    |   |   |   +---arm
    |   |   |   |       T32A_IntervalTimer.uvoptx
    |   |   |   |       T32A_IntervalTimer.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       T32A_IntervalTimer.ewd
    |   |   |   |       T32A_IntervalTimer.ewp
    |   |   |   |       T32A_IntervalTimer.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   \---T32A_PPG
    |   |       +---arm
    |   |       |       T32A_PPG.uvoptx
    |   |       |       T32A_PPG.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       T32A_PPG.ewd
    |   |       |       T32A_PPG.ewp
    |   |       |       T32A_PPG.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---TRM
    |   |   \---TRM
    |   |       +---arm
    |   |       |       TRM.uvoptx
    |   |       |       TRM.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       TRM.ewd
    |   |       |       TRM.ewp
    |   |       |       TRM.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   +---TSPI
    |   |   +---TSPI_ACCELEROMETER
    |   |   |   +---arm
    |   |   |   |       TSPI_ACCELEROMETER.uvoptx
    |   |   |   |       TSPI_ACCELEROMETER.uvprojx
    |   |   |   |
    |   |   |   +---iar
    |   |   |   |       TSPI_ACCELEROMETER.ewd
    |   |   |   |       TSPI_ACCELEROMETER.ewp
    |   |   |   |       TSPI_ACCELEROMETER.eww
    |   |   |   |
    |   |   |   \---src
    |   |   |           main.c
    |   |   |
    |   |   \---TSPI_SPI
    |   |       +---arm
    |   |       |       TSPI_SPI.uvoptx
    |   |       |       TSPI_SPI.uvprojx
    |   |       |
    |   |       +---iar
    |   |       |       TSPI_SPI.ewd
    |   |       |       TSPI_SPI.ewp
    |   |       |       TSPI_SPI.eww
    |   |       |
    |   |       \---src
    |   |               main.c
    |   |
    |   \---UART
    |       +---UART
    |       |   +---arm
    |       |   |       UART.uvoptx
    |       |   |       UART.uvprojx
    |       |   |
    |       |   +---iar
    |       |   |       UART.ewd
    |       |   |       UART.ewp
    |       |   |       UART.eww
    |       |   |
    |       |   \---src
    |       |           main.c
    |       |
    |       +---UART_HalfClockReceive
    |       |   +---arm
    |       |   |       UART_HalfClockReceive.uvoptx
    |       |   |       UART_HalfClockReceive.uvprojx
    |       |   |
    |       |   +---iar
    |       |   |       UART_HalfClockReceive.ewd
    |       |   |       UART_HalfClockReceive.ewp
    |       |   |       UART_HalfClockReceive.eww
    |       |   |
    |       |   \---src
    |       |           main.c
    |       |
    |       \---UART_HalfClockTransmit
    |           +---arm
    |           |       UART_HalfClockTransmit.uvoptx
    |           |       UART_HalfClockTransmit.uvprojx
    |           |
    |           +---iar
    |           |       UART_HalfClockTranmit.ewd
    |           |       UART_HalfClockTranmit.ewp
    |           |       UART_HalfClockTranmit.eww
    |           |
    |           \---src
    |                   main.c
    |
    +---MCU
    |   +---CMSIS
    |   |   |   configration.h
    |   |   |   system.c
    |   |   |   system.h
    |   |   |   system_TRMOSC.c
    |   |   |   TMPM3HLA.h
    |   |   |   TMPM3HMA.h
    |   |   |   TMPM3HNA.h
    |   |   |   TMPM3HPA.h
    |   |   |   TMPM3HQA.h
    |   |   |   TMPM3HQFDAFG.icf
    |   |   |   TMPM3HQFDAFG.scat
    |   |   |   TSB_CMSIS_CORE.h
    |   |   |
    |   |   \---startup
    |   |       +---arm
    |   |       |       startup_TMPM3HLA.s
    |   |       |       startup_TMPM3HMA.s
    |   |       |       startup_TMPM3HNA.s
    |   |       |       startup_TMPM3HPA.s
    |   |       |       startup_TMPM3HQA.s
    |   |       |
    |   |       \---iar
    |   |               startup_TMPM3HLA.s
    |   |               startup_TMPM3HMA.s
    |   |               startup_TMPM3HNA.s
    |   |               startup_TMPM3HPA.s
    |   |               startup_TMPM3HQA.s
    |   |
    |   \---Driver
    |       \---TSB_driver
    |           +---inc
    |           |       adc.h
    |           |       adc_ch.h
    |           |       adc_dma.h
    |           |       cg.h
    |           |       crc.h
    |           |       dac.h
    |           |       dlcd.h
    |           |       dmac.h
    |           |       dmac_ex.h
    |           |       dnf.h
    |           |       driver_com.h
    |           |       ei2c.h
    |           |       except.h
    |           |       flash.h
    |           |       i2c.h
    |           |       lvd.h
    |           |       ofd.h
    |           |       port.h
    |           |       ramp.h
    |           |       rmc.h
    |           |       siwdt.h
    |           |       t32a.h
    |           |       trm.h
    |           |       tspi.h
    |           |       tspi_dma.h
    |           |       uart.h
    |           |       uart_dma.h
    |           |       uart_ex.h
    |           |
    |           \---src
    |                   adc_ch_g.c
    |                   adc_ch_g.h
    |                   adc_com.h
    |                   adc_dma_g.c
    |                   adc_dma_g.h
    |                   adc_g.c
    |                   adc_g.h
    |                   cg_m3h1_d.c
    |                   cg_m3h1_d.h
    |                   crc_a.c
    |                   crc_a.h
    |                   dac_b.c
    |                   dac_b.h
    |                   dlcd_a.c
    |                   dlcd_a.h
    |                   dmac_b.c
    |                   dmac_b.h
    |                   dmac_com.h
    |                   dmac_ex_b.c
    |                   dmac_ex_b.h
    |                   dnf_a.c
    |                   dnf_a.h
    |                   ei2c_a.c
    |                   ei2c_a.h
    |                   except_m3h1.c
    |                   except_m3h1.h
    |                   flash512ud32_b.c
    |                   flash512ud32_b.h
    |                   i2c_b.c
    |                   i2c_b.h
    |                   lvd_d.c
    |                   lvd_d.h
    |                   ofd_a.c
    |                   ofd_a.h
    |                   port_m3h1.c
    |                   port_m3h1.h
    |                   ramp_a.c
    |                   ramp_a.h
    |                   rmc_a.c
    |                   rmc_a.h
    |                   siwdt_a.c
    |                   siwdt_a.h
    |                   t32a_b.c
    |                   t32a_b.h
    |                   trm_b.c
    |                   trm_b.h
    |                   tspi_dma_e.c
    |                   tspi_dma_e.h
    |                   tspi_e.c
    |                   tspi_e.h
    |                   uart_c.c
    |                   uart_c.h
    |                   uart_com.h
    |                   uart_dma_c.c
    |                   uart_dma_c.h
    |                   uart_ex_c.c
    |                   uart_ex_c.h
    |
    \---Utility
        +---inc
        |       app_horol.h
        |       fc_copy.h
        |       sys_timer.h
        |
        \---src
                app_horol.c
                fc_copy.c
                sys_timer.c

2.How to switch target MCU

When you switch to other MCU, please do following procedure.

1.Switch target MCU
   Switch target MCU on the each PJ on the IDE.
2.Switch link file
   Switch link file on the each PJ on the IDE.
3.Switch startup files
   Switch registered startup file on the each PJ on the IDE.

  e.g.
  startup_TMPM3HQA.s  =>  startup_TMPM3HQA.s

4.Modify target mcu on Header file.
   Enable target device on TSB_CMSIS_CORE.h

  e.g.
         #define TMPM3HNA     =>   /* #define TMPM3HNA */  
      /* #define TMPM3HQA */  =>  #define TMPM3HQA

3.Notes

The system and product names included in this document are generally
registered trademarks or trademarks of their respective owners.