Fujitsu MB95F430 manual Typical Application, HW Design, Sample Code

Page 13
6 Typical Application

Operational Amplifier Version 1.0

Chapter 6 Typical Application

6 Typical Application

This is the typical application introduction.

6.1 HW Design

In this application, we will test the operational amplifier in the MB95F430K. The HW is designed as below. The R1, R2, R3 is used in open-loop amplifier.

Figure 4 Hardware Design

6.2 Sample Code

void main(void)

Return

: none.

Parameters

: none;

Description

: system main programm.

Example

 

: main();

void main(void)

{

__DI();

__set_il(3); InitIrqLevels();

WDTH =0xA5;//Disable WTG

WDTL =0x96;

WATR =0xEE;

SYCC =0xF0;//Main Clock SYCC2=0xF4;//Main Clock SYSC =0xBC;//BUZZ(P01)

SYSC2 =0x02;//PPG(P73),Disable I2C while(!STBC_MRDY);

__EI();

AmpOpenLoop();

AmpCloseLoop();

}

MCU-AN-500080-E-10- Page 13

Image 13
Contents MB95F430 SERIES OPERATIONAL AMPLIFIER F²MC-8FXFAMILY8-BITMICROCONTROLLER APPLICATION NOTEDate Revision HistoryAuthor Change of RecordsCONTENTS 1 Introduction 2 Amplifier Overview 2.2Pins of Operational Amplifier 2.1Block Diagram of Operational AmplifierFigure 1 Block Diagram of Operational Amplifier MCU-AN-500080-E-10- PageFigure 2 OPAMP Control Register 2.3OPAMP Control RegisterMCU-AN-500080-E-10-Page Functions of Bits in OPAMP Control Register OPCR 3 Operations of Operational Amplifier 4 Amplifier setting procedure 5.1 Peripheral Usage 5 Amplifier Driver5.2 Driver Code 5.2.1 General Definition5.2.2Amplifier Routine void AmpOpenLoop 6.1 HW Design 6 Typical Application6.2 Sample Code Simplified Chinese Version 7 More InformationBlock Diagram of Operational Amplifier 8 AppendixSettings for Activating Operational Amplifier OPAMP Control Register9 Sample Code ILRx #pragma intvect DefaultIRQHandler
Related manuals
Manual 18 pages 19.2 Kb