Contact us

A new window will open A new window will open

Application Notes / Sample Programs

A sample program is available for each product in the following configuration.

Once you register, you can download the Application Notes / Sample Programs.
(Register for free. Representatives of microcontroller vendors are requested to refrain from registration.)

Login / Register

Arm® Core-Based Microcontrollers

  • User's guide
  • Header / Start-up routine
  • Driver / Sample program
TX00 Series
TX03 Series
TX04 Series

Toshiba's Original Core-Based Microcontrollers

  • The operational function of the TMP89FS60FG Sample Program.

Product Details

TX00 Series M030 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
036
TMPM
037
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V
Clock/Mode control CG Switching example between NORMAL mode and IDLE/STOP mode V V
DMA controller DMAC Example of DMAC settings and data transfer between memory and peripheral devices using the UART V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V
Low Voltage Detection Circuit LVD If Voltage is higher than the detection voltage, UART displays "UPPER". When Voltage is lower than the detection voltage, UART displays "LOWER". V V
Serial bus interface I2C Example of transmission / reception in I2C bus mode V V
Serial channel SIO/UART Example of UART configuration and transmission V V
Simple 16-bit timer TMR16A Example of timer interrupt that runs every 500 ms V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V

TX00 Series M060 Group (TMPM061)

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
061
Analog/Digital converter ADC Example of reading ADC data from analog input pins V
Clock/Mode control CG Switching example between NORMAL mode and STOP mode V
24-bitΔΣ
Analog/Digital Converter
DSADC Example of checking the DSADC status and reading the result V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V
LCD Driver LCD The 8 digits in the string '12345678' will be displayed in order in adjustable interval time by 1/4 duty, 1/3 bias drive system.
The 10 digits in the string '0123456789' will be displayed on the LCD in order in adjustable interval time by a static drive system.
V
Low Voltage Detection Circuit LVD When the power supply voltage is normal, LED0 will blink and LED1 will be turned off.
When the power supply voltage is lower than the detection voltage, it will cause an interrupt: INTLVD,the LED0 will be turned off and LED1 will blink.
V
Real-time clock RTC Configuration example for date and time V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V
Serial channel SIO/UART Example of UART configuration and transmission V
Simple 16-bit timer TMR16A Example of timer interrupt that runs every 500 ms V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V

TX00 Series M060 Group (TMPM066)

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
066
Analog/Digital converter ADC Example of reading ADC data from analog input pins V
Clock/Mode control CG Switching example between NORMAL mode and IDLE/STOP mode V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V
I/O port GPIO Usage example of Port using LEDs and KEYs V
Low Voltage Detection Circuit LVD If Voltage is upper than the detection voltage, UART displays "UPPER". When Voltage is lower than the detection voltage, UART displays "LOWER". V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V
Serial channel SIO/UART Example of UART configuration and transmission V
Simple 16-bit timer TMR16A Example of timer interrupt that runs every 500 ms V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V
High-resolution 16-bit timer TMRD Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V
Synchronized serial interface TSPI Example of transmission / reception in TSPI. V
μDMA controller uDMAC Example of DMAC settings and data transfer between the memories V
USB Device Controller USBD HID(Human Interface Device) Mouse Demo
Once the Evaluation board is connected via USB interface to PC and then powered on, it will be recognized to be a standard USB mouse and then it controls the arrow icon on PC screen as below, which will be repeated for 3 times.
V
CDC (communication device class) Loopback Demo
On the evaluation board, a simple CDC demonstration program was designed to serve as a COM device in a simulation.
V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V

TX03 Series M310 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
311
24-bitΔΣ
Analog/Digital Converter
DSADC Example of checking the DSADC status and reading the result V
I/O port GPIO Usage example of Port using LEDs and KEYs V
Synchronized serial interface SSP This is a sample program to show data received by UART using SSP and UART peripheral drivers. Data are checked and if the received data are the same as the sent data, LED2 and LED3 turn on and if they are not the same, LED0 and LED1 turn off. V
Temperature Sensor TEMP This is a simple example to show MCU's measurement of a relative temperature using a temperature sensor. V
Simple 16-bit timer TMR16A Example of timer interrupt that runs every 500 ms V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V
Serial channel SIO/UART Example of UART configuration and transmission V
μDMA controller uDMAC Example of DMAC settings and data transfer between the memories V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V

TX03 Series M330 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
330
TMPM
332
TMPM
333
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V V
CEC function CEC Example of CEC transmission / reception interrupt V V
Clock/Mode control CG Switching example between NORMAL mode and SLEEP/SLOW mode V V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V V
Remote control signal preprocessor RMC Example of receiving the signals of remote control and decode V V
Real-time clock RTC Configuration example for date and time V V V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V V
V
Serial channel SIO/UART Example of UART configuration and transmission V V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
Configuration example for frequency measurement mode
V V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V V

