M3HxA Sample Outline 2022-04-20

====ADC==============================================================

-(1)ADC_MONITOR------------------------------------------------------

1.Overview
  This sample software program uses ADC surveillance function. 
  When the AD conversion value becomes over the maximum setting 
  value or under the minimum setting value, corresponding LED's 
  turn on.
  
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  The thermistor detection output voltage of BSP_THERMISTOR_1 is
  converted to digital value ADC.
  The digital value is used to calculate the temperature by the CPU. 
  The temperature value is output on the terminal software via 
  USB-UART with the configuration in 3.Others.
  
  (1) The temperature is between 25 and 35, the BSP_LED_0
      and the BSP_LED_1 light.
  (2) The temperature is 24 or less, all LED's turn off. 
  (3) The temperature is 36 or more, all LED's turn on.

3.Others
  Nothing.


-(2)ADC_SoftwareTrigger----------------------------------------------

1.Overview
  This sample software program outputs the data converted by the
  ADC on the terminal emulator.
 
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  The output voltage of BSP_THERMISTOR_1 is measured by the ADC, 
  and the temperature-converted value is output to the terminal
  emulator.

  The variable voltage values of BSP_VR_1 and BSP_VR_2 are measured
  by ADC and the measurement data is output to the terminal emulator.

  The terminal emulator outputs at 5 second intervals.

3.Others
  Nothing.


====CG============================================================

-(1)CGRST_EXINT------------------------------------------------------

1.Overview
  This sample software program executes change of the MCU mode
  using switch inputs.

2.Sample operation
  Switch to Low Power Consumption mode (IDLE / STOP1 / STOP2)
  triggered by port input by Push-Switch.
  After switching to the Low Power Consumption mode, it returns
  to the NORMAL mode by detecting an external interrupt.

  In NORMAL mode,
   
-BSP_LED_1 blinks in cycle 2Hz and Duty50% (other LEDs are off).
   
-Port input monitoring (monitoring at regular intervals).
   -Press BSP_PSW_1 to switch to IDLE mode.
   -Press BSP_PSW_2 to switch to STOP1 mode.
   -Press BSP_PSW_3 to switch to STOP2 mode.

  In Low Power Consumption mode,

  (1) IDLE
   
   -BSP_LED_2 is on (other LEDs are off).
   
   -Press BSP_PSW_5 to switch to NORMAL mode.

  (2) STOP1
   
   -BSP_LED_3 is on (other LEDs are off).
   
   -Press BSP_PSW_5 to switch to NORMAL mode.

  (3) STOP2
   
   -BSP_LED_4 is on (other LEDs are off).

      -Press BSP_PSW_5 to switch to NORMAL mode.

3.Others
  Nothing.


-(2)CG_RTC-----------------------------------------------------------

1.Overview
  This sample software program executes change of the MCU mode
  using Real Time Clock.

2.Sample operation
  Switch to Low Power Consumption mode (IDLE / STOP1 / STOP2)
  triggered by port input by Push-Switch.

  When shifting to the Low Power Consumption mode, the LED lights
  up and you can check the operation switching.

  After switching to the Low Power Consumption mode, it will
  return to NORMAL mode after 1 minute by RTC.

  In NORMAL mode,
 
  -BSP_LED_1 blinks in cycle 2Hz and Duty50% (other LEDs are off).
 
  -Port input monitoring (monitoring at regular intervals).
   -Press BSP_PSW_1 to switch to IDLE mode.
   -Press BSP_PSW_2 to switch to STOP1 mode.
   -Press BSP_PSW_3 to switch to STOP2 mode.

  In Low Power Consumption mode,

  (1) IDLE
 
     -BSP_LED_2 is on (other LEDs are off).
      
-After 1 minute by RTC, it shifts to NORMAL mode.

  (2) STOP1
   
   -BSP_LED_3 is on (other LEDs are off).
   
   -After 1 minute by RTC, it shifts to NORMAL mode.

  (3) STOP2
   
   -BSP_LED_4 is on (other LEDs are off).

      -After 1 minute by RTC, it shifts to NORMAL mode.

3.Others
  Nothing.


====DAC==============================================================

