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(2016/2/29)

"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
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: S1C17701

Function Description Sample program
Oscillator Sample code to switch the Oscillator (OSC) circuits.
The code switches OSC1 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
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
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
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 the result 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
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
Stopwatch Timer Sample code to use the stopwatch timer (SWT) function.
The code generates 1Hz or 10Hz interrupt and displays the result 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
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
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
SPI Slave Mode Sample code to use the Slave Mode SPI function for communicating with a master device.
The code simultaneously transmits and receives data to and from a master device and displays the received data on the simulated I/O window.
ZIP
I2C Sample code to use the I2C function for communicating with a slave device. It achieves the communication with ST Microelectronics' EEPROM (M24C04: 4K-bit). It transmits data to EEPROM and then receives the same data. The received data is shown on the simulated I/O window. ZIP
Remote Controller
Transmission Mode
Sample code to use the Remote Controller (REMC) Transmission Mode for infrared communications with the receiver device.
The code transmits data to the receiver device, and displays the transmitted data on the simulated I/O window.
ZIP
Remote Controller
Reception Mode
Sample code to use the Remote Controller (REMC) Reception Mode for infrared communications 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
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 regular intervals. Then it causes an LCD interrupt and displays 4 shades of gray on the LCD.
ZIP
Supply Voltage Detector 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
Sleep/Halt Command 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

*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