TX03 Series M340 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
341
Analog/Digital converter ADC Example of reading ADC data from analog input pins V
Clock/Mode control CG Switching example between NORMAL mode and STOP1 mode V
Digital/Analog converter DAC Output example of sawtooth waveform from the DA pin V
DMA controller DMAC Example of DMAC settings and data transfer between memory and peripheral devices using the UART V
External bus interface EXB Example of read / write of the SRAM that is connected to the external bus V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V
I/O port GPIO Usage example of Port using LEDs and KEYs V
Oscillation frequency detection OFD Example of generate a reset for I/O, when the clock exceeds the OFD detection frequency range V
2-phase pulse input counter PHC Configuration example for Quadruple Count mode V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V
Serial channel SIO/UART Example of UART configuration and transmission V
Synchronized serial interface SSP Configuration example for SSP and self-loop back V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V
High-resolution 16-bit timer TMRD Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V

TX03 Series M360 Group (TMPM361/362/363/364)

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
361
TMPM
362
TMPM
363
TMPM
364
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V V V
CAN controller CAN Example of the test loop back mode, such as mailbox message setting, mailbox configuration, message transmission/receiving, mode change (test loop back mode) status getting and usage for interrupt V V
CEC function CEC Example of CEC transmission / reception interrupt V V V V
Clock/Mode control CG Switching example between NORMAL mode and SLEEP mode V V V V
DMA controller DMAC Example of DMAC settings and data transfer between the memories V V V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V V V
Key-on wakeup KWUP

Example of enter and release low power mode

V V V V
Remote control signal preprocessor RMC Example of receiving the signals of remote control and decode V V V V
Real-time clock RTC Configuration example for date and time V V V V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V V V V
Static memory controller SMC Example of SRAM initialization V V V V
Serial channel SIO/UART Example of UART configuration and transmission V V V V
Synchronized serial interface SSP Configuration example for SSP and self-loop back V V V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V V V

TX03 Series M360 Group (TMPM365/366)

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
365
TMPM
366
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V
Clock/Mode control CG Switching example between NORMAL mode and STOP mode V V
DMA controller DMAC Example of DMAC settings and data transfer between memory and peripheral devices using the UART V V
External bus interface EXB Example of read / write of the SRAM that is connected to the external bus V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V
Asynchronous Serial Channel FUART This program sends 64 different data values from TX pin and receives data from RX pin. V
I/O port GPIO Usage example of Port using LEDs and KEYs V V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V V
Serial channel SIO/UART Example of UART configuration and transmission V V
Synchronized serial interface SSP Configuration example for SSP and self-loop back V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V
USB Device Controller USBD HID (Human Interface Device) Mouse Demo
Once the evaluation board is connected via USB interface to PC and then powered on , it will be recognized as a standard USB mouse and then it controls the arrow icon on PC screen as shown below, and this process will be repeated 3 times
V V
CDC (communication device class) Loopback Demo
On the evaluation board, a simple CDC demonstration program was designed to serve as a COM device in a simulation.
V V
MSC (Mass Storage Class) RAM disk Demo
Once the evaluation board is connected via USB interface to PC and then powered on, it will recognize 24 k RAM Disk. You can format it by the computer and save files to it.
V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V