-(1)DAC--------------------------------------------------------------
1.Overview
  This sample software program outputs the analog voltage corresponding
  to the conversion location input from the terminal emulator.

  BSP_UART_1 is used for operation log output and command input for
  terminal emulator communication.

2.Sample operation
  An 8-bit data input from the terminal emulator is received and 
  converted to an analog voltage.
 
  The analog voltage level is output to a port (BSP_DAC_1).
   -Data Max;5 Character
   -Data Range;0(0x00) to 255(0xFF) 

3.Others
  Nothing.


====DLCD_ADC=========================================================

-(1)DLCD_ADC---------------------------------------------------------
1.Overview
  This sample software program AD-converts the voltage measured
  every 100ms and displays it on the LCD in 8 digits.

2.Sample operation
  After Timer_A has elapsed, measure the voltage of BSP_VR_1 and
  update the information on the LCD.
   -Timer A;100ms

3.Others
  Nothing.


====DMAC_UART========================================================

-(1)DMAC_UART--------------------------------------------------------
1.Overview
  This sample software program uses the DMAC (Direct Memory Access
  Controller) function to transfer data via UART communication.

  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  Output Log_1 to BSP_UART_1 (terminal software) and wait for data
  input of BSP_UART_1.

  Input of BSP_UART_1 and reception of [Line feed] are judged as
  input completion.

  After outputting Log_2 to BSP_UART_1, the input data is echoed
  back.
   -Log1; "input=xx"   Confirm the input with "[line feed]"
   -Log2; " Echo=xx"   xx: Data from the terminal software

3.Others
  Nothing.


====DNF==============================================================

-(1)DNF_LED----------------------------------------------------------
1.Overview
  This sample software program removes Push-switch input noise
  using DNF function.

2.Sample operation
  The noise is removed from the input signal of the push BSP_PSW_4
  which is pushed down. 
  When the BSP_PSW_4 is pushed down during turn-off of a corresponding
  BSP_LED_1, the BSP_LED_1 turns on. 
  On the other hand, when the BSP_PSW_4 is pushed down during 
  turn-on of BSP_LED_1, BSP_LED_1 turns off.

3.Others
  Nothing.


====EI2C=============================================================

-(1)EI2C_MASTER_SLAVE------------------------------------------------
1.Overview
  This sample software program transmits data as master using EI2C 
  function, and receives data as slave. 

  BSP_EI2C_1 is used as a Master Device or Slave Device.
  BSP_UART_1 is used for operation log output and command input for
  terminal emulator communication.

2.Sample operation
  "command >" is displayed on the terminal emulator.
  When proper characters are input according to the command format,
  the MCU executes the EI2C Master operation or the EI2C Slave 
  operation (Default is the Master mode).
  The switching from Master to Slave is done by a command. 
 
  Master: Enter commands (Write/Read) from the terminal emulator.

  
   Slave: When a Request from Master is received, EI2C control is 
          used and the result is output according to the command.

          Slave_address is displayed in the terminal emulator as
          "sa xx".

  (1) Write Command;This is a data transmission command.
      It consists of a 1-byte slave address and transmission data.
      The maximum transmission data is 4 bytes.
  (2) Read Command;This is a data request command.
      It consists of a 1-byte slave address and requested read size
      data. The maximum required read size data is 2 bytes.
  (3) Slave Command;This is a command to switch to slave mode.
      In master mode, enter ucommand >"slave"vto switch to slave
  @  mode.
  @  If you make a request more than the number of times set in
  @  SLAVE_CONTINUE, it will return from Slave mode to Master mode.

3.Others
  Nothing.


-(2)EI2C_MULTI_MASTER------------------------------------------------

