Fujitsu MB95F430 manual ILRx

Page 17
/* ILRx

 

 

 

Operational Amplifier Version 1.0

 

 

 

Chapter 9 Sample Code

/* ILRx

 

IRQs defined by ILRx */

ILR0 = 0xFF;

//

IRQ0:

external interrupt ch0 ch4

 

//

IRQ1:

external interrupt ch1 ch5

 

//

IRQ2:

external interrupt ch2 ch6

 

//

IRQ3:

external interrupt ch3 ch7

ILR1 = 0xFF;

//

IRQ4:

UART/SIO ch0

 

//

IRQ5:

8/16-bit timer ch0 (lower)

 

//

IRQ6:

8/16-bit timer ch0 (upper)

 

//

IRQ7:

Output Compare ch0

ILR2 = 0xFF;

//

IRQ8:

Output Compare ch1

 

//

IRQ9:

none

 

// IRQ10: Voltage Compare ch0

 

// IRQ11: Voltage Compare ch1

ILR3 = 0xFF;

//

IRQ12: Voltage Compare ch2

 

// IRQ13: Voltage Compare ch3

 

// IRQ14: 16-bit free run timer

 

//

IRQ15: 16-bit PPG0

ILR4 = 0xFF;

//

IRQ16: I2C ch0

 

//

IRQ17: none

 

//

IRQ18: 10-bit A/D-converter

 

//

IRQ19: Timebase timer

ILR5 = 0xFF;

//

IRQ20: Watch timer

 

//

IRQ21: none

 

//

IRQ22: none

}

//

IRQ23: Flash Memory

 

 

 

/*---------------------------------------------------------------------------

Prototypes

Add your own prototypes here. Each vector definition needs is proto- type. Either do it here or include a header file containing them.

-----------------------------------------------------------------------------*/

__interrupt void DefaultIRQHandler(void);

/*---------------------------------------------------------------------------

Vector definiton

Use following statements to define vectors.

All resource related vectors are predefined.

Remaining software interrupts can be added hereas well.

-----------------------------------------------------------------------------

 

*/

#pragma intvect DefaultIRQHandler 0

//

IRQ0:

external interrupt ch0 ch4

#pragma intvect DefaultIRQHandler 1

//

IRQ1:

external interrupt ch1 ch5

#pragma intvect DefaultIRQHandler 2

//

IRQ2:

external interrupt ch2 ch6

#pragma intvect DefaultIRQHandler 3

//

IRQ3:

external interrupt ch3 ch7

#pragma intvect DefaultIRQHandler 4

//

IRQ4:

UART/SIO ch0

#pragma intvect DefaultIRQHandler 5

//

IRQ5:

8/16-bit timer ch0 (lower)

MCU-AN-500080-E-10- Page 17

Image 17
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- PageMCU-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.1 Peripheral Usage 5 Amplifier Driver5.2 Driver Code 5.2.1 General Definition5.2.2Amplifier Routine void AmpOpenLoop 6.2 Sample Code 6 Typical Application6.1 HW Design 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