Renesas M16C/62P Group user manual

User manual for the device Renesas M16C/62P Group

Device: Renesas M16C/62P Group
Category: Computer Hardware
Manufacturer: Renesas
Size: 0.54 MB
Added : 3/19/2014
Number of pages: 98
Print the manual

Download

How to use this site?

Our goal is to provide you with a quick access to the content of the user manual for Renesas M16C/62P Group. Using the online preview, you can quickly view the contents and go to the page where you will find the solution to your problem with Renesas M16C/62P Group.

For your convenience

If looking through the Renesas M16C/62P Group user manual directly on this website is not convenient for you, there are two possible solutions:

  • Full Screen Viewing - to easily view the user manual (without downloading it to your computer), you can use full-screen viewing mode. To start viewing the user manual Renesas M16C/62P Group on full screen, use the button Fullscreen.
  • Downloading to your computer - You can also download the user manual Renesas M16C/62P Group to your computer and keep it in your files. However, if you do not want to take up too much of your disk space, you can always download it in the future from ManualsBase.
Renesas M16C/62P Group User manual - Online PDF
Advertisement
« Page 1 of 98 »
Advertisement
Print version

Many people prefer to read the documents not on the screen, but in the printed version. The option to print the manual has also been provided, and you can use it by clicking the link above - Print the manual. You do not have to print the entire manual Renesas M16C/62P Group but the selected pages only. paper.

Summaries

Below you will find previews of the content of the user manuals presented on the following pages to Renesas M16C/62P Group. If you want to quickly view the content of pages found on the following pages of the manual, you can use them.

Abstracts of contents
Summary of the content on the page No. 1

Reference Manual
REC10B0002-0100
M16C/62P Group
Renesas Embedded
Application Programming Interface
Reference Manual
Rev.1.00
Revision Date: Nov.1, 2007
www.renesas.com

Summary of the content on the page No. 2

Renesas Embedded Application Programming Interface Reference Manual 2 Rev.1.00 2007.11.1 REC10B0002-0100

Summary of the content on the page No. 3

Table of Contents Table of Contents ............................................................... 3 1. Introduction................................................................... 5 2. Driver ....................................................................... 6 2.1 Overview.................................................................. 6 2.2 Driver Features............................................................. 6 2.3 Serial Interface Driver..............................

Summary of the content on the page No. 4

__DestroyTimer .......................................................... 43 __CreateEventCounter ..................................................... 44 __EnableEventCounter..................................................... 47 __DestroyEventCounter .................................................... 48 __GetEventCounter........................................................ 49 __CreatePulseWidthModulationMode ......................................... 50 __EnablePulseWidthModulationM

Summary of the content on the page No. 5

1. Introduction The Renesas Embedded Application Programming Interface (API) is a unified API for the microcomputers made by Renesas Technology Corporation. 5 Rev.1.00 2007.11.1 REC10B0002-0100

Summary of the content on the page No. 6

2. Driver 2.1 Overview The library described herein provides a peripheral facility control program (peripheral driver) for microcomputers. Use of the Renesas API permits the peripheral driver to be built into a user program. 2.2 Driver Features The library described herein has the following features available as a peripheral driver. (1) Serial I/O control feature It comprises a serial interface driver, which sets or clears the conditions of serial communication, as well as controls

Summary of the content on the page No. 7

2.3 Serial Interface Driver The serial interface driver sets serial communication, clears settings, transmit/receives data, and controls the status of serial communication. There are two kinds of serial interface driver: a single-data transmission/reception API and a multi-data transmission/reception API. 7 Rev.1.00 2007.11.1 REC10B0002-0100

Summary of the content on the page No. 8

2.4 Timer Driver The timer driver sets the timer, clears timer settings, controls timer operation, and acquires a counter value with respect to the following modes: • Timer mode • Event counter mode • Pulse width modulation mode (PWM mode) • Pulse period measurement mode • Pulse width measurement mode 2.4.1 Timer Mode In this mode, the timer counts the internally generated count source. When an underflow or an overflow interrupt occurs, it calls a preset callback function. 2.4.2

Summary of the content on the page No. 9

2.5 I/O Port Driver The I/O port driver sets the I/O port for input or output, writes data to the I/O port, and reads data from the I/O port. 9 Rev.1.00 2007.11.1 REC10B0002-0100

Summary of the content on the page No. 10

2.6 External Interrupt Driver The external interrupt driver sets external interrupts, controls external interrupts, acquires the status of external interrupt flags, and clears external interrupt flags. 10 Rev.1.00 2007.11.1 REC10B0002-0100

Summary of the content on the page No. 11

2.7 A/D Converter Driver The A/D converter driver sets the A/D converter, controls the A/D converter, clears settings of the A/D converter, acquires the A/D converter value, acquires the status of the A/D converter, and clears the status of the A/D converter. 11 Rev.1.00 2007.11.1 REC10B0002-0100

Summary of the content on the page No. 12

3. Standard Types This section describes the standard types defined in the library. For details about the set values, refer to the description of each API. Standard type Description Boolean The Boolean type represents the enum-type data that indicates whether successful (RAPI_TRUE (= 1)) or failed (RAPI_FALSE (= 0)). VoidFuncNotify The VoidFuncNotify type represents the type of the notification function to be registered. 12 Rev.1.00 2007.11.1 REC10B0002-0100