1.Overview
  This sample software program use two evaluation boards (A, B)
  to check the operation of normal access, Bus, Busy, Arbitration
  Lost, etc.
  Request EI2C write/read to Slave Device mounted on evaluation
  board A at the timing of pressing BSP_PSW_1.
 
  BSP_EI2C_1 is used as a Master Device or Slave Device.
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  (1) Evaluation board A

      When BSP_PSW_1 is pressed, a write request for data A for size A
      is made from Sub Address A of Slave Device.

      If you press BSP_PSW_1 again, a read request for size B will be
      made from Sub Address B of the Slave Device.

  (2) Evaluation board B

      The basic operation is the same as evaluation board A.
      Change Sub Address B to Sub Address C.

      Also, change Size B to Size C.
       -Sub Address A;0x0000
       -Size A;sizeof(Data A)
       -Sub Address B;0x0000
       -Size B;sizeof(Data A)
       -Sub Address C;0x0004
       -Size C;sizeof(Data A)-4
       -Data A;"toshibaABCDEFGHIJKLMNOPQRST"

3.Others
  Nothing.


-(3)EI2C_SINGLE_MASTER-----------------------------------------------

1.Overview
  This sample software program that controls EI2C according to the
  command input from the terminal emulator for the Sub Address of
  the Slave Device.

  BSP_EI2C_1 is used as a Master Device.
  BSP_UART_1 is used for operation log output and command input for
  terminal emulator communication.

2.Sample operation
  Write and read data according to the command entered from the
  terminal emulator.

  Make a 1-byte write/read request to the Sub Address of the
  Slave Device.
  (1) Write Command;This is a data transmission command.
      It consists of 1 byte of slave address and 1 byte of transmit
      data.
  (2) Read Command;This is a data request command.
      It consists of a 1-byte slave address and 1-byte request data.
  (3) Sub Address;0x0000
      Please send the Sub Address according to the Sub Address size
      of the Slave Device.

3.Others
  Nothing.


====Flash============================================================

-(1)Flash_Code-------------------------------------------------------
1.Overview
  This sample software programs that swaps Code Area A and Code Area
  B each time BSP_PSW_1 is pressed and executes Code Area A.
 
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  Code Executes the processing of Area A.

  When BSP_PSW_1 is pressed, BSP_LED_1 is turned on, BSP_LED_2 is
  turned off, BSP_LED_3 is turned on, BSP_LED_4
Turns off.
  Also, save the Code Area A to RAM_A and the Code Area B to RAM_B.

  Erases the data in the Code Area. After that, the contents of
  RAM_B are written in Code Area A, and the contents of RAM_A are
  written in Code Area B.
   -Code Area A;Code Flash Block1
   -Code Area B;Code Flash Block2
   -Code Area Size;0x1000
   -RAM A;Backup RAM in Code Area A
   -RAM B;Backup RAM in Code Area B

3.Others
  Nothing.


-(2)Flash_Data-------------------------------------------------------

1.Overview
  This is sample software programs that accesses (Write/Erase)
  Data Flash each time BSP_PSW_1 is pressed.

  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  When BSP_PSW_1 is pressed, the entire Data Area is erased, and
  data is written in the order of Data Size A area, 0x00 to 0xFF
  from the start address of Data Area A.

  Also, write in the order of Data Size A area, 0x00 to 0xFF from
  the start address of Data Area B.

  Then erase Data Area A and erase Data Area C.
   -Data Area A;Data Flash Page 0
   -Data Area B;Data Flash Page 1
   -Data Area C;Data Flash Block 0
   -Data Size A;Data Flash Page Size

3.Others
  Nothing.


-(3)Flash_UserInformation--------------------------------------------

1.Overview
  This sample software programs that accesses (Write/Erase)
  User Information A each time BSP_PSW_1 is pressed.

  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  Press Push-Switch to copy the flash process to RAM.
  After that, User Information A is deleted and the character
  string A is written from the start address of User Information A.
  After the writing is completed, the data for Backup Size is saved
  in RAM_A from the beginning of User Information A.
   -User Information A;UserInformation All area
   -Backup Size;UserInformation All area
   -RAM A;GetUserInformation Data
        gGetUserInformation Datahis the RAM name.
 -  String;"Toshiba MCU-name UserInformation Example"

3.Others
  Nothing.


====I2C==============================================================

-(1)I2C_MASTER_SLAVE-------------------------------------------------
1.Overview
  This sample software program transmits data as master using EI2C 
  function, and receives data as slave. 

  BSP_I2C_1 is used as a Master Device or Slave Device.
  BSP_UART_1 is used for operation log output and command input for
  terminal emulator communication.

