English
Language : 

M16C26A-M Datasheet, PDF (3/17 Pages) Renesas Technology Corp – Sample Program (Message)
ç
M16C/26A Group
Sample Program (Message)
4. Operational Outline
When a character is input to HyperTerminal (keyboard of a PC), the input character is shown on liquid crystal display and at the same time
stored in the internal flash memory.
Connect the serial port (RS-232C) of a PC and the D-sub connecter on the microcomputer side with a straight cable. When characters are
input to HyperTerminal, the input characters are shown on liquid crystal display on the microcomputer side. If while in this state SW1 is
depressed, the characters shown on liquid crystal display are written into the internal flash memory of the microcomputer. The result of a
write operation is shown on liquid crystal display, indicating whether the characters have been successfully written in.
Then, when the reset switch is depressed, the data written into memory immediately before that is redisplayed on liquid crystal display.
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
Internal flash memory
BLOCK A
A
0F800h
B
C
D
E
F
M16C26A
48#005
0F810h
When SW1 is depressed, the data displayed
on LCD is saved in the internal flash memory.
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 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. The data transmitted via HyperTerminal is received using this
clock.
REJ05B0816-0110 Rev.1.10
2007.11
Page 3 of 17