Adc Demo; Dma Demo; Pwm Demo; Rtc Demo - NEC 78K0R - Cool it! User Manual

Demonstration kit for the 78k0r 16-bit microcontroller family
Hide thumbs Also See for 78K0R - Cool it!:
Table of Contents

Advertisement

78K0R - Cool it!

11.2 ADC demo

This sample program demonstrates the usage of the A/D converter. After button SW1 is pressed three 8-bit
PWM's are generated by using the plural channel mode of the Timer array unit. The PWM's were feeding the
three low-pass filter's U1A, U1B, U1C. The PWM's were modulated every 50us triggered by Timer channel 5
interrupt signal. Based on the amount of four hundred interpolations the generation of a 50Hz sinus wave is
simulated. By pressing SW1, the Timer channel 5 is stopped and the actual voltage level can be measured.
Using the up/down directions of SW1 the PWM duty cycle can be modified and the output voltage of the
selected low-pass filter U1A, U1B or U1C is measured again. The selection of the output voltage channel
can be done by using the left/right direction of SW1. The sinus wave generation is restarted by pressing
SW1.

11.3 DMA demo

This sample program demonstrates the usage of the DMA controller. After the program is started press
button SW1 to start DMA transfer. The DMA is trigger by Timer channel 1 every 100 ns. After 52 bytes are
transferred to the D/A converter channel 0 and 1, the DMA is re-initialized within the DMA interrupt service
routine. The analog output values can be measured using the connectors TPU23 and TPU24.

11.4 PWM demo

This sample program demonstrates the generation of a 8-bit and 16-bit PWM by using the Timer array unit.
After the program is started press button SW1 to start the PWM demonstration. The Timer channels 4 and 5
are used for the generation of the 16-bit PWM and the Timer channels 6 and 7 for the generation of the 8-bit
PWM. The duty cycles of the PWM's can be changed by using the up/down direction of the navigation switch
SW1. By pressing SW1 the increment respectively decrement of the duty cycle is stopped. The 8-bit PWM
controls the lighting intensity of LED1 and the 16-bit PWM controls LED2. By using the left/right direction of
the navigation switch SW1 the minimum / maximum duty cycle can be set.

11.5 RTC demo

This sample program demonstrates the usage of the real time counter. After the program is started press
button SW1 to start RTC demonstration. By using the navigation switch SW1 the following Menus can be
selected:
** 78K0R/KG3 **
** 78K0R/KG3 **
** Cool-it! **
** Cool-it! **
** RTC Demo **
** RTC Demo **
1. Display Clock
1. Display Clock
** RTC Demo **
** RTC Demo **
2. Set Clock
2. Set Clock
** RTC Demo **
** RTC Demo **
3. Set Alarm
3. Set Alarm
A menu can be selected by using the up/down direction of SW1. The corresponding menu point can be
entered and left by pressing SW1. Changing of date, time, clock mode, alarm weekday and alarm time is
done by using the up/down direction of navigation switch SW1.
Su 16-Oct-06
Su 16-Oct-06
12:00:00 AM
12:00:00 AM
S
S
Su 16-Oct-06
Su 16-Oct-06
12:00:00 AM
12:00:00 AM
SuMoTuWeThFrSa
SuMoTuWeThFrSa
Set Alarm Time
Set Alarm Time
◄ . . . . . . . ►
◄ . . . . . . . ►
User's Manual U18426EE1V0UM00
Displays actual date
and time
Setup of date, time and
clock mode (24h or
AM/PM mode)
12:00:00 AM
12:00:00 AM
2
2
Setup of alarm
weekday and alarm
time
45

Advertisement

Table of Contents
loading

Table of Contents