2.Sample operation
  "command >" is displayed on the terminal emulator.
  When proper characters are input according to the command format,
  the MCU executes the I2C Master operation or the I2C Slave 
  operation (Default is the Master mode).
  The switching from Master to Slave is done by a command. 

  Master: Enter commands (Write/Read) from the terminal emulator.


   Slave: When a Request from Master is received, I2C control is 
          used and the result is output according to the command.

          Slave_address is displayed in the terminal emulator as
          "sa xx".

  (1) Write Command;This is a data transmission command.
      It consists of a 1-byte slave address and transmission data.
      The maximum transmission data is 4 bytes.
  (2) Read Command;This is a data request command.
      It consists of a 1-byte slave address and requested read size
      data. The maximum required read size data is 2 bytes.
  (3) Slave Command;This is a command to switch to slave mode.
      In master mode, enter ucommand >"slave"vto switch to slave
@    mode.
  @  If you make a request more than the number of times set in
@    SLAVE_CONTINUE, it will return from Slave mode to Master mode.

3.Others
  Nothing.


-(2)I2C_MULTI_MASTER-------------------------------------------------

1.Overview
  This sample software program use two evaluation boards (A, B)
  to check the operation of normal access, Bus, Busy, Arbitration
  Lost, etc.
  Request I2C write/read to Slave Device mounted on evaluation
  board A at the timing of pressing BSP_PSW_1.

  BSP_I2C_1 is used as a Master Device or Slave Device.
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  (1) Evaluation board A

      When BSP_PSW_1 is pressed, a write request for data A for
      size A is made from Sub Address A of Slave Device.

      If you press BSP_PSW_1 again, a read request for size B will
      be made from Sub Address B of the Slave Device.
  (2) Evaluation board B

      The basic operation is the same as evaluation board A.
      Change Sub Address B to Sub Address C.

      Also, change Size B to Size C.
       -Sub Address A;0x0000
       -Size A;sizeof(Data A)
       -Sub Address B;0x0000
       -Size B;sizeof(Data A)
       -Sub Address C;0x0004
       -Size C;sizeof(Data A)-4
       -Data A;"toshibaABCDEFGHIJKLMNOPQRST"

3.Others
  Nothing.


-(3)I2C_SINGLE_MASTER------------------------------------------------

1.Overview
  This sample software program that controls I2C according to the
  command input from the terminal emulator for the Sub Address of
  the Slave Device.
 
  BSP_I2C_1 is used as a Master Device.
  BSP_UART_1 is used for operation log output and command input
  for terminal emulator communication.

2.Sample operation
  Write and read data according to the command entered from the
  terminal emulator.

  Make a 1-byte write/read request to the Sub Address of the
  Slave Device.

  (1) Write Command;This is a data transmission command.
      It consists of 1 byte of slave address and 1 byte of transmit
      data.
  (2) Read Command;This is a data request command.
      It consists of a 1-byte slave address and 1-byte request data.
  (3) Sub Address;0x0000
      Please send the Sub Address according to the Sub Address size
      of the Slave Device.

3.Others
  Nothing.


====LVD==============================================================

-(1)LVD_INTERRRUPT---------------------------------------------------
1.Overview
  This sample software program detects a voltage using LVD function.

2.Sample operation
  If the power supply voltage is above the detection voltage (4.0V),
  BSP_LED_2 will be turned on.

  If the power supply voltage is lower than the detection voltage
  (4.0V), BSP_LED_2 will be off and BSP_LED_1 will be blinking.

  When the power supply voltage is set to the release voltage (4.05V)
  or higher, BSP_LED_1 turns off and BSP_LED_2 blinks.

3.Others
  Nothing.


====OFD==============================================================

-(1)OFD--------------------------------------------------------------
1.Overview
  This sample software program that resets when an abnormality is
  detected in the clock to be measured.

2.Sample operation
  Detects clock abnormality, and normally turns on BSP_LED_1 and
  turns off BSP_LED_2.
  In the event of an abnormality, BSP_LED_1 is turned off and
  BSP_LED_2 is turned on.
   -Clock to be measured;fEHOSC
                         (External high speed oscillator clock)

3.Others
  Nothing.


====PORT=============================================================

