English
Language : 

M16C26A-TS Datasheet, PDF (3/17 Pages) Renesas Technology Corp – Sample Program (Terminal Software)
ç
M16C/26A Group
Sample Program (Terminal Software)
4. Operational Outline
When characters are input to HyperTerminal (keyboard of a PC), the program shows the input characters on liquid crystal display.
Connect the serial port (RS-232C) of a PC and the D-sub connecter on the microcomputer side with a straight cable, then enter characters
in HyperTerminal. The input characters are shown on liquid crystal display along with a buzzer tone.
Up to 16 characters can be displayed, not including BS and TAB codes.
Personal computer (PC)
Straight cable
A,B,C,D,E,F
D-sub connector
Liquid crystal display (LCD)
ABCDEF
M16C26A
The operation described above is accomplished using the following microcomputer facilities:
• Timer A0 (timer mode, main 2 ms cycle)
This timer counts 2 milliseconds using the main clock of the microcomputer as the count source.
It is used as the basic timer of RSK_LIB.
Time management, key scan and LCD display management are performed using this timer.
• UART2 (clock-asynchronous serial I/O mode, data reception)
It produces a transfer clock from the main clock of the microcomputer to receive the data transmitted via HyperTerminal.
• Timer A1 (pulse modulation mode, buzzer output)
This timer outputs a waveform with different high and low pulse widths using the main clock of the microcomputer as the count source.
It is used to sound a buzzer to notify data reception at terminal.
REJ05B0809-0110 Rev.1.10
2007.12
Page 3 of 17