Application Note / Sample Program Old versions

Product: S1C17M00/W00 series(2017/5/15)

"Sample software" for the function verification of each peripheral circuit and "sample driver" for each peripheral circuit are available for all models.The manual is shared with the models in the following table. It describes how to use the sample software and its functions.

Function Overview Sample program Document Bug report
Series Common
Basic sample program pack
[Common]
Sample programs are made for S1C17M01/W22/W23.
But it is available for S1C17W00 series.
rev1.2.1
ZIP
GNU17v2/3
2016/2/10
rev1.2
PDF
2015/12/25
PDF
2016/12/27
Difference of Basic sample program pack [S1C17M10]
Header file, sample program
rev1.1.1
ZIP
GNU17v2/3
2016/5/20
rev1.1.1
txt
2016/5/20
-
[S1C17W03/W04]
Header file,sample program
rev1.1
ZIP
GNU17v2/3
2016/2/10

rev1.1.1
txt
2016/2/10

rev1.1.1
txt
2016/2/10

-
[S1C17W13]
Header file, sample program
rev1.1.0
ZIP
GNU17v2/3
2016/8/12

rev1.1.0
txt
2016/8/23

rev1.1.0
txt
2016/8/23

rev1.0.0
txt
2016/8/23

-
[S1C17W14/W16]
Header file, sample program
rev1.1
ZIP
GNU17v2/3
2016/2/29
rev1.1
txt
2016/2/29
-
[S1C17W15]
Header file, sample program
rev1.1.1
ZIP
GNU17v2/3
2016/3/10
rev1.1.1
txt
2016/3/10
-
[S1C17W18]
Header file, sample program
rev1.0a
ZIP
GNU17v2/3
2016/2/29
- -
[S1C17W34/W35/W36]
Header file, sample program
rev1.0
ZIP
GNU17v2/3
2016/8/12

rev1.1.0
txt
2016/8/23

rev1.1.0
txt
2016/8/23

-

to new versions

Product: S1C17500 series(2022/3/23)

"Sample software" for the function verification of each peripheral circuit and "sample driver" for each peripheral circuit are available for all models.The manual is shared with the models in the following table. It describes how to use the sample software and its functions.

Function Overview Sample program Document Bug report
Basic sample program pack
(G2)
[S1C17564]
Header files, Sample programs for all peripheral circuits. Support for GNU17 Ver.2
rev1.1
ZIP
PDF PDF
Peripheral circuit Sample Software [S1C17589] rev1.2
ZIP
GNU17v2/3
2016/2/29
PDF
2016/2/29
PDF
2016/12/27

to new versions

Product: S1C17602

Function Overview Sample program
A/D Converter Sample code to use the A/D converter (ADC10SA) function.
The code acquires analog/digital values from the luminance sensor mounted on S5U1C17602T11 (SVT17602) and displays them on the LCD panel.
ZIP
Clock Timer (CT) Sample code to use the clock timer (CT) function.
The code generates 1Hz interrupt to update the internally retained time when SW1 is pressed; it displays the time when SW1 is pressed again as End time on the simulated I/O window.
ZIP
Power consumption measurement Sample code to measure the power consumption of the IC alone.
It measures the power consumption of S1C17602 used alone in the Halt and Sleep Mode.
ZIP
I2C Communications Sample code to use the I2C master (I2CM) and slave (I2CS) functions to achieve communications. The code transmits data from Master to Slave. Then it converts the data received by the Slave into lowercase characters and transmits them to Master. Then the code displays the received data to the simulated I/O window. ZIP
LCD Driver Sample code for using the LCD driver function to drive LCD panels.
The code activates or inactivates the entire LCD panel.
ZIP
Oscillator Circuit (OSC) Sample code to switch the Oscillator (OSC) circuits.
The code switches OSC1, IOSC, and OSC3, and displays 1, 2, 3… to the simulated I/O window at constant intervals.
ZIP
I/O Ports Sample code for using the IO port (PORT) function. Pressing SW1-4 connected to P00-03 defined as input ports generates interrupts. P10-14 defined as output ports have toggled outputs. ZIP
PWM & Capture Timer Sample code to use the PWM & capture timer (T16E) function.
The code generates Compare-A-Match or Compare-B-Match Interrupt and displays it on the simulated I/O window. At the same time, it outputs PWM waveforms to TOUT3 and TOUTN3.
ZIP
Remote Controller
Reception Mode
Sample code to use the Remote Controller (REMC) Reception Mode for infrared communication with a transmitter device.
The code receives data from the transmitter device, and it checks if the received data matches with the data internally detained. After the check, the code displays the received data on the simulated I/O window.
ZIP
Remote Controller
Transmission Mode
Sample code to use the Remote Controller (REMC) Transmission Mode, and infrared communication with the receiver device.
The code transmits data to the receiver device, and displays the transmitted data on the simulated I/O window.
ZIP
R/F Converter Sample code to use the RF converter (RFC).
The code displays the counter values on the simulated I/O window when starting the oscillators of temperature and humidity sensors mounted on S5U1C17602T11 (SVT17602).
ZIP
Sleep/Halt Instructions Sample code for using the Sleep/Halt command.
The code executes the Halt command and releases it by the 16-bit timer Ch.0 interrupt. It also executes the Sleep command and releases it by generating an interrupt with SW1.
ZIP
SPI Master Mode Sample code to use the Master Mode SPI function for communicating with a slave device.
The code simultaneously transmits and receives data to and from a slave device and displays the received data on the simulated I/O window.
ZIP
Supply Voltage Detection Circuit Sample code to use the supply voltage detector (SVD) function.
The code changes a reference voltage and enables the SVD circuit. It displays "xxxM volts" when the supply voltage gets lower than the reference voltage.
ZIP
Stopwatch Timer Sample code to use the stopwatch timer (SWT) function.
The code enables the stopwatch when SW1 is pressed. The counter value increases every time a 100Hz interrupt occurs to the stopwatch timer, and stops it when SW1 is pressed again. Measured time is shown on the simulated I/O window.
ZIP
8-bit Timer Sample code to use the 8-bit timer (T8F) function.
The code generates 8-bit timer interrupts and displays the result on the simulated I/O window.
ZIP
8-bit OSC1Timer Sample code too use the 8-bit OSC1 timer (T8OSC1).
The code generates Compare Match Interrupt and displays it on the simulated I/O window.
ZIP
16-bit Timer Sample code for using the 16-bit timer (T16) function.
The code generates 16-bit timer interrupt, and displays the result on the simulated I/O window.
ZIP
UART Sample code to use the UART function for communications.
The code transmits uppercase letters of alphabet from A to Z, and displays the received data on the simulated I/O window.
ZIP
Watchdog Timer Sample code to use the watchdog timer (WDT) function.
The code clears the watchdog timer every time SW1 is pressed. The watchdog timer is not cleared unless SW1 is pressed; thus NMI is generated and the result is shown on the simulated I/O window.
ZIP