-(1)PORT-------------------------------------------------------------
1.Overview
  This sample software program detects the push-down of a push
  switch, and turns on and off the corresponding LED's.

2.Sample operation
  Pressing BSP_PSW is measured for each timer A, and the status is
  confirmed when the data becomes the same for the number of
  chattering times.

  When the switch status is confirmed, the LED is controlled
  according to the pressed status.
  Lights the BSP_LED when BSP_PSW is pressed.
  The LED display is refreshed every timer B.

  (1) BSP_LED_1 lights up when BSP_PSW1 is pressed.

  (2) BSP_LED_2 lights up when BSP_PSW2 is pressed.

  (3) BSP_LED_3 lights up when BSP_PSW3 is pressed.

  (4) BSP_LED_4 lights up when BSP_PSW4 is pressed.

   -Timer A;10ms (BSP_PSW chattering cycle)
   -Chattering Times;3 times
   -Timer B;10ms (LED Refresh cycle)

3.Others
  Nothing.


====RAM_PARITY=======================================================

-(1)RAM_PARITY-------------------------------------------------------
1.Overview
  This is sample software program that saves the character string
  input from the terminal emulator by adding parity to the RAM
  using the write command, and displays the data saved in the RAM
  by the read command after performing a parity check.
 
  BSP_UART_1 is used for operation log output and command input for
  terminal emulator communication.

2.Sample operation
  If a Command is entered, the process will be performed according
  to the entered Command.


  Use the write command to add parity to RAM and save it.

  Use the read command to check the parity of the data saved in
  RAM and display it on the console.
   -Write Data Max;10 character
   -Ram Top Address;0x20001000

3.Others
  Nothing.


====RMC==============================================================

-(1)RMC--------------------------------------------------------------
1.Overview
  This sample software program outputs the signal which is received
  by Remote Control Signal Preprocessor(RMC)to the terminal emulator. 

  BSP_RMC_1 is used for remote control reception.
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  The information received by RMC is output to the terminal emulator.

  The corresponding reception formats are as follows.

 
  (1) NEC format
 
  (2) Toshiba format
   (3) Association for Electric Home Appliances (AEHA) format


  When the remote control mode is received, the log is output according
  to each format.

3.Others
  Nothing.


====RTC==============================================================

-(1)RTC--------------------------------------------------------------
1.Overview
  This is a sample software program for clock control.
  The BSP_LED_1 is turned on/off every time Timer A elapses.
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  The calendar and time are displayed on the terminal emulator.

  Set the initial time and switch BSP_LED_1 ON / OFF every time
  Timer_A elapses.


  Outputs a log every time Timer_B elapses.
   -Timer A;500ms
   -Timer B;1000ms

3.Others
  Nothing.


====SIWDT============================================================

-(1)SIWDT------------------------------------------------------------
1.Overview
  This is a sample software program for the watchdog timer.

2.Sample operation
  The BSP_LED_1 to BSP_LED_4 is switched ON / OFF each time Timer A
  elapses.

  After about 1.1 seconds, the watchdog timer interrupt occurs and
  the watchdog timer is cleared.
   -Timer A;200ms (LED ON / OFF switching cycle)

3.Others
  Nothing.


====T32A=============================================================

-(1)T32A_INTERVAL_TIMER----------------------------------------------
1.Overview
  This sample software program turns on and off corresponding
  BSP_LED every other second using T32A function.
 
2.Sample operation
  Each time Timer A elapses, BSP_LED_1 to BSP_LED_4 are switched
  ON / OFF.
  
  BSP_PSW_1 switch: BSP_LED_1 to BSP_LED_4 stop blinking.
  BSP_PSW_2 switch: BSP_LED_1 to BSP_LED_4 restart blinking.
  
   -Timer A;500ms

3.Others
  Nothing.


-(2)T32A_PPG---------------------------------------------------------
1.Overview
  This sample software program changes step by step the duty ratio
  of the output signal from T32A PPG circuit.
  BSP_T32A_PPG_1 is used for pulse output.
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  At startup, PPG output is stopped.
  When BSP_PSW_1 is pushed down, the PPG starts to output a signal.

  (1) Press BSP_PSW_1 again to stop the PPG signal output.
  
  (2) Pressing BSP_PSW_2 during PPG output changes Duty.
      Each time you press the button, the duty value changes in the
      order of 10, 25, 50, 75, 90, and then returns to 10.

