資源簡介
板上的8 個按鍵分別分別代表數(shù)字1-8,每按下一個按鍵將結(jié)果通過串口發(fā)
送到PC 機(jī)上顯示;
使用兩個定時器模塊,分別定時為1ms 和100ms 產(chǎn)生中斷,使用它們分別
產(chǎn)生1s 的定時時間,將時間分別顯示到數(shù)碼管上;
外接PS/2 小鍵盤,將按鍵的值通過串口顯示到PC 機(jī)上

代碼片段和文件信息
//*
//*********************************************************************************************************
//*
//*?????????????????????????????????????????????????LOGO
//*
//*
//*?文?件?名?:?stm3210x_vector.c
//*
//*?文件描述?:?STM32系統(tǒng)向量表
//*
//*?作????者?:?
//*?版????本?:?
//*?編?譯?器?:?IAR?EWARM?5.20
//*********************************************************************************************************
//*
#include?“stm32f10x_lib.h“
#include?“stm32f10x_it.h“
typedef?void(?*intfunc?)(?void?);
typedef?union?{?intfunc?__fun;?void?*?__ptr;?}?intvec_elem;
#pragma?language=extended
#pragma?segment=“CSTACK“
void?__iar_program_start(?void?);
#pragma?location?=?“.intvec“
//?STM32F10x向量表
const?intvec_elem?__vector_table[]?=
{
??{?.__ptr?=?__sfe(?“CSTACK“?)?}???????????//?00?堆棧
??__iar_program_start??????????????????????//?01?復(fù)位
??NMIException?????????????????????????????//?02
??HardFaultException???????????????????????//?03?
??MemManageException???????????????????????//?04
??BusFaultException????????????????????????//?05
??UsageFaultException??????????????????????//?06
??0?0?0?0???????????????????????????????//?07?08?09?10保留
??SVCHandler???????????????????????????????//?11
??DebugMonitor?????????????????????????????//?12
??0????????????????????????????????????????//?13?保留
??OS_CPU_PendSVHandler?????????????????????//?14?PendSV?用于系統(tǒng)調(diào)度
??OS_CPU_SysTickHandler????????????????????//?15?系統(tǒng)Tick
??WWDG_IRQHandler??????????????????????????//?16
??PVD_IRQHandler???????????????????????????//?17
??TAMPER_IRQHandler????????????????????????//?18
??RTC_IRQHandler???????????????????????????//?19
??FLASH_IRQHandler?????????????????????????//?20
??RCC_IRQHandler???????????????????????????//?21
??EXTI0_IRQHandler?????????????????????????//?22
??EXTI1_IRQHandler?????????????????????????//?23
??EXTI2_IRQHandler?????????????????????????//?24
??EXTI3_IRQHandler?????????????????????????//?25
??EXTI4_IRQHandler?????????????????????????//?26
??DMA1_Channel1_IRQHandler?????????????????//?27
??DMA1_Channel2_IRQHandler?????????????????//?28
??DMA1_Channel3_IRQHandler?????????????????//?29
??DMA1_Channel4_IRQHandler?????????????????//?30
??DMA1_Channel5_IRQHandler?????????????????//?31
??DMA1_Channel6_IRQHandler?????????????????//?32
??DMA1_Channel7_IRQHandler?????????????????//?33
??ADC1_2_IRQHandler????????????????????????//?34
??USB_HP_CAN_TX_IRQHandler?????????????????//?35
??USB_LP_CAN_RX0_IRQHandler????????????????//?36
??CAN_RX1_IRQHandler???????????????????????//?37
??CAN_SCE_IRQHandler???????????????????????//?38
??EXTI9_5_IRQHandler???????????????????????//?39
??TIM1_BRK_IRQHandler??????????????????????//?40
??TIM1_UP_IRQHandler???????????????????????//?41
??TIM1_TRG_COM_IRQHandler??????????????????//?42
??TIM1_CC_IRQHandler???????????????????????//?43
??TIM2_IRQHandler??????????????????????????//?44
??TIM3_IRQHandler??????????????????????????//?45
??TIM
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????78468??2018-09-11?10:08??SUN1\project\Backup?of?gprs.ewp
?????文件??????????3??2018-09-11?10:10??SUN1\project\BuildLog.log
?????文件???????7020??2018-09-13?10:10??SUN1\project\Debug\Exe\gprs.bin
?????文件?????123952??2018-09-13?10:10??SUN1\project\Debug\Exe\gprs.out
?????文件??????25139??2018-09-13?10:10??SUN1\project\Debug\Obj\BoardInit.o
?????文件?????970981??2018-09-13?10:10??SUN1\project\Debug\Obj\BoardInit.pbi
?????文件??????11859??2018-09-13?10:10??SUN1\project\Debug\Obj\BoardInit.pbi.xcl
?????文件???????2693??2018-09-13?10:10??SUN1\project\Debug\Obj\cortexm3_macro.o
?????文件??????18156??2011-01-13?21:03??SUN1\project\Debug\Obj\gprs.o
?????文件??????????0??2018-09-13?10:10??SUN1\project\Debug\Obj\gprs.pbd
?????文件??????????0??2018-09-13?10:07??SUN1\project\Debug\Obj\gprs.pbd.browse
?????文件????????552??2018-09-13?10:10??SUN1\project\Debug\Obj\gprs.pbd.linf
?????文件??????????0??2018-09-13?08:39??SUN1\project\Debug\Obj\gprs.pbd.tmp
?????文件????????971??2011-01-22?23:05??SUN1\project\Debug\Obj\gprs.pbi
?????文件????4039783??2018-09-13?08:39??SUN1\project\Debug\Obj\gprs.pbw
?????文件??????19724??2011-04-20?15:39??SUN1\project\Debug\Obj\Hex.o
?????文件??????32216??2011-02-13?20:48??SUN1\project\Debug\Obj\I2C.o
?????文件???????8576??2011-04-20?15:44??SUN1\project\Debug\Obj\led.o
?????文件??????23648??2018-09-13?10:10??SUN1\project\Debug\Obj\main.o
?????文件?????957025??2018-09-13?10:10??SUN1\project\Debug\Obj\main.pbi
?????文件??????11854??2018-09-13?10:10??SUN1\project\Debug\Obj\main.pbi.xcl
?????文件??????34760??2011-01-13?21:03??SUN1\project\Debug\Obj\pdu.o
?????文件????????969??2011-01-22?23:06??SUN1\project\Debug\Obj\pdu.pbi
?????文件??????11534??2018-09-13?10:10??SUN1\project\Debug\Obj\PS2.o
?????文件?????959034??2018-09-13?10:10??SUN1\project\Debug\Obj\PS2.pbi
?????文件??????11853??2018-09-13?10:10??SUN1\project\Debug\Obj\PS2.pbi.xcl
?????文件?????109648??2018-09-13?10:10??SUN1\project\Debug\Obj\stm32f10x_it.o
?????文件?????970925??2018-09-13?10:10??SUN1\project\Debug\Obj\stm32f10x_it.pbi
?????文件??????11862??2018-09-13?10:10??SUN1\project\Debug\Obj\stm32f10x_it.pbi.xcl
?????文件???????7678??2018-09-13?10:10??SUN1\project\Debug\Obj\stm32f10x_vector.o
............此處省略95個文件信息
評論
共有 條評論