*Sample softwares in gray box are previous version, there are latest version on the other parts.

to new versions

Product: S1C17702

Function Description Sample program
Clock Timer Sample code to use the clock timer (CT) function.
The code generates 1Hz or 2Hz interrupt and displays it on the simulated I/O window.
ZIP
Power Consumption Sample code to measure the power consumption of the IC alone.
It measures the power consumption of S1C17702 used alone in the Halt and Sleep Modes.
ZIP
I2C Sample code to communicate with a slave device using the I2C function.
The code achieves the communication with the ST Microelectronics EEPROM (M24C04: 4K-bit). It transmits data to EEPROM and receives the same data. Then it displays the received data on the simulated I/O window.
ZIP
LCD Driver Sample code for using the LCD driver function to drive LCD panels.
The code displays a checker pattern on the LCD panel, and checks black and white colors on the LCD at constant intervals. Then it causes an LCD interrupt and displays 4 shades of gray on the LCD.
ZIP
Oscillator Circuit Sample code to switch the Oscillator (OSC) circuits.
The code switches OSC1, IOSC and OSC3, and displays 1, 2, 3… to the simulated I/O window at constant intervals.
ZIP
I/O Ports Sample code to use the IO port (PORT) function. Pressing SW1-4 connected to P00-03 defined as input ports generates interrupts. P10-14 defined as output ports have toggled outputs.
ZIP
Remote Controller
Reception Mode
Sample code to use the Remote Controller (REMC) Reception Mode, and infrared communication with the transmitter device.
The code receives data from the transmitter device, and it checks if the received data matches with the data internally detained. After the check, the code displays the received data on the simulated I/O window.
ZIP
Remote Controller
Transmission Mode
Sample code to use the Remote Controller (REMC) Transmission Mode, and infrared communication with the receiver device.
The code transmits data to the receiver device, and displays the transmitted data on the simulated I/O window.
ZIP
Sleep/Halt Commands Sample code to use the Sleep/Halt command.
The code executes the Halt command and releases it by the 16-bit timer Ch.0 interrupt. It also executes the Sleep command and releases it by generating an interrupt with SW1.
ZIP
SPI Master Mode Sample code to use the Master Mode SPI function for communicating with a slave device.
The code simultaneously transmits and receives data to and from a slave device and displays the received data on the simulated I/O window.
ZIP
Supply Voltage Detection Circuit Sample code to use the supply voltage detector (SVD) function.
The code sets up a reference voltage, and displays "UNDER!" when the supply voltage gets lower than the reference voltage.
ZIP
Stopwatch Timer Sample code to use the stopwatch timer (SWT) function.
The code generates 1Hz or 10Hz interrupt and displays it on the simulated I/O window.
ZIP
8-bit Timer Sample code to use the 8-bit timer (T8F) function.
The code generates an 8-bit timer interrupt and displays it on the simulated I/O window.
ZIP
8-bit OSC1 Timer Sample code to use the 8-bit OSC1 timer (T8OSC1).
The code generates Compare Match Interrupt and displays it on the simulated I/O window.
ZIP
16-bit Timer Sample code to use the 16-bit timer (T16) function.
The code generates a 16-bit timer interrupt, and displays it on the simulated I/O window.
ZIP
PWM & Capture Timer Sample code to use the PWM & capture timer (T16E) function.
The code generates Compare-A-Match or Compare-B-Match Interrupt and displays it on the simulated I/O window.
ZIP
UART Sample code to use the UART function for communications.
The code transmits the ASCII character codes from 0x21 to 0x7e, receives up to 100 packets of data, and displays the transmitted and received data on the simulated I/O window.
ZIP
Watchdog Timer Sample code to use the watchdog timer (WDT) function.
The code generates 16-bit timer Ch. 0 interrupt and periodically clears the watchdog timer. Then, it halts the 16-bit timer Ch.0. Not to clear the watchdog timer for a certain period, the code generates an NMI and displays it on the simulated I/O window.
ZIP