3.Others
  Nothing.


====TRM==============================================================

-(1)TRMOSC-----------------------------------------------------------
1.Overview
  This sample software program that Trimming circuit(TRM) the
  built-in oscillation (fIHOSC) using the reference clock (low-speed
  oscillator (fs) or external reference clock (BSP_T32A_CAPT_1)).

  The compile option toggles the reference clock.

  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  Pulse B is output from BSP_T32A_PPG_2.
  After that, set the trimming initial setting value.

  Error measurement (waveform measurement) is performed until the
  number of trimmings is reached.
 
  BSP_T32A_CAPT_1 is for pulse measurement and is used to measure 
  the external reference clock.
 
  BSP_T32A_TRM_fs is for pulse measurement and is used for fs
  measurement.
 
  BSP_T32A_PPG_2 is for pulse output and is used to check the error
  correction result.

3.Others
  Nothing.


====TSPI=============================================================

-(1)ACCELEROMETER----------------------------------------------------
1.Overview
  This sample software program communicates with the acceleration
  sensor using TSPI function. 
  It outputs X-axis, Y-axis, and Z-axis data of the sensor on the 
  terminal emulator.

  BSP_TSPI_IC is used for accelerometer interface.
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  The X-axis, Y-axis, and Z-axis data of the acceleration sensor 
  are displayed on the terminal software every second.
  
  (1) The swing magnitude of the evaluation board is small,
      BSP_LED_1 lights. 
  (2) The magnitude is bigger, BSP_LED_1 and BSP_LED_2 light. 
  
  (3) The magnitude is about maximum, all LED's(BSP_LED_1, BSP_LED_2,
      BSP_LED_3 and BSP_LED_4)turn on.

  * When the evaluation board is turned upside down, "Detection 
    angle over!!" is displayed on the terminal emulator.

3.Others
  Nothing.


-(2)TSPI_SPI---------------------------------------------------------
1.Overview
  This is a sample software program that assumes data transfer by
  SPI Master control and Slave control function using TSPI driver.
 
  BSP_TSPI_1 is used to receive the transfer data for Slave control.
  BSP_TSPI_2 is used to send the transfer data for Master control.
  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  Enter the valid command "send" from the terminal emulator and
  send the transfer data from BSP_TSPI_2.

  Receives the transfer data from BSP_TSPI_1 and outputs it to the
  terminal emulator.
   -Max Size of Transfer Data;255byte
   -Check Code;CRC16

3.Others
  Nothing.


====UART=============================================================

-(1)UART-------------------------------------------------------------
1.Overview
  This sample software program does echo-back output of data input
  from the terminal emulator using UART function.

  BSP_UART_1 is used for operation log output for terminal emulator
  communication.

2.Sample operation
  Data input for Max Data Size is accepted from the terminal emulator.
  Data input from the terminal software is echoed back.
   -Max Data Size;32 Character

3.Others
  Nothing.


-(2)UART_HALF_CLOCK_RECEIVE------------------------------------------
1.Overview
  This is a sample software program that sends the data received
  in half clock mode to the terminal emulator.

  BSP_UART_2 for Half Clock control for your application.
  BSP_UART_1 is used for operation log output and command input
  for terminal emulator communication.

2.Sample operation
  Receives the data input to the terminal software in UART half
  clock mode.
    -Max Data Size;32 Character

3.Others
  Nothing.


-(3)UART_HALF_CLOCK_TRANSMIT-----------------------------------------
1.Overview
  This is a sample software program that sends the data received
  in half clock mode to the terminal emulator.

  BSP_UART_2 for Half Clock control for your application.
  BSP_UART_1 is used for operation log output and command input
  for terminal emulator communication.

2.Sample operation
  The data input to the terminal software is transmitted in UART
  half clock mode.
    -Max Data Size;32 Character

3.Others
  Nothing.



====BSP==============================================================
The port / communication settings are as follows.