TX03 Series M360 Group (TMPM367/368/369/36B)

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
367
TMPM
368
TMPM
369
TMPM
36B
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V V V
CAN controller CAN Example of the test loop back mode, such as mailbox message setting, mailbox configuration, message transmission/receiving, mode change (test loop back mode) status getting and usage for interrupt V V
Clock/Mode control CG Switching example between NORMAL mode and IDLE/STOP1/STOP2 mode V V V V
Digital/Analog converter DAC Output example of sawtooth waveform from the DA pin V V V
External bus interface EXB Example of read / write of the SRAM that is connected to the external bus V V V V
Encoder Input Circuit ENC This example detects the rolling of mouse wheel. V V V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V V V
Asynchronous Serial Channel FUART This program sends 64 different data values from TX pin and receives data from RX pin. V V V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V V V
Multi-Purpose Timer IGBT This example program demonstrates how to use external trigger to control the PPG output by IGBT driver and EMG function. V V V V
PMD This example demonstrates the phase outputs. V V V V
Low Voltage Detection Circuit LVD If Voltage is higher than the detection voltage, UART displays "UPPER". When Voltage is lower than the detection voltage, UART displays "LOWER". V V V V
Oscillation frequency detection OFD Example of generate a reset for I/O, when the clock exceeds the OFD detection frequency range V V V V
Remote control signal preprocessor RMC Example of receiving the signals of remote control and decode V V V V
Real-time clock RTC Configuration example for date and time V V V V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V V V V
Serial channel SIO/UART Example of UART configuration and transmission V V V V
Synchronized serial interface SSP Configuration example for SSP and self-loop back V V V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V V V
μDMA controller uDMAC Example of DMAC settings and data transfer between the memories V V V V
USB Device Controller USBD HID (Human Interface Device) Mouse Demo
Once the evaluation board is connected via USB interface to PC and then powered on , it will be recognized as a standard USB mouse and then it controls the arrow icon on PC screen as shown below, and this process will be repeated 3 times
V V V
CDC (communication device class) Loopback Demo
On the evaluation board, a simple CDC demonstration program was designed to serve as a COM device in a simulation.
V V V
MSC (Mass Storage Class) RAM disk Demo
Once the evaluation board is connected via USB interface to PC and then powered on, it will recognize 24 k RAM Disk. You can format it by the computer and save files to it.
V V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V V V

TX03 Series M370 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
370
TMPM
372
TMPM
373
TMPM
374
TMPM
375
TMPM
376
TMPM
37A
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V V V V V V
Clock/Mode control CG Switching example between NORMAL mode and STOP mode V V V V V V V
Encoder Input Circuit ENC This example detects the rolling of mouse wheel. V V V V V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V V V V V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V V V V V V
Oscillation frequency detection OFD Example of generate a reset for I/O, when the clock exceeds the OFD detection frequency range V V V V V V V
Motor Control Circuit PMD This example demonstrates the phase outputs. V V V V V V V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V
V
Serial channel SIO/UART Example of UART configuration and transmission V V V V V V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V V V V V V
Voltage Detection Circuit VLTD When the power supply voltage is lower than the detection voltage, the MCU is reset automatically by hardware and Port is set to high level by software. V V V V V V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V V V V V V

TX03 Series M380 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
380
TMPM
381
TMPM
383
TMPM
384
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V V V
Clock/Mode control CG Switching example between NORMAL mode and SLEEP mode V V V V
DMA controller DMAC Example of DMAC settings and data transfer between memory and peripheral devices using the UART V V V V
Digital Noise Filter DNF DNF detects a pulse generated by PPG. If DNF detects a noise pulse, an interrupt request is generated. V V
Encoder Input Circuit ENC This example detects the rolling of mouse wheel. V V V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V V V
Asynchronous Serial Channel FUART This program sends 64 different data values from TX pin and receives data from RX pin. V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V V V
Multi-Purpose Timer IGBT This example program demonstrates how to use external trigger to control the PPG output by IGBT driver and EMG function. V V V V
PMD This example demonstrates the phase outputs. V V V V
Oscillation frequency detection OFD Example of generate a reset for I/O, when the clock exceeds the OFD detection frequency range V V V V
Remote control signal preprocessor RMC Example of receiving the signals of remote control and decode V V V V
Real-time clock RTC Configuration example for date and time V V V V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V V V V
Serial channel SIO/UART Example of UART configuration and transmission V V V V
Synchronized serial interface SSP Example of SSP and transmission / reception using DMAC
Configuration example for SSP and self-loop back
V V V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V V V
Voltage Detection Circuit VLTD When the power supply voltage is lower than the detection voltage, the MCU is reset automatically by hardware and Port is set to high level by software. V V V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V V V

TX03 Series M390 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
390
TMPM
395
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V
CEC function CEC Example of CEC transmission / reception interrupt V V
Clock/Mode control CG Switching example between NORMAL mode and IDLE/SLEEP/Backup STOP mode V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V
Low Voltage Detection Circuit LVD When the power supply voltage is lower than the detection voltage, LED1 will be turned off and LED2 will be turned on. When the power supply voltage is normal again, LED1 will be turned on and LED2 will be turned off. V V
Oscillation frequency detection OFD Example of generate a reset for I/O, when the clock exceeds the OFD detection frequency range V V
Remote control signal preprocessor RMC Example of receiving the signals of remote control and decode V V
Real-time clock RTC Configuration example for date and time V V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V V
Serial channel SIO/UART Example of UART configuration and transmission V V
Synchronized serial interface SSP Configuration example for SSP and self-loop back V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V