*Sample softwares in gray box are previous version, there are latest version on the other parts.

to new versions

Product: S1C17801

Function Description Sample program
16-bit multi function timer(MFT) Sample code to generate PWM output waveforms using the MFT function. The PWM waveform output changes the luminance level of LED3 mounted on S5U1C17801T.(Program is loaded to Internal FLASH) rev1.0
ZIP
2015/6/23
16-bit multi function timer Sample code to generate PWM output waveforms using the MFT function. The PWM waveform output changes the luminance level of LED3 mounted on S5U1C17801T. ZIP
Clock Generator Sample code to generate clock signals for UART CH.0, I2C CH.0, and SPI using the clock generator. ZIP
Real-Time Clock Sample code to set up interrupts and set up or acquire year-month-date and time using the RTC function. The code acquires time from RTC, displays it, and sets the specified date to RTC. ZIP
Flash Controller
(Internal Flash)
Sample code to erase/write the internal flash using the FLASHC function. ZIP
Flash Controller (External Memory) Sample code to erase/write the external flash using the FLASHC function. ZIP
Field Loadable Software (FLS) program Sample code to erase/write the internal or external flash connected to S1C17801 via ICD board or S5U1C17001H (ICD mini), using the debugger (GDV17).
(To debug by loading the program to other makers' flash, refer to the sample code on the right.)
ZIP
8-bit programmable timer Sample code to generate interrupts using the PT8 function. The code starts the 8-bit timer, causes an interrupt and displays it on the simulated I/O window. ZIP
Watchdog Timer Sample code to use the WDT function. It generates a non-maskable interrupt using the WDT function. . ZIP
UART Sample code to perform communications using the UART function. Communications between two units of S5U1C17801T, or between one S5U1C17801T and another device. ZIP
I2C Sample code to use the I2C function. It enables the communication with the Microchip Technology's EEPROM (24AA256: 256K-bit) mounted on S5U1C17801T. ZIP
Multimedia Card (MMC) using SPI Mode

Sample code to read or write the MMC in the SPI mode using the SPI function. The code writes specific data to MMC, reads them out, and then compares them.
Note: For details on MMC, refer to the material offered by the MultiMedia Card Association.

ZIP
I2S Sample code to use the I2S function. It initializes the AudioCodec (TI's PCM3793A) mounted on S5U1C17801T, plays back voice data, inputs voices via MIC and plays them back. ZIP
Remote Controller Sample code to achieve an infrared remote control using the REMC function. It transmits or receives remote control codes for TVs. ZIP
GPIO Sample code to use the GPIO function. It changes the colors of LED1 mounted on S5U1C17801T and rotates SW2 (RotarySW) to cause an interrupt. ZIP
A/D Converter Sample code to use the ADC function using the analog input pin AIN7 that recognizes SW1 to SW6 mounted on S5U1C17801T. ZIP
LCD Controller
(S1C17801 only)
Sample code to use the LCDC function. The code displays data on the Emerging Display Technologies' LCD panel (32F92) mounted on S5U1C17801T. ZIP
USB (Mass storage) Sample code to achieve mass storage by the connection with PC using the USB function. The Host recognizes a device with MMC (Multimedia Card) inserted in the MMC card slot on S5U1C17801T as a mass storage class USB device. ZIP
USB (Flash self-rewrite) Sample code to download the program to internal and external flash using the USB function. The PC recognizes the connected S1C17801/S1C17501 as a USB Rewriter Device, and then deletes, writes and reads the data on flash by the Vendor Request Class commands using the Downloader software on the PC. ZIP
Multiplier Sample code to use MAC function for multiplication and product-sum operation.
Multiplication and product-sum operation are performed either using MAC or without using MAC.
ZIP