1. UserInterface

   1.1. Push-Switch 
        Channel       Function    Port Number
        BSP_PSW_1     Input       PV0
        BSP_PSW_2     Input       PV1
        BSP_PSW_3     Input       PV2
        BSP_PSW_4     Input       PV3
        BSP_PSW_5     Input       PC2

   1.2. Slide-Switch
        Channel       Function    Port Number
        BSP_SSW_1     Input       PP6
        BSP_SSW_2     Input       PP7
        BSP_SSW_3     Input       |
        BSP_SSW_4     Input       |

   1.3. LED 
        Channel       Function    Port Number
        BSP_LED_1     Output      PK4
        BSP_LED_2     Output      PK5
        BSP_LED_3     Output      PK6
        BSP_LED_4     Output      PK7

   1.4. DIO
        Channel                     Function      Port Number
        BSP_DIAGNOSIS_DIGITALIO     Input         PG0

2. Communication

    2.1. UART Communication 
        Channel        Peripheral Channel    Function    Port Number
        BSP_UART_1     ch0                   TXD         PA1
                                             RXD         PA2
                                             CTS         |
                                             RTS         |
---------------------------------------------------------------------
        BSP_UART_2     ch3                   TXD         PG2
                                             RXD         PG3
                                             CTS         |
                                             RTS         |

    2.2. TSPI Communication 
         Channel       Peripheral Channel    Function    Port Number
         BSP_TSPI_1    |                    TXD         PB3
                                             RXD         PB4
                                             SCK         PB2
                                             CS          PB5
---------------------------------------------------------------------
         BSP_TSPI_2    |                    TXD         PT3
                                             RXD         PT4
                                             SCK         PT2
                                             CS          PT1

    2.3. I2C Communication 
         Channel       Peripheral Channel    Function    Port Number
         BSP_I2C_1     ch1                   SCL         PA4
                                             SDA         PA5
---------------------------------------------------------------------
         BSP_I2C_2     |                    SCL          |
                                             SDA          |

    2.4. EI2C Communication 
         Channel       Peripheral Channel    Function     Port Number
         BSP_EI2C_1    ch1                   SCL         PA4
                                             SDA         PA5
---------------------------------------------------------------------
         BSP_EI2C_2    |                    SCL          |
                                             SDA          |
3. Timer
Channel      Peripheral Channel    Function                      Port Number
BSP_T32A_1   BSP_T32A_TIMER_1      Ch0A:common 1ms               |
BSP_T32A_2   BSP_T32A_PPG_1        Ch3A:Pulse Output             PJ0
BSP_T32A_3   BSP_T32A_PPG_2        Ch3B:Puls@Output(TRM)        PG2
BSP_T32A_4   BSP_T32A_CAPT_1       Ch2A:Pulse Input(Capture)     PR1
BSP_T32A_5   BSP_T32A_TRM_fs       Ch6A:trimming(fs)             |
BSP_T32A_6   BSP_T32A_TIMER_APP    Ch- :application              |

4. ADC
Channel      Peripheral Channel    Function                      Port Number
BSP_ADC_1    BSP_THERMISTOR_1      NTV                           PE0
BSP_ADC_2    BSP_VR_1              RV1                           PD4
BSP_ADC_3    BSP_VR_2              RV2                           PD5

5. DAC 
Channel      Peripheral Channel    Function                      Port Number
BSP_DAC_1    |                    PORT_DA0                      PG0
BSP_DAC_2    |                    PORT_DA1                      PG1
BSP_DAC_3    |                      |                          |
BSP_DAC_4    |                      |                          |

6. RMC 
Channel      Peripheral Channel    Function                      Port Number
BSP_RMC_1    |                    RC_IN                         PB1

7. DLCD 
Channel      Peripheral Channel    Function                      Port Number
BSP_DLCD_1
DCOM         BSP_DLCD_DCOM0        DCOM0                         PC3
             BSP_DLCD_DCOM1        DCOM1                         PC2
             BSP_DLCD_DCOM2        DCOM2                         PC1
             BSP_DLCD_DCOM3        DCOM3                         PC0
