beautypg.com

Renesas RJJ10J1643-0101 User Manual

Page 196

background image

Rev.1.01 2007.02.16
RJJ10J1643-0101

194

Selectable only when sweep mode or repeat sweep mode 0 is used.

RAPI_AN4_GROUP Uses

AN4-AN7

pins group for the analog input pin.

Selectable only when sweep mode or repeat sweep mode 0 is used.

RAPI_AN8_GROUP Uses

AN8-AN11

pins group for the analog input pin.

Selectable only when sweep mode or repeat sweep mode 0 is used.

RAPI_AN12_GROUP

Uses AN12-AN15 pins group for the analog input pin.

Selectable only when sweep mode or repeat sweep mode 0 is used.

RAPI_AD_ON

Sets the A/D converter to start operating.

RAPI_AD_OFF

Sets the A/D converter to stop operating.

[data2]

(M16C)

The set value differs with the A/D conversion mode used.

One-shot mode

Specify 1.

Repeat mode

Single sweep mode

Specify 2, 4, 6, or 8.

Repeat sweep mode 0

Simultaneous sampling mode

Delayed trigger mode 0

Delayed trigger mode 1

Repeat sweep mode 1

Specify 1, 2, 3, or 4.

(R8C)

Specify 1.

(H8/300H)

One-shot mode

Specify 1.

Repeat mode

Single sweep mode

Specify 1, 2, 3, or 4.

Repeat sweep mode 0

Return value

If A/D converter was successfully controlled, RAPI_TRUE is returned; if failed,
RAPI_FALSE is returned.

Functionality

A/D

converter

Reference

__CreateADC

,

__DestroyADC

,

__GetADC

,

__GetADCAll

Remark

If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.

The specifiable analog input pins differ with each CPU used.

Program example

#include "rapi_ad_r8c_13.h"