Amplifier Driver; Peripheral Usage; Driver Code; General Definition - Fujitsu MB95F430 Series Application Note

F²mc-8fx family 8-bit microcontroller operational amplifier
Hide thumbs Also See for MB95F430 Series:
Table of Contents

Advertisement

5 Amplifier Driver

This is OPAMP driver description.

5.1 Peripheral Usage

The MCU pins used as below:
OPAMP_N,used as amplifier negative input;
OPAMP_P,used as amplifier positive input;
OPAMP_O,used as amplifier output;

5.2 Driver Code

5.2.1 General Definition

typedef unsigned char BOOLEAN;
typedef unsigned char INT8U;
typedef signed
char INT8S;
typedef unsigned int
typedef signed
int
typedef unsigned long INT32U;
typedef signed
long INT32S;
#define BOOL
#define BYTE
#define UBYTE
#define WORD
#define UWORD
#define LONG
#define ULONG
#define UCHAR
#define UINT
#define DWORD
#define TRUE
#define FALSE
#define BYTE_LO(w)
#define BYTE_HI(w)
Operational Amplifier Version 1.0
Chapter 5 Amplifier Driver
INT16U;
INT16S;
BOOLEAN
INT8U
INT8U
INT16U
INT16U
INT32S
INT32U
INT8U
INT16U
INT32U
1
0
((UBYTE)(w))
((UBYTE)(((UWORD)(w)>>8)&0xFF))
MCU-AN-500080-E-10- Page 11
/* Unsigned 8 bit quantity */
/* Signed
8 bit quantity */
/* Unsigned 16 bit quantity */
/* Signed
16 bit quantity */
/* Unsigned 32 bit quantity */
/* Signed
32 bit quantity */

Advertisement

Table of Contents
loading

Table of Contents