SEG
             BSP_DLCD_SEG00        (Also used as BSP_PSW_4)      PV3
             BSP_DLCD_SEG01        (Also used as BSP_PSW_3)      PV2
             BSP_DLCD_SEG02        (Also used as BSP_PSW_2)      PV1
             BSP_DLCD_SEG03        (Also used as BSP_PSW_1)      PV0
             BSP_DLCD_SEG04        SEG04                         PP7
             BSP_DLCD_SEG05        SEG05                         PP6
             BSP_DLCD_SEG06        SEG06                         PP5
             BSP_DLCD_SEG07        SEG07                         PP4
             BSP_DLCD_SEG08        SEG08                         PP3
             BSP_DLCD_SEG09        SEG09                         PK7
             BSP_DLCD_SEG10        SEG10                         PK6
             BSP_DLCD_SEG11        SEG11                         PK5
             BSP_DLCD_SEG12        SEG12                         PK4
             BSP_DLCD_SEG13        (Also used as MBEDIF_IO1)     PK3
             BSP_DLCD_SEG14        SEG14                         PK2
             BSP_DLCD_SEG15        (Also used as MBEDIF_IO0)     PK1
             BSP_DLCD_SEG16        SEG16                         PK0
             BSP_DLCD_SEG17        SEG17                         PJ5
             BSP_DLCD_SEG18        SEG18                         PJ4
             BSP_DLCD_SEG19        SEG19                         PJ3
             BSP_DLCD_SEG20        (Also used as MBEDIF_RXD)     PJ2
             BSP_DLCD_SEG21        (Also used as MBEDIF_TXD)     PJ1
             BSP_DLCD_SEG22        SEG22                         PJ0
             BSP_DLCD_SEG23        SEG23                         PN0
             BSP_DLCD_SEG24        SEG24                         PN1
             BSP_DLCD_SEG25        SEG25                         PN2
             BSP_DLCD_SEG26        SEG26                         PN3
             BSP_DLCD_SEG27        SEG27                         PN4
             BSP_DLCD_SEG28        SEG28                         PN5
             BSP_DLCD_SEG29        SEG29                         PR7
             BSP_DLCD_SEG30        SEG30                         PR6
             BSP_DLCD_SEG31        SEG31                         PR5
             BSP_DLCD_SEG32        SEG32                         PR4
             BSP_DLCD_SEG33        SEG33                         PR3
             BSP_DLCD_SEG34        SEG34                         PR2
             BSP_DLCD_SEG35        SEG35                         PR1
             BSP_DLCD_SEG36        SEG36                         PR0
             BSP_DLCD_SEG37        SEG37                         PC6
             BSP_DLCD_SEG38        SEG38                         PC5
             BSP_DLCD_SEG39        SEG39                         PC4
        
8. System Setting
Clock       Function               MHz                           Notes
fEHOSC      External oscillator    10                            |
fIHOSC      Internal oscillator    10                            |
fs          Low-speed oscillat     0.032768                      |
fc          High-speed clock       120                           |
fsys        System clock           120                           |
Phi-T0      Phi-T0                 120                           |


9. Communication Setting

  9.1. UART Communication Setting 
            Item                     Setting Value              Notes
            Baud Rate                115200(bps)                |
            Data length              8(bit)                     |
            Parity                   None                       |
            Stop Bit                 1(bit)                     |
            Flow Control             None                       |

  9.2. I2C Communication Setting 
            Item                     Setting Value              Notes
            I2CClock                 400KHz                     In Master operation 
            Data length              8bit                       |
            Acknowledge              Available                  |
            Start/Stop Condition     Generated                  |

       Slave operating specifications
           Item                      Setting Value              Notes
           Sub Address Size          0x02                       |
           Data Size                 0x10                       Indicates the valid data size (byte)
                                                                (Sub Address Range: 0000-000F)
       BSP Slave Device specifications
           Item                      Specification              Notes
           IC                        24FC256-I/SN               EEPROM
           Slave Device Address      0xB0                       |
           Sub Address Size          2byte                      |

  9.3. SPI Communication Setting 
           Item                      Setting Value              Notes
           SPIClock                  15MHz                      In Master operation
           Data length               8bit                       |
           Parity                    None                       |
           Data Transfer Direction   MSB                        |
 
