Typical Application; Hw Design; Sample Code - 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

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.

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();
}
Operational Amplifier Version 1.0
Chapter 6 Typical Application
Figure 4 Hardware Design
MCU-AN-500080-E-10- Page 13

Advertisement

Table of Contents
loading

Table of Contents