; generated by Component: ARM Compiler 5.06 update 7 (build 960) Tool: ArmCC [4d365d]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\output\op_amplifydifferentially.o --asm_dir=..\List\ --list_dir=..\List\ --depend=..\output\op_amplifydifferentially.d --cpu=Cortex-M0+ --apcs=interwork -O0 --diag_suppress=9931 -I..\FWLib\SC32F1XXX_Lib\inc -I..\User\HeadFiles -I..\User -I..\Drivers -I..\Apps -I..\CMSIS -IF:\Users\SOC\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\Device\ARM\ARMCM0plus\Include -D__UVISION_VERSION=536 -DARMCM0P -DSC32f15xx --omf_browse=..\output\op_amplifydifferentially.crf ..\Apps\OP_AmplifyDifferentially.c]
                          THUMB

                          AREA ||i.OP_AmplifyDifferentially_Function||, CODE, READONLY, ALIGN=2

                          REQUIRE _printf_percent
                          REQUIRE _printf_x
                          REQUIRE _printf_longlong_hex
                  OP_AmplifyDifferentially_Function PROC
;;;11     #if defined(SC32f15xx)
;;;12     void OP_AmplifyDifferentially_Function(void)
000000  b08a              SUB      sp,sp,#0x28
;;;13     {
;;;14         uint32_t ADC_Value = 0;
000002  2400              MOVS     r4,#0
;;;15         
;;;16         RCC_APB2Cmd(ENABLE);  //OPADCAPB2ʱ
000004  2001              MOVS     r0,#1
000006  f7fffffe          BL       RCC_APB2Cmd
;;;17         RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC,ENABLE);  //ADCʱ
00000a  2101              MOVS     r1,#1
00000c  2040              MOVS     r0,#0x40
00000e  f7fffffe          BL       RCC_APB2PeriphClockCmd
;;;18     
;;;19         GPIO_InitTypeDef GPIO_InitStruct; //GPIOʼṹ
;;;20         /*ʹǰOP0˿Ϊģʽ*/
;;;21         GPIO_InitStruct.GPIO_Pin = GPIO_Pin_0|GPIO_Pin_1|GPIO_Pin_2;
000012  2107              MOVS     r1,#7
000014  4668              MOV      r0,sp
000016  8401              STRH     r1,[r0,#0x20]
;;;22         GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN_HI;
000018  2100              MOVS     r1,#0
00001a  8441              STRH     r1,[r0,#0x22]
;;;23         GPIO_Init(GPIOB, &GPIO_InitStruct);
00001c  a908              ADD      r1,sp,#0x20
00001e  4839              LDR      r0,|L1.260|
000020  f7fffffe          BL       GPIO_Init
;;;24         
;;;25         //OP0ʼ,ַŴ
;;;26         OP_InitTypeDef OP0_InitStruct;                           //OPʼṹ
;;;27         OP_StructInit(&OP0_InitStruct);
000024  a804              ADD      r0,sp,#0x10
000026  f7fffffe          BL       OP_StructInit
;;;28         
;;;29         OP0_InitStruct.OP_FDBR = OP_FDBR_OPxN;                   //˷ŷӷ
00002a  2001              MOVS     r0,#1
00002c  0780              LSLS     r0,r0,#30
00002e  9007              STR      r0,[sp,#0x1c]
;;;30         OP0_InitStruct.OP_PGAGain = OP_PGAGain_NonInvert8_Invert7;                  //7
000030  1581              ASRS     r1,r0,#22
000032  4668              MOV      r0,sp
000034  82c1              STRH     r1,[r0,#0x16]
;;;31         OP0_InitStruct.OP_InvertInput = OP_InvertInput_Res;      //˷ŷ˽ӷ
000036  210c              MOVS     r1,#0xc
000038  7501              STRB     r1,[r0,#0x14]
;;;32         OP0_InitStruct.OP_NonInvertInput= OP_NonInvertInput_VREF_Div2; //˷ͬ˽Ӳֶ˿
00003a  2120              MOVS     r1,#0x20
00003c  7541              STRB     r1,[r0,#0x15]
;;;33         OP0_InitStruct.OP_OutputPin= OP_OutputPin_Enable;        //OP0˿ʹ
00003e  2101              MOVS     r1,#1
000040  74c1              STRB     r1,[r0,#0x13]
;;;34         OP_Init(OP_0,&OP0_InitStruct);                            //OP0гʼ 
000042  a904              ADD      r1,sp,#0x10
000044  4830              LDR      r0,|L1.264|
000046  f7fffffe          BL       OP_Init
;;;35         
;;;36         OP_Cmd(OP_0,ENABLE);	//ʹOP
00004a  2101              MOVS     r1,#1
00004c  482e              LDR      r0,|L1.264|
00004e  f7fffffe          BL       OP_Cmd
;;;37         
;;;38     //    /*Vref׼Դ*/
;;;39         Vref_ReferenceVoltageConfig(VREF,Vref_InReferenceVoltage_2_048);     //û׼ԴĲοѹΪ2.048
000052  2105              MOVS     r1,#5
000054  482c              LDR      r0,|L1.264|
000056  3814              SUBS     r0,r0,#0x14
000058  f7fffffe          BL       Vref_ReferenceVoltageConfig
;;;40         Vref_DIVENCmd(VREF,ENABLE);                             //VREF/2ʹܣṩֵѹ
00005c  2101              MOVS     r1,#1
00005e  482a              LDR      r0,|L1.264|
000060  3814              SUBS     r0,r0,#0x14
000062  f7fffffe          BL       Vref_DIVENCmd
;;;41         
;;;42         /*ADCɼOP0/OP1ʼ*/
;;;43         ADC_DeInit(ADC);                                      //ADCĴλ
000066  4828              LDR      r0,|L1.264|
000068  38b0              SUBS     r0,r0,#0xb0
00006a  f7fffffe          BL       ADC_DeInit
;;;44         ADC_InitTypeDef ADC_InitStruct;
;;;45         ADC_StructInit(&ADC_InitStruct);    
00006e  4668              MOV      r0,sp
000070  f7fffffe          BL       ADC_StructInit
;;;46         ADC_InitStruct.ADC_ConvMode = ADC_ConvMode_Single;    //ADCΪתģʽ
000074  2100              MOVS     r1,#0
000076  4668              MOV      r0,sp
000078  8181              STRH     r1,[r0,#0xc]
;;;47         ADC_InitStruct.ADC_EAIN = ADC_EAIN_0;                 //ʹADCͨAIN0ɼOP0ź
00007a  2001              MOVS     r0,#1
00007c  9001              STR      r0,[sp,#4]
;;;48         ADC_InitStruct.ADC_Prescaler = ADC_Prescaler_3CLOCK;  //ADCΪ3ʱ
00007e  2000              MOVS     r0,#0
000080  9000              STR      r0,[sp,#0]
;;;49         ADC_InitStruct.ADC_VREF = ADC_RefSource_VREF;         //ADCοѹѡοѹ
000082  2010              MOVS     r0,#0x10
000084  9002              STR      r0,[sp,#8]
;;;50         ADC_Init(ADC,&ADC_InitStruct);
000086  4669              MOV      r1,sp
000088  481f              LDR      r0,|L1.264|
00008a  38b0              SUBS     r0,r0,#0xb0
00008c  f7fffffe          BL       ADC_Init
;;;51         
;;;52         ADC_SetChannel(ADC,ADC_Channel_0);  //ɼOP0ź
000090  2100              MOVS     r1,#0
000092  481d              LDR      r0,|L1.264|
000094  38b0              SUBS     r0,r0,#0xb0
000096  f7fffffe          BL       ADC_SetChannel
;;;53         
;;;54         ADC_Cmd(ADC,ENABLE);        //ʹADC
00009a  2101              MOVS     r1,#1
00009c  481a              LDR      r0,|L1.264|
00009e  38b0              SUBS     r0,r0,#0xb0
0000a0  f7fffffe          BL       ADC_Cmd
;;;55         ADC_SoftwareStartConv(ADC); //ADCת
0000a4  4818              LDR      r0,|L1.264|
0000a6  38b0              SUBS     r0,r0,#0xb0
0000a8  f7fffffe          BL       ADC_SoftwareStartConv
;;;56       
;;;57         while(1)
0000ac  e028              B        |L1.256|
                  |L1.174|
;;;58         {
;;;59             if(ADC_GetFlagStatus(ADC,ADC_Flag_ADCIF) == SET)
0000ae  2101              MOVS     r1,#1
0000b0  4815              LDR      r0,|L1.264|
0000b2  38b0              SUBS     r0,r0,#0xb0
0000b4  f7fffffe          BL       ADC_GetFlagStatus
0000b8  2801              CMP      r0,#1
0000ba  d114              BNE      |L1.230|
;;;60           {
;;;61               ADC_ClearFlag(ADC,ADC_Flag_ADCIF);
0000bc  2101              MOVS     r1,#1
0000be  4812              LDR      r0,|L1.264|
0000c0  38b0              SUBS     r0,r0,#0xb0
0000c2  f7fffffe          BL       ADC_ClearFlag
;;;62               ADC_Value = ADC_GetConversionValue(ADC);
0000c6  4810              LDR      r0,|L1.264|
0000c8  38b0              SUBS     r0,r0,#0xb0
0000ca  f7fffffe          BL       ADC_GetConversionValue
0000ce  4604              MOV      r4,r0
;;;63               printf("...................................\r\n");
0000d0  a00e              ADR      r0,|L1.268|
0000d2  f7fffffe          BL       __2printf
;;;64               printf("OP0ŴźŲֵΪ0x%x\r\n",ADC_Value);
0000d6  4621              MOV      r1,r4
0000d8  a016              ADR      r0,|L1.308|
0000da  f7fffffe          BL       __2printf
;;;65               ADC_SoftwareStartConv(ADC); //ADCת
0000de  480a              LDR      r0,|L1.264|
0000e0  38b0              SUBS     r0,r0,#0xb0
0000e2  f7fffffe          BL       ADC_SoftwareStartConv
                  |L1.230|
;;;66           }
;;;67           for(uint16_t i=0;i<65535;i++)
0000e6  2000              MOVS     r0,#0
0000e8  e007              B        |L1.250|
                  |L1.234|
;;;68           {
;;;69               for(uint16_t j=0;j<30;j++);
0000ea  2100              MOVS     r1,#0
0000ec  e001              B        |L1.242|
                  |L1.238|
0000ee  1c4a              ADDS     r2,r1,#1
0000f0  b291              UXTH     r1,r2
                  |L1.242|
0000f2  291e              CMP      r1,#0x1e
0000f4  dbfb              BLT      |L1.238|
0000f6  1c41              ADDS     r1,r0,#1              ;67
0000f8  b288              UXTH     r0,r1                 ;67
                  |L1.250|
0000fa  4915              LDR      r1,|L1.336|
0000fc  4288              CMP      r0,r1                 ;67
0000fe  dbf4              BLT      |L1.234|
                  |L1.256|
000100  e7d5              B        |L1.174|
;;;70           }
;;;71         }
;;;72     }
;;;73     
                          ENDP

000102  0000              DCW      0x0000
                  |L1.260|
                          DCD      0x40011100
                  |L1.264|
                          DCD      0x400221b0
                  |L1.268|
00010c  2e2e2e2e          DCB      "...................................\r\n",0
000110  2e2e2e2e
000114  2e2e2e2e
000118  2e2e2e2e
00011c  2e2e2e2e
000120  2e2e2e2e
000124  2e2e2e2e
000128  2e2e2e2e
00012c  2e2e2e0d
000130  0a00    
000132  00                DCB      0
000133  00                DCB      0
                  |L1.308|
000134  4f5030b7          DCB      "OP0",183,197,180,243,208,197,186,197,178,201,209,249,214
000138  c5b4f3d0
00013c  c5bac5b2
000140  c9d1f9d6
000144  b5ceaa30          DCB      181,206,170,"0x%x\r\n",0
000148  7825780d
00014c  0a00    
00014e  00                DCB      0
00014f  00                DCB      0
                  |L1.336|
                          DCD      0x0000ffff

;*** Start embedded assembler ***

#line 1 "..\\Apps\\OP_AmplifyDifferentially.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___26_OP_AmplifyDifferentially_c_34990d23____REV16|
#line 463 "..\\CMSIS\\cmsis_armcc.h"
|__asm___26_OP_AmplifyDifferentially_c_34990d23____REV16| PROC
#line 464

 rev16 r0, r0
 bx lr
	ENDP
	AREA ||.revsh_text||, CODE
	THUMB
	EXPORT |__asm___26_OP_AmplifyDifferentially_c_34990d23____REVSH|
#line 478
|__asm___26_OP_AmplifyDifferentially_c_34990d23____REVSH| PROC
#line 479

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
