|
Peripheral Circuit
|
Operation function
|
Summary
|
Download
|
|
C Language
|
Assembly Language
|
|
Clock Generator
|
Internal high-speed oscillation clock → X1 clock, X1 clock → Internal high-speed oscillation clock, Internal high-speed oscillation clock → XT1 clock, XT1 clock → Internal high-speed oscillation clock
|
In this sample program, the clock of the clock generator is switched.
|
operation manual (136KB) with project file (74KB) source only (11KB)
|
operation manual (135KB) with project file (100KB) source only (11KB)
|
|
Timer Array Unit (TAU)
|
Interval Timer/Square Wave Output
|
In this sample program, the interrupt of timer channel 2 is generated at intervals of 10 ms and square wave is output.
|
operation manual (146KB) with project file (176KB) source only (10KB)
|
operation manual (146KB) with project file (149KB) source only (10KB)
|
|
External Event Counter
|
This sample program uses the rising edge of P17 as an external event and toggles the output of P16 when the valid number of times of counting the edge is 10.
|
operation manual (101KB) with project file (123KB) source only (10KB)
|
operation manual (146KB) with project file (149KB) source only (10KB)
|
|
Frequency Division Function
|
In this sample program, timer channel 0 is used and 1/1024 of internal high-speed oscillation clock, 8MHz, is output to P01.
|
operation manual (141KB) with project file (70KB) source only (10KB)
|
operation manual (139KB) with project file (149KB) source only (10KB)
|
|
Input Pulse Interval Measurement
|
In this sample program, the rising edge of TI02 is detected by using timer channel 2, and the pulse interval of TI02 is measured.
|
operation manual (129KB) with project file (70KB) source only (10KB)
|
operation manual (129KB) with project file (94KB) source only (10KB)
|
|
Measurement of High-/Low-Level Width of Input Signal
|
In this sample program, both the rising and falling edges of TI02 are detected by using timer channel 2, and the high-level width of TI02 is measured.
|
operation manual (130KB) with project file (70KB) source only (10KB)
|
operation manual (130KB) with project file (95KB) source only (10KB)
|
|
PWM Output
|
In this sample program, timer channel 6 is used as the master and timer channel 7 is used as the slave, and a signal with 25% duty cycle is output.
|
operation manual (156KB) with project file (70KB) source only (10KB)
|
operation manual (155KB) with project file (95KB) source only (10KB)
|
|
One-Shot Pulse Output
|
In this sample program, timer channel 6 is used as the master and timer channel 7 is used as the slave, and a one-shot pulse is output.
|
operation manual (153KB) with project file (70KB) source only (10KB)
|
operation manual (154KB) with project file (95KB) source only (10KB)
|
|
Multiple PWM Output
|
In this sample program, timer channels 0, 1, and 2 are used and the signals with 25% & 50% duty cycle are output respectively.
|
operation manual (156KB) with project file (70KB) source only (10KB)
|
operation manual (156KB) with project file (94KB) source only (10KB)
|
|
Real-Time Counter
|
Watch Counter/Alarm Interrupt
|
In this sample program, years, months, weeks, days, hours, minutes, and seconds are counted by using the watch counter, and an interrupt is generated at a specified time as an alarm function.
|
operation manual (209KB) with project file (73KB) source only (10KB)
|
operation manual (209KB) with project file (97KB) source only (11KB)
|
|
A/D Converter
|
A/D Conversion
|
In this sample program, analog signals input from analog input pins ANI14 (P156) and ANI15 (P157) are converted into digital signals.
|
operation manual (106KB) with project file (70KB) source only (9KB)
|
operation manual (105KB) with project file (93KB) source only (10KB)
|
|
D/A Converter
|
D/A Conversion (Normal Mode)
|
In this sample program, D/A conversion is performed, triggered by a write operation to the DACS0 register.
|
operation manual (98KB) with project file (70KB) source only (9KB)
|
operation manual (97KB) with project file (92KB) source only (9KB)
|
|
D/A Conversion (Real-Time Output Mode)
|
In this sample program, D/A conversion is performed, triggered by the interrupt request signal (INTTM04) of timer channel 4.
|
operation manual (94KB) with project file (73KB) source only (11KB)
|
operation manual (93KB) with project file (99KB) source only (11KB)
|
|
Serial Array Unit (SAU)
|
3-Wire Serial I/O (Master Transmission/Reception, Single Transmission/Reception Mode)
|
In this sample program, master transmission/reception (single transmission/reception mode) operation in 3-wire serial I/O communication is performed.
|
operation manual (128KB) with project file (73KB) source only (11KB)
|
operation manual (127KB) with project file (100KB) source only (11KB)
|
|
3-Wire Serial I/O (Slave Transmission/Reception, Single Transmission/Reception Mode)
|
In this sample program, slave transmission/reception (single transmission/reception mode) operation in 3-wire serial I/O communication is performed.
|
operation manual (121KB) with project file (73KB) source only (11KB)
|
operation manual (121KB) with project file (100KB) source only (11KB)
|
|
3-Wire Serial I/O (Master Transmission/Reception, Continuous Transmission/Reception Mode)
|
In this sample program, master transmission/reception (continuous transmission/reception) operation in 3-wire serial I/O communication is performed.
|
operation manual (149KB) with project file (75KB) source only (11KB)
|
operation manual (148KB) with project file (101KB) source only (11KB)
|
|
3-Wire Serial I/O (Slave Transmission/Reception, Continuous Transmission/Reception Mode)
|
In this sample program, slave transmission/reception (continuous transmission/reception) operation in 3-wire serial I/O communication is performed.
|
operation manual (150KB) with project file (75KB) source only (11KB)
|
operation manual (149KB) with project file (101KB) source only (11KB)
|
|
UART Continuous Transmission
|
In this sample program, UART (continuous transmission mode) operation is performed.
|
operation manual (117KB) with project file (73KB) source only (10KB)
|
operation manual (117KB) with project file (97KB) source only (11KB)
|
|
UART Reception
|
In this sample program, UART (reception mode) operation is performed.
|
operation manual (128KB) with project file (72KB) source only (10KB)
|
operation manual (122KB) with project file (99KB) source only (11KB)
|
|
Simplified I2C Data Transmission
|
In this sample program, a simplified I2C (transmission (address field transmission/ data transmission)) operation is performed.
|
operation manual (135KB) with project file (73KB) source only (11KB)
|
operation manual (129KB) with project file (99KB) source only (11KB)
|
|
Serial Interface IIC0
|
Master Transmission/Reception
|
In this sample program, a master operation by a single-master system is performed with serial interface IIC0.
|
operation manual (123KB) with project file (74KB) source only (11KB)
|
operation manual (117KB) with project file (100KB) source only (11KB)
|
|
Slave Transmission/Reception
|
In this sample program, a slave operation of serial interface IIC0 is performed.
|
operation manual (123KB) with project file (74KB) source only (10KB)
|
operation manual (117KB) with project file (99KB) source only (11KB)
|
|
DMA Controller
|
CSI Consecutive Transmission
|
In this sample program, a DMA controller (CSI consecutive transmission) operation is performed.
|
operation manual (128KB) with project file (106KB) source only (12KB)
|
operation manual (111KB) with project file (100KB) source only (12KB)
|
|
Consecutive Capturing of A/D Conversion Results
|
In this sample program, a DMA controller (consecutive capturing of the A/D conversion results) operation is performed.
|
operation manual (117KB) with project file (74KB) source only (11KB)
|
operation manual (100KB) with project file (99KB) source only (11KB)
|
|
UART Consecutive Reception + ACK Transmission
|
In this sample program, a DMA controller (UART consecutive reception + ACK transmission) operation is performed.
|
operation manual (133KB) with project file (75KB) source only (12KB)
|
operation manual (126KB) with project file (102KB) source only (12KB)
|