10-88-1261 概述
Sample Program (Terminal Software) 示例程序(终端软件)
10-88-1261 数据手册
通过下载10-88-1261数据手册来全面了解它。这个PDF文档包含了所有必要的细节,如产品概述、功能特性、引脚定义、引脚排列图等信息。
PDF下载Application Notes
M16C/26A Group
Sample Program (Terminal Software)
1. Summary
This sample program shows the characters and numerals input from the keyboard of a PC on liquid crystal display by using the Renesas
Starter Kit for M16C/26A (R0K33026AS000BE).
(Straight type)
Received data
The extension board used here is a product
from PI System Co., Ltd.
2. Introduction
The example described in this document applies to the microcomputers listed below:
Microcomputers: M16C26A
This sample program runs on the Renesas Starter Kit for M16C/26A (R0K33026AS000BE).
Prepare an extension board available for the Renesas Starter Kit or create a circuit similar to the one shown in the example circuit on page
14 and then connect it to the Starter Kit.
This program uses RSK_LIB. For details about RSK_LIB, see the RSK_LIB reference manual. (RSK_LIB is the library software provided
for use with the Renesas Starter Kit for M16C/26A.)
REJ05B0809-0110 Rev.1.10
2007.12
Page 1 of 17
M16C/26A Group
Sample Program (Terminal Software)
3. Port Arrangement
The terminal reception serial port and the buzzer are the facilities mounted on an extension board for the Renesas Starter Kit. To use
these facilities, connect an extension board to the Starter Kit.
LCD
LCD_E
P91
P63
P62
P71
Xin
Terminal data reception
LCD_RS
LCD_D7
LCD_D6
LCD_D5
LCD_D4
P61
P60
10MHz
M30260F8AGP
REJ05B0809-0110 Rev.1.10
2007.12
Page 2 of 17
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.
D-sub connector
Straight cable
Liquid crystal display (LCD)
A , B , C , D , E , F
A B C D E F
Personal computer (PC)
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
M16C/26A Group
Sample Program (Terminal Software)
5. Operational Specification
The data received from HyperTerminal is displayed.
1) Reset start
Communication format
Baud rate: 9,600 bps
(In microcomputer, set at 9,615 bps)
Stop bit: 1
Parity: None
Number of characters received: 16
(Only up to 16 characters are accepted)
Received character codes written in ASCII
2) Character code received
a
i
b
c
d
e
f
g
h
Control code
TAB (0x09): Clear
Entire received string is cleared
BS (0x08): Backspace
One character is cleared
3) BS code received
a
b
c
d
e
f
g
h
4) TAB code received
REJ05B0809-0110 Rev.1.10
2007.12
Page 4 of 17
M16C/26A Group
Sample Program (Terminal Software)
6. Definition of the RSK Functionality and the RSK_LIB APIs and Common Functions Used by
Terminal Software
6.1 Definition of the RSK Functionality
RSKdefine.h file
In this application, the following functionalities (those shown in red) are set.
/*********************************************************
The boot information on CPU is defined
Usually, this mode is used
*********************************************************/
#define _CPU_M16C26A_NORMAL_MOD
/* Use in low power mode can be performed. */
//#define _CPU_M16C26A_32KHZ_MOD
/* Use of access of a flash can be performed. */
//#define _CPU_M16C26A_DATAFLASF_USE
/********************************************************
The hardware function which RSK supports is chosen
/********************************************************/
//#define _USE_KEY
#define _USE_BUZZER
//#define _OPTION_USE_AD
#define _OPTION_USE_COM_RX
//#define _OPTION_USE_COM_TX
//#define _OPTION_USE_INFRAEDRX
//#define _OPTION_USE_INFRAEDTX
//#define _OPTION_USE_SW
//#define _OPTION_USE_LED
//#define _OPTION_USE_IO
There are no individual definitions of selected functionality.
REJ05B0809-0110 Rev.1.10
2007.12
Page 5 of 17
M16C/26A Group
Sample Program (Terminal Software)
6.2 APIs and Common Functions Used
ApiStatusType RL_SetTimerReq( unsigned int TimerValue, char TimerMode, int *TimerNo, int *ERcode );
ApiStatusType RL_StartTimer( int TimerNo, int *ERcode );
ApiStatusType RL_CheckTimer( int TimerNo, int *ERcode );
ApiStatusType RL_Putc_Lcd( char Ylocation, char outc, int *ERcode );
ApiStatusType RL_Putc_LcdLoc( char Xlocation, char Ylocation, char RvTime, char outc, int *ERcode );
ApiStatusType RL_Open_Com( int bitlenght, int stopbit, int parity, int bps, int *ERcode );
ApiStatusType RL_Getc_Com( char *ComRxChar, int *ERcode );
ApiStatusType RL_Start_Buzzer( char freqNo, int *ERcode );
ApiStatusType RL_Stop_Buzzer( int *ERcode );
void RL_ErrorHook( int FuncNo, int ErrorNo );
For details about the APIs and common functions used by the sample program (terminal software), see the Renesas Starter Kit
Library V.1.00 Reference Manual.
REJ05B0809-0110 Rev.1.10
2007.12
Page 6 of 17
M16C/26A Group
Sample Program (Terminal Software)
7. Flowchart
Terminal
Initialize serial I/O
Clear display on LCD
Request timer setup
Start timers
Wait for reception
Process buzzer
Process received character
REJ05B0809-0110 Rev.1.10
2007.12
Page 7 of 17
M16C/26A Group
Sample Program (Terminal Software)
8. Tutorial
1.
Launch the HEW by double-clicking its icon.
2.
Change the session name from “default Session” to “SessionM16C_E8_System.”
REJ05B0809-0110 Rev.1.10
2007.12
Page 8 of 17
M16C/26A Group
Sample Program (Terminal Software)
3.
Select “M30260F8A” for Device.
Select “Download emulator firmware” for Mode.
REJ05B0809-0110 Rev.1.10
2007.12
Page 9 of 17
M16C/26A Group
Sample Program (Terminal Software)
Check the box labeled “Power supply is carried out. (MAX 300mA)” and then select “5.0V.”
REJ05B0809-0110 Rev.1.10
2007.12
Page 10 of 17
M16C/26A Group
Sample Program (Terminal Software)
4.
In the program and the work RAM text boxes of Firmware Location Address, enter “FA0” and “0B8” respectively.
Leave the box labeled “Debug a program using the WDT” unchecked.
REJ05B0809-0110 Rev.1.10
2007.12
Page 11 of 17
M16C/26A Group
Sample Program (Terminal Software)
5.
Choose Download from the Debug tab and download a module.
The upper-side choices for Download show the location from which a project was downloaded.
REJ05B0809-0110 Rev.1.10
2007.12
Page 12 of 17
M16C/26A Group
Sample Program (Terminal Software)
6.
Click “Start after Reset” to start program execution.
7.
Please do "Cancellation" when "The file is opened" window opens.
REJ05B0809-0110 Rev.1.10
2007.12
Page 13 of 17
M16C/26A Group
Sample Program (Terminal Software)
8. Example Circuit
9. Part List
Part name
Part No.
Q’ty
Manufacturer
Type number
Value
9pin
Remark
Male
D-sub connector
RS232C driver
Ceramic capacitor
Resistor
J1
1
1
5
2
2
U3
Maxim
Panasonic
ROHM
Molex
MAX3221ECAE
ECJ-1VF1H104Z
MCR10EZHF103
10-88-1261
C2 - C6
R3,R4
JA1,JA2
100n
10k
1/8W, 5%
PCB header
26pin
Male, 2-row, vertical type
REJ05B0809-0110 Rev.1.10
2007.12
Page 14 of 17
M16C/26A Group
Sample Program (Terminal Software)
10.
Web Sitet
Renesas Technology Web site
http://www.renesas.com/
REJ05B0809-0110 Rev.1.10
2007.12
Page 15 of 17
M16C/26A Group
Sample Program (Terminal Software)
Revision History
Content of revision
Points
Rev.
Date of issue
Page
1.00
1.10
2006.06.30
2007.12.03
-
-
First revision issued
RSK_LIB APIs supported
REJ05B0809-0110 Rev.1.10
2007.12
Page 16 of 17
M16C/26A Group
Sample Program (Terminal Software)
REJ05B0809-0110 Rev.1.10
2007.12
Page 17 of 17
10-88-1261 相关器件
型号 | 制造商 | 描述 | 价格 | 文档 |
10-88-1262 | MOLEX | Board Connector, 26 Contact(s), 2 Row(s), Male, Straight, Solder Terminal | 获取价格 |
![]() |
10-88-1264 | MOLEX | Board Connector, 26 Contact(s), 2 Row(s), Male, Straight, Solder Terminal | 获取价格 |
![]() |
10-88-1282 | MOLEX | Board Connector, 28 Contact(s), 2 Row(s), Male, Straight, Solder Terminal | 获取价格 |
![]() |
10-88-1285 | MOLEX | Board Connector, 28 Contact(s), 2 Row(s), Male, Right Angle, 0.1 inch Pitch, Solder Terminal, Locking, Black Insulator, Receptacle | 获取价格 |
![]() |
10-88-1286 | MOLEX | Board Connector, 28 Contact(s), 2 Row(s), Male, Right Angle, 0.1 inch Pitch, Solder Terminal, Receptacle | 获取价格 |
![]() |
10-88-1302 | MOLEX | Board Connector, 30 Contact(s), 2 Row(s), Male, Straight, Solder Terminal | 获取价格 |
![]() |
10-88-1304 | MOLEX | Board Connector, 30 Contact(s), 2 Row(s), Male, Straight, Solder Terminal | 获取价格 |
![]() |
10-88-1322 | MOLEX | Board Connector, 32 Contact(s), 2 Row(s), Male, Straight, Solder Terminal | 获取价格 |
![]() |
10-88-1323 | MOLEX | Board Connector, 32 Contact(s), 2 Row(s), Male, Straight, 0.1 inch Pitch, Solder Terminal, Receptacle, | 获取价格 |
![]() |
10-88-1324 | MOLEX | Board Connector, 32 Contact(s), 2 Row(s), Male, Straight, Solder Terminal | 获取价格 |
![]() |
10-88-1261 相关文章

- 2025-02-26
- 102


- 2025-02-26
- 109


- 2025-02-26
- 79


- 2025-02-26
- 79