TX04 Series M440 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
440
Analog/Digital converter ADC Example of reading ADC data from analog input pins V
Clock/Mode control CG Switching example between NORMAL mode and IDLE/STOP1/STOP2 mode V
Digital/Analog converter DAC Output example of sawtooth waveform from the DA pin V
DMA controller DMAC Example of DMAC settings and data transfer between memory and peripheral devices using the UART V
Enhanced 2-phase pulse input counter EPHC Configuration example for Quadruple Count mode V
Enhanced Serial I/O ESIO Example of transmission for single transfer V
External bus interface EXB Example of read / write of the SRAM that is connected to the external bus V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V
Asynchronous Serial Channel FUART This program sends 64 different data values from TX pin and receives data from RX pin. V
I/O port GPIO Usage example of Port using LEDs and KEYs V
Key Matrix Scan KSCAN The LED0 to LED7 turns  on when KEY0 to KEY7 are pressed one by one. V
Key-on Wake up KWUP Example of enter and release low power mode V
2-phase pulse input counter PHC Configuration example for Quadruple Count mode V
Programmable Servo/
Sequence Controller
PSC The code and data of PSC are transmitted after a reset start using DMAC. The transmitted PSC program is repeatedly executed using TMRB channel. V
Real-time clock RTC Configuration example for date and time V
Serial bus interface SBI Example of transmission / reception in I2C bus mode V
Serial channel SIO/UART Example of UART configuration and transmission V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V
32-bit timer TMRC Example of timer interrupt V
High-resolution 16-bit timer TMRD Example of timer interrupt that runs every 500ms V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V

TX04 Series M460 Group

                                                                                                                                                login / Register

Sample Program/Function Description Product Name
TMPM
461
TMPM
462
TMPM
46B
Analog/Digital converter ADC Example of reading ADC data from analog input pins V V  V
AES Processor AES This is a simple example to show the procedure of ECB/CBC/CTR encryption and decryption. V
CEC function CEC Example of CEC transmission / reception interrupt V V
Clock/Mode control CG Switching example between NORMAL mode and IDLE/STOP1/STOP2 mode V V V
Entropy Seed Generator ESG This is a simple example to show the procedure of 512-bit entropy seed generation by the ESG. V
External bus interface EXB Example of read / write of the SRAM that is connected to the external bus V V V
Flash control FLASH Example of running a program in the internal RAM and performing delete and rewrite of the internal flash memory V V V
Asynchronous Serial Channel FUART This program sends 64 different data values from TX pin and receives data from RX pin. V V V
I/O port GPIO Usage example of Port using LEDs and KEYs V V V
Serial bus interface I2C Example of transmission / reception in I2C bus mode V V
V
Multi-Purpose Timer IGBT This example program demonstrates how to use external trigger to control the PPG output by IGBT driver and EMG function. V V V
Low Voltage Detection Circuit LVD If Voltage is higher than the detection voltage, UART displays "UPPER". When Voltage is lower than the detection voltage, UART displays "LOWER". V V V
Multiple Length Arithmetic Coprocessor MLA This is a simple example to show the procedure of Montgomery multiplication/multiple length addition/multiple length subtraction mode. V
Oscillation frequency detection OFD Example of generate a reset for I/O, when the clock exceeds the OFD detection frequency range V V
Remote control signal preprocessor RMC Example of receiving the signals of remote control and decode V V
Real-time clock RTC Configuration example for date and time V V V
Secure Hash Algorithm Processor SHA This is a simple example to show the procedure of 256-bit hash value generation from message data by the SHA. V
Synchronized serial interface SSP Configuration example for SSP and self-loop back V V V
16-bit timer TMRB Example of timer interrupt that runs every 500 ms
Output example of duty-variable PPG (programmable square wave)
V V V
Serial channel SIO/UART Example of UART configuration and transmission V V V
μDMA controller uDMAC Example of DMAC settings and data transfer between the memories V V V
Watchdog timer WDT Example of the detection time and the processing after the detection for watchdog timer V V V

TLCS-870/C1 Series

                                                                                                                                                login / Register

SP No. Module Name Outline
SP-870-101 - The operational function of the TMP89FS60FG Sample Program
  • 8-bit PWM output
  • 8-bit PPG output
  • 16-bit PPG output
  • UART output
  • SIO output
  • I2C output
  • 10-bit AD input
SP-870-102 RAM, Memory Self-Diagnostic Testing Sample Software

Contacts

If you have any queries, click one of these links:

Technical queries
Queries about purchasing, sampling and IC reliability
To Top
·Before creating and producing designs and using, customers must also refer to and comply with the latest versions of all relevant TOSHIBA information and the instructions for the application that Product will be used with or for.