Summary of the content on the page No. 13

4. Library Reference 4.1 API List by Peripheral Facility The table below lists the Renesas Embedded APIs classified by peripheral facility. NO Facility API API operation classification Opens serial port Single-data 1 __BasicOpenSerialDriver serial I/O Closes serial port 2 __BasicCloseSerialDriver Sets serial communication 3 __BasicSetSerialFormat Receives 1 data 4 __BasicStartSerialReceiving Transmits 1 data 5 __BasicStartSerialSending Reads receive status 6 __BasicReceivingSt

Summary of the content on the page No. 14

Sets pulse width measurement 35 __CreatePulseWidthMeasurementMode mode Controls operation of pulse width 36 __EnablePulseWidthMeasurementMode measurement mode Clears setting of pulse width 37 Timer __DestroyPulseWidthMeasurementMode measurement mode Acquires measured value of pulse 38 __GetPulseWidthMeasurementMode width measurement mode Sets timer register 39 __SetTimerRegister Controls operation of timer register 40 __EnableTimerRegister Clears timer register 41 __ClearTimerR

Summary of the content on the page No. 15

4.2 Description of Each API This section describes each API and explains how to use them, showing a program example for each. The description of each API is divided into the following items. • Synopsis : Outlines the content of processing performed by the function. It also shows the syntax of the function, followed by a brief explanation of arguments. • Description : Describes the function and how to use it in detail. • Return value : Explains the returned value of the function.

Summary of the content on the page No. 16

4.2.1 Serial I/O __BasicOpenSerialDriver Synopsis Boolean __BasicOpenSerialDriver(unsigned long data) data Setup data Opens and initializes a specified serial port. Description For data, the following values can be set. RAPI_COM1 UART0 RAPI_COM2 UART1 RAPI_COM3 UART2 RAPI_COM4 SI/O3 RAPI_COM5 SI/O4 Return value If the serial port specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE is returned. Functionality S

Summary of the content on the page No. 17

__BasicCloseSerialDriver Synopsis Boolean __BasicCloseSerialDriver(unsigned long data) data Setup data Closes a specified serial port. For data, the following values can be set. Description RAPI_COM1 UART0 RAPI_COM2 UART1 RAPI_COM3 UART2 RAPI_COM4 SI/O3 RAPI_COM5 SI/O4 Return value If the serial port specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE is returned. Functionality Serial I/O Reference __Ba

Summary of the content on the page No. 18

__BasicSetSerialFormat Synopsis Boolean __BasicSetSerialFormat(unsigned long data1, unsigned char data2) data1 Setup data 1 data2 Setup data 2 Description Sets serial communication according to specified parameters. [data1] For data1, the following values can be set. To set multiple definition values at the same time, use the symbol “|” to separate each specified value. RAPI_COM1 UART0 RAPI_COM2 UART1 RAPI_COM3 UART2 RAPI_COM4 SI/O3

Summary of the content on the page No. 19

If the API is used in clock synchronous serial communication mode, do not set these values. (UART0, UART1, UART2) RAPI_PARITY_NON No parity bit RAPI_PARITY_EVEN Even parity bit RAPI_PARITY_ODD Odd parity bit For the clock polarity of serial communication, the following values can be set. If the API is used in clock asynchronous serial communication mode, do not set these values. (UART0, UART1, UART2) RAPI_DPOL_NON Polarity not invertedRAPI_DPOL_INV Polarity inverted

Summary of the content on the page No. 20

If serial communication was successfully set, RAPI_TRUE is returned; if settings failed, RAPI_FALSE is returned. Functionality Serial I/O Reference Remark If an undefined value is specified in the first argument, operation of the API cannot • be guaranteed. Program example #include ”rapi_sif_m16c_62p” Boolean func( void ) { /* Set the data of RAPI_COM1 to serial driver */ Return _BasicSetSerialFormat(RAPI_COM1 | RAPI_SM_SYNC | RAPI_CKDIR_INT | RAPI


Alternative user manuals
# User manual Category Download
1 Renesas FP-112B User manual Computer Hardware 0
2 Renesas FP-128 User manual Computer Hardware 1
3 Renesas H8/3334 Series User manual Computer Hardware 0
4 Renesas 32192 User manual Computer Hardware 4
5 Renesas H8/36024 User manual Computer Hardware 0
6 Renesas 3803L User manual Computer Hardware 0
7 Renesas EDK3687 User manual Computer Hardware 0
8 Renesas H8/3627 Series User manual Computer Hardware 0
9 Renesas 7542 User manual Computer Hardware 0
10 Renesas H8/3637 Series User manual Computer Hardware 0
11 Renesas FP-144 User manual Computer Hardware 0
12 Renesas DP-64S User manual Computer Hardware 0
13 Renesas FP-144G, FP-144H User manual Computer Hardware 1
14 Renesas FP-144F User manual Computer Hardware 0
15 Renesas H8/3007 User manual Computer Hardware 0
16 Sony MSAKIT-PC4A User manual Computer Hardware 2
17 Sony MRW62E-S1 2694866142 User manual Computer Hardware 5
18 Philips MATCH LINE 9596 User manual Computer Hardware 17
19 Sony 64GB SDHC Class 10 Memory Card Readers SF32UY User manual Computer Hardware 1
20 Philips PSC702 User manual Computer Hardware 1