Home

User Manual, Guide Book, Application Notes and Some

image

Contents

1. Internal bus Gs J Gx GS GSO Tothe external pin control circuit Disable OPAMP_O analog output via an externa pin Toanextema pn From an extema pin From an externa pin To the interna A D converter Figure 1 Block Diagram of Operational Amplifier 2 2 Pins of Operational Amplifier The OPAMP uses the OPAMP P pin and the OPAMP_N pin as the analog input pins of the operational amplifier and uses the OPAMP_O pin as the analog output pin of the operational amplifier When GS 5 is set to 1B and GS 4 0 are set 00000B the OPAMP will work as a standalone open loop operational amplifier When GS 5 is set to 0B the OPAMP will work as a non inverting closed loop operational amplifier It provides six different closed loop gain settings through the software MCU AN 500080 E 10 Page 6 Operational Amplifier Version 1 0 Chapter 2 Amplifier Overview FUJITSU Pull up Standby Settings Required GPIO input disabled GPIO output disabled analog input enabled GPIO CMOS input OPAMP positive CMOS output analog input Analog input OPCR OPID z 0 Enables analog input GPIO CMOS input OPCR OPID 0 GPIO input disabled negative CMOS output Unavailable Available GPIO output disabled w Enables analog input a malog input Analog input analog input enabled GPIO CMOS input 2 M P62 OPAMP_O OPAMP analog output CMOS output Analog output
2. Amplifier gain is 20V V void main void __DI Set il 3 InitlrqLevels WDTH 0 5 WDTL 20x96 WATR 0xEE SYCC 0xF0 Main Clock SYCC2 0xF4 Main Clock SYSC 0xBC BUZZ P01 SYSC2 20x02 PPG P73 Disable I2C while STBC MRDY El AmpOpenLoop AmpCloseLoop VECTORS C MCU AN 500080 E 10 Page 16 Operational Amplifier Version 1 0 Chapter 9 Sample Code FUJITSU include mb95430 h void InitlrqLevels void LRx IRQs defined by ILRx ILRO OxFF RQO external interrupt chO ch4 RQ1 external interrupt chi ch5 RQ2 external interrupt ch6 IRQ3 external interrupt ch3 ch7 ILR1 OxFF 1804 UART SIO cho RQ5 8 16 bit timer chO lower 1806 8 16 bit timer chO upper RQ7 Output Compare chO ILR2 OxFF RQ8 Output Compare chi IRQ9 none RQ10 Voltage Compare cho RQ11 Voltage Compare chi ILR3 OxFF IRQ12 Voltage Compare ch2 RQ13 Voltage Compare ch3 IRQ14 16 bit free run timer RQ15 16 bit PPG0 ILR4 OxFF RQ16 I2C RQ17 none RQ18 10 bit A D converter RQ19 Timebase timer ILR5 OxFF RQ20 Watch timer RQ21 none RQ22 none RQ23 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 Vector definition Use following statements to
3. GPIO input enabled GPIO output disabled analog output disabled OPCR OPOD 0 Enables analog output 2 3 OPAMP Control Register The OPAMP control register OPCR is used to turn on and off the OPAMP te enable and disable OPAMP analog output and te enable and disable OPAMP analog input The register can also be used to set the OPAMP to operate as a standalone open loop operational amplifier or a non inverting closed loop operational amplifier with six different closed loop gain settings that can be selected by the software Address bit7 bit6 bit5 bit4 bit3 bit2 biti bitO Initial value REsz nest Reso OPOD 000000118 RO WX RW R W R W ROWX R W RW R W PD OPAMP power down confrol bit 0 Turns onthe OPAMP 1 Tunrs off the OPAMP OPAMP analog output disable bit 0 Enables OPAMP analog output 1 Disables OPAMP analog output OPID OPAMP analog input disable bit 0 Enables OPAMP analog input Disables OPAMP analog input RES2 RES1 RESO OPAMP loop gain setting bits The OPAMP spersies witha 60 VN closed oop gan o 1 The OPAMP operates witha SO V V closed loop gain 1 0 The OPAMP operates witha 40 V V closed loop gain Tre OPAMP operates with a 30V closedioop gain o 0 The OPAMP operates witha 20 V V closed loop gain Tre OPAMP operates with a closed loop gain 1 1 0 The OPAMP o
4. 0xBC BUZZ P01 02 BEG EMS 5 while STBC MRDY FI AmpOpenLoop AmpCloseLoop MCU AN 500080 E 10 Page 13 FUJITSU Operational Amplifier Version 1 0 Chapter 7 More Information 7 More Information For more information on FUJITSU MB95200 products please visit following website English Version http www fujitsu com cn fmc en services mcu mb95430 Simplified Chinese Version http www fujitsu com cn fmc services mcu mb95430 MCU AN 500080 E 10 Page 14 Operational Amplifier Version 1 0 Chapter 8 Appendix FUJITSU 8 Appendix Figure 1 Block Diagram of Operational 6 Figure 2 OPAMP Control 7 Figure 3 Settings for Activating Operational Amplifier 9 Figure 4 Hardware design MUR e pne tuna 13 MCU AN 500080 E 10 Page 15 Operational Amplifier Version 1 0 FUJITSU Chapter 9 Sample Code 9 Sample Code main c include mb95430 h include TypeDef h Amplifier Setting me ae JU OO Sa ena V void AmpOpenLoop DDR6_P60 0 DDR6_P61 0 DDR6_P62 1 OPCR 0x60 Amplifier gain is R3 R1 void AmpCloseLoop DDR6_P60 0 DDR6_P61 0 DDR6_P62 1 OPCR 0x40
5. procedure Below is an example of procedure for setting the operational amplifier Initial settings 1 Set both OPCR OPID and OPCR OPOD to O to enable both OPAMP analog input and OPAMP analog output 2 Set the feedback resistor and RES 2 0 in OPCR 3 Set OPCR PD to 0 to turn on the operational amplifier 4 Wait until the operation amplifier becomes stable 5 Start A D conversion if necessary MCU AN 500080 E 10 Page 10 Operational Amplifier Version 1 0 Chapter 5 Amplifier Driver FUJITSU 5 Amplifier Driver Thisis OPAMP driver deseription This chapter introduces OPAMP driver 5 1 Peripheral Usage The MCU pins are used as below OPAMP_N used is used as amplifier negative input OPAMP P used is used as amplifier positive input OPAMP O used is used as amplifier output 5 2 Driver Code 5 2 1 General Definition typedef unsigned char typedef unsigned char typedef signed char typedef unsigned int typedef signed int typedef unsigned long typedef signed long 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 BOOLEAN INT8U Unsigned 8 bit quantity INT8S Signed 8 bit quantity INT16U Unsigned 16 bit quantity INT16S Signed 16 bit quantity INT32U Unsigned 32 bit quantity INT32S Signed 32 bit qu
6. Fujitsu Microelectronics Shanghai Co Ltd MCU AN 500080 E 10 Application Note F2MC 8FX FAMILY 8 BIT MICROCONTROLLER MB95F430 SERIES Operational Amplifier APPLICATION NOTE FUJITSU FUJITSU Operational Amplifier Version 1 0 Revision History Revision History Date Author Change of Records 2010 03 22 V1 0 First draft This manual contains 18 pages The products described in this manual and the specifications thereof may be changed without prior notice To obtain up to date information and or specifications contact your Fujitsu sales representative or Fujitsu authorized dealer Fujitsu will not be liable for infringement of copyright industrial property right or other rights of a third party caused by the use of information or drawings described in this manual The contents of this manual may not be transferred or copied without the express permission of Fujitsu The products contained in this manual are not intended for use with equipment which require extremely high reliability such as aerospace equipments undersea repeaters nuclear control systems or medical equipments for life support Some of the products described in this manual may be strategic materials or special technology as defined by the Foreign Exchange and Foreign Trade Control Law In such cases the products or portions thereof must not be exported without permission as defined under the law 2010 Fujitsu Microelectronics Shanghai Co L
7. antity BOOLEAN INT8U INT8U INT16U INT16U INT32S INT32U INT8U INT16U INT32U 1 0 UBYTE w UBYTE UWORD w gt gt 8 amp 0xFF MCU AN 500080 E 10 Page 11 Operational Amplifier Version 1 0 FUJITSU Chapter 5 Amplifier Driver 5 2 2 Amplifier Routine void AmpOpenLoop Return none Parameters none Description open loop setting Example AmpOpenLoop void AmpOpenLoop DDR6 P60 0 DDR6 61 0 DDR6 P62 1 OPCR 0x60 Amplifier gain is R3 R1 void AmpCloseLoop Return none Parameters none Description close loop setting Example AmpCloseLoop void AmpCloseLoop DDR6 P60 0 DDR6 P61 0 DDR6 P62 1 OPCR 0x40 Amplifier gain is 20V V MCU AN 500080 E 10 Page 12 T co Operational Amplifier Version 1 0 Chapter 6 Typical Application FUJITSU 6 Typical Application This chapter introduces the ty ical application 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 are used in open loop amplifier input 2 Figure 4 Hardware d Design 6 2 Sample Code void main void Return none Parameters none Description system main programm Example main void main void DT _ sem InitIrgLevels WDTH 0xA5 Disable WTG WDTL 0x96 WATR 0 SYCC 0xF0 Main Clock SYCC2 0xF4 Main Clock SYSC
8. define vectors MCU AN 500080 E 10 Page 17 co FUJITSU All resource related vectors are predefined Remaining software interrupts can be added hereas well pragma intvect DefaultIRQHandler 0 pragma intvect DefaultIRQHandler 1 pragma intvect DefaultIRQHandler 2 pragma intvect DefaultIRQHandler 3 pragma intvect DefaultIRQHandler 4 pragma intvect DefaultIRQHandler 5 pragma intvect DefaultIRQHandler 6 pragma intvect DefaultIRQHandler 7 pragma intvect DefaultIRQHandler 8 pragma intvect DefaultIRQHandler 9 intvect DefaultIRQHandler 10 pragma intvect DefaultIRQHandler 11 pragma intvect DefaultIRQHandler 12 intvect DefaultIRQHandler 13 pragma intvect DefaultIRQHandler 14 pragma intvect DefaultIRQHandler 15 pragma intvect DefaultIRQHandler 16 pragma intvect DefaultIRQHandler 17 pragma intvect DefaultIRQHandler 18 intvect DefaultIRQHandler 19 pragma intvect DefaultIRQHandler 20 pragma intvect DefaultIRQHandler 21 pragma intvect DefaultIRQHandler 22 pragma intvect DefaultIRQHandler 23 DefaultIRQHandler Operational Amplifier Version 1 0 Chapter 9 Sample Code external interrupt ch4 external interrupt chi ch5 external interrupt ch2 ch6 external interrupt ch3 ch7 UART SIO ch0 8 16 bit timer chO lower 8 16 bit timer chO upper Output Compare Output Compare ch1 none Voltage Compare Voltage Compare ch1 Voltage Co
9. erates with a 50 V V closed loop gain The OPAMP operates with a 40 V V closed loop gain The OPAMP operates with a 30 V V closed loop gain The OPAMP operates with a 20 V V closed loop gain The OPAMP operates with a 10 V V closed loop gain oar o The OPAMP operates in open loop mode Notes While the OPAMP is operating it is allowed to modify the settings of RES2 RES1 and RESO however do not use the output signal of the OPAMP or execute A D conversion until OPAMP output becomes stable t is recommended to turn off the operational amplifier before modifying the settings of RES2 RES1 and RESO MCU AN 500080 E 10 Page 8 Operational Amplifier Version 1 0 Chapter 3 Operations of Operational Amplifier FUJITSU 3 Operations of Operational Amplifier The operational amplifier can be activated by setting the PD bit in the OPCR register using the software It can operate in closed loop mode or open loop mode depending on the settings of the RES2 RES1 and RESO bits in the OPCR register Activating Operational Amplifier by Software The settings shown in Figure 24 5 1 are required for activating the operational amplifier using the software bit7 bit6 bit5 bit4 bit3 bit2 bit1 bito Resz REST Reso OPOD PD x 5 5 0 0 0 O Bit be used Unused bit 0 Set 0 Figure 3 Settings for Activating Operational Amplifier After the bits in the OPCR register are set as sh
10. mpare ch2 Voltage Compare ch3 16 bit free run timer 16 bit PPGO 2C cho none 10 bit A D converter Timebase timer Watch timer none none Flash Memory This function is a placeholder for all vector definitions Either use your own placeholder or add necessary code here the real used resource interrupt handlers should be defined in the main c interrupt void DefaultIRQHandler void DI while 1 nop halt system disable interrupts MCU AN 500080 E 10 Page 18
11. own above the operational amplifier will not start operating until becomes stable Operations of OPAMP in Closed Loop Mode Before being activated the operational amplifier can be set to operate in closed loop mode in advance by setting RES 2 0 in the OPCR register to 000B 001B 010B 011B 100B or 101B Six different closed loop gains are available in closed loop mode Select a desired closed loop gain by setting RES 2 0 in OPCR to the value corresponding to that gain Notes n closed loop mode connecting the P61 OPAMP_N pin to the ground is recommended While the OPAMP is operating modifying the settings of RES2 RES1 and RESO is allowed however do not use the output signal of the OPAMP or execute A D conversion until OPAMP output becomes stable tis recommended to turn off the operational amplifier before modifying the settings of RES2 RES1 and RESO Operations of OPAMP in Open Loop Mode Before being activated the operational amplifier can be set to operate in open loop mode in advance by setting RES 2 0 in the OPCR register to 110B Note While the OPAMP is operating switching it from closed loop mode to open loop mode and vice versa is allowed however do not use the output signal of the OPAMP or execute A D conversion until OPAMP output becomes stable MCU AN 500080 E 10 Page 9 FUTITSU Operational Amplifier Version 1 0 J Chapter 4 Amplifier setting procedure 4 Amplifier setting
12. perates in open loop mode 1 1 Setting prohibited Readable writable The read value is the same as the write value The read value is 0 Writing a value to it has no effect on operation Undefined bit Initial value Figure 2 OPAMP Control r Register MCU AN 500080 E 10 Page 7 co Operational Amplifier V 1 0 FUJITSU Chapter 2 Amplifier Overview Functions of Bits in OPAMP Control Register OPCR Undefined bit The read value is always 0 Writing a value to it has no effect on operation bit6 RES2 RESI RESO OPAMP loop gain bit4 setting bits Undefined bit The read value is always 0 Writing a value to it has no effect on operation OPID This bit enables and disables OPAMP analog input OPAMP analog input Writing 0 OPAMP analog input disable bit Writing 1 disables OPAMP analog input OPOD This bit enables and disables OPAMP analog output OPAMP analog output Writing 0 enables OPAMP analog output disable bit Writing 1 disables OPAMP analog output PD This bit turns on and off the OPAMP OPAMP power down Writing O turns on the OPAMP control bit Writing 1 turns off the OPAMP These bits select an OPAMP loop gain in closed loop mode from six options and can set the OPAMP to operate in open loop mode OPAMP Operating Mode Settings nese mes mem OPANPLoopGamnSetings O O The OPAMP operates with a 60 V V closed loop gain The OPAMP op
13. td MCU AN 500080 E 10 Page 2 Operational Amplifier Version 1 0 FUJITSU Table of Contents Table of Contents Revision HIStOry RN D anda 2 Table of Contents AN AN ne 3 deseo ETE 4 2 Amplifier OverVISW ctc 5 2 1 Block Diagram of Operational 6 2 2 Pins of Operational 6 2 OPAMP Control Register Keamanan heel s E anna 7 Operations of Operational 9 4 Amplifier setting procedure a 10 5 Amplifier Driver qe ELE 11 5 1 Pernpheral Usage naa aan RE ayapa 11 5 2 Driver COUR WA E tete Ea 11 5 2 1 General Definition Lm 11 5 2 2 Amplifier Routine E 12 6 Typical Application ju aa 13 6 1 HW GSI pec 13 6 2 Sample Code aa maan Alika 13 7 More Information ea Bana 14 BA MD 15 9 Sample uu 16 MCU AN 500080 E 10 Page 3 FUJITSU Operational Amplifier Version 1 0 Chapter 1 Introduction 1 Introduction This application note introduces how to use the amplifier function on MB95F430 series Chapter 2 is an overview of operational amplifier Chap
14. ter 3 introduces the operations of operational amplifier Chapter 4 introduces the setting procedure of operational amplifier Chapter 5 introduces amplifier drivers Chapter 6 introduces the amplifier application demo MCU AN 500080 E 10 Page 4 Operational Amplifier Version 1 0 Chapter 2 Amplifier Overview FUJITSU 2 Amplifier Overview The operational amplifier can be used to sense the ground current and support front end analog signal conditioning prior to A D conversion It can operate in either closed loop mode or standalone open loop mode Closed Loop Mode The operational amplifier can be configured as a non inverting closed loop operational amplifier It has six closed loop gain options for ground current sensing which can be selected by software according to different sense voltage values Gan E Standalone Open Loop Mode In this mode the operational amplifier input pins are connected to external signals without any output feedback The standalone open loop mode is designed for users that can choose more flexible gain using external resistors MCU AN 500080 E 10 Page 5 Operational Amplifier Version 1 0 FUJITSU Chapter 2 Amplifier Overview 2 1 Block Diagram of Operational Amplifier the external pin control circuit When OPAMP_P and OPAMP_N analog input is enabled OPID 0 gt the corresponding GPIO input and output will be disabled OPAMP control RES2 nesi RESO

Download Pdf Manuals

image

Related Search

Related Contents

rapport d`étape - Jeux dangereux  ATT 2000 Manual - Synectix adding value to your communications  聞 BS-45L (MG)  User`s Manual  Severin EK 3134  Pour faire une place aux jeunes    

Copyright © All rights reserved.
Failed to retrieve file