Fujitsu MB95F430 manual Amplifier Driver, Peripheral Usage, Driver Code, General Definition

Page 11
5 Amplifier Driver

Operational Amplifier Version 1.0

Chapter 5 Amplifier Driver

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

INT16U;

typedef signed

int

INT16S;

typedef unsigned long INT32U;

typedef signed

long

INT32S;

/* Unsigned

8 bit quantity */

/* Signed

8 bit quantity */

/* Unsigned 16 bit quantity */

/* Signed

16 bit quantity */

/* Unsigned 32 bit quantity */

/* Signed

32 bit quantity */

#define BOOL

BOOLEAN

#define BYTE

INT8U

#define UBYTE

INT8U

#define WORD

INT16U

#define UWORD

INT16U

#define LONG

INT32S

#define ULONG

INT32U

#define UCHAR

INT8U

#define UINT

INT16U

#define DWORD

INT32U

#define TRUE

1

#define FALSE

0

#define BYTE_LO(w)

((UBYTE)(w))

#define BYTE_HI(w)

((UBYTE)(((UWORD)(w)>>8)&0xFF))

MCU-AN-500080-E-10- Page 11

Image 11
Contents APPLICATION NOTE F²MC-8FXFAMILYMB95F430 SERIES OPERATIONAL AMPLIFIER 8-BITMICROCONTROLLERChange of Records Revision HistoryDate AuthorCONTENTS 1 Introduction 2 Amplifier Overview MCU-AN-500080-E-10- Page 2.1Block Diagram of Operational Amplifier2.2Pins of Operational Amplifier Figure 1 Block Diagram of Operational AmplifierMCU-AN-500080-E-10-Page 2.3OPAMP Control RegisterFigure 2 OPAMP Control Register Functions of Bits in OPAMP Control Register OPCR 3 Operations of Operational Amplifier 4 Amplifier setting procedure 5.2.1 General Definition 5 Amplifier Driver5.1 Peripheral Usage 5.2 Driver Code5.2.2Amplifier Routine void AmpOpenLoop 6.2 Sample Code 6 Typical Application6.1 HW Design Simplified Chinese Version 7 More InformationOPAMP Control Register 8 AppendixBlock Diagram of Operational Amplifier Settings for Activating Operational Amplifier9 Sample Code ILRx #pragma intvect DefaultIRQHandler
Related manuals
Manual 18 pages 19.2 Kb