添加各种显示

This commit is contained in:
ecol 2020-05-20 16:28:37 +08:00
parent 13730a4152
commit e6af1a769a
7 changed files with 39 additions and 2891 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<WORKSPACE>
<FRAME activewindow="0">
<PLACEMENT>2c0000000200000003000000ffffffffffffffffffffffffffffffff440000000d00000060060000ff030000</PLACEMENT>
<PLACEMENT>2c00000002000000030000000083ffff0083ffffffffffffffffffff440000000d00000060060000ff030000</PLACEMENT>
<WINDOW type="default" module="ISIS"/>
</FRAME>
<MODULE name="VSMDEBUG">
@ -35,7 +35,7 @@
<POPUP w="610" x="205" flags="00000000" y="259" h="472" pid="0" iid="15">
<PROPERTIES/>
</POPUP>
<POPUP w="695" x="300" flags="00008001" y="371" h="459" pid="0" iid="14">
<POPUP w="695" x="405" flags="00000000" y="266" h="459" pid="0" iid="14">
<PROPERTIES/>
</POPUP>
<POPUP w="450" x="245" flags="00000022" y="299" h="250" pid="0" iid="16">
@ -344,7 +344,7 @@
<ITEM name="TopLineAddress">E000E000</ITEM>
</PROPERTIES>
</POPUP>
<POPUP w="600" x="865" flags="0000002b" y="630" h="400" pid="100" iid="1">
<POPUP w="600" x="922" flags="0000002a" y="189" h="400" pid="100" iid="1">
<PROPERTIES>
<ITEM name="CaseSensitive">No</ITEM>
<ITEM name="DISPADDRS">Yes</ITEM>
@ -355,7 +355,7 @@
<ITEM name="nBreakpoints">0</ITEM>
</PROPERTIES>
</POPUP>
<POPUP w="300" x="885" flags="0000000b" y="730" h="300" pid="101" iid="1">
<POPUP w="300" x="885" flags="0000000a" y="730" h="300" pid="101" iid="1">
<PROPERTIES>
<ITEM name="Address Column Width">93</ITEM>
<ITEM name="AutoResize">No</ITEM>
@ -378,7 +378,7 @@
<POPUP w="194" x="925" flags="00000008" y="979" h="281" pid="191" iid="1">
<PROPERTIES/>
</POPUP>
<POPUP w="450" x="424" flags="00000022" y="488" h="250" pid="0" iid="22">
<POPUP w="450" x="298" flags="00008023" y="465" h="250" pid="0" iid="22">
<PROPERTIES>
<ITEM name="AutoEcho">0</ITEM>
<ITEM name="HexMode">0</ITEM>

File diff suppressed because one or more lines are too long

View File

@ -44,9 +44,14 @@ int main(void)
printf("?--查看说明\r\n");
while (1)
{
int ADC_Value = ADC_ConvertedValue;
int Voltage = ADC_Value*3.3/0x0fff*100;
int Pos = Voltage/3.3;
delay(100000);
TIM_SetCompare2(TIM3,ADC_ConvertedValue);
printf("\r\n The current AD value = %d \r\n",ADC_ConvertedValue);
TIM_SetCompare2(TIM3,ADC_Value);
printf("\r\n ADC_Value: %d",ADC_Value);
printf("\r\n Voltage: %d.%d%dV",Voltage/100,(Voltage%100)/10,Voltage%10);
printf("\r\n POS: %d%d%c",(Pos%100)/10,Pos%10,'%');
}
}