91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

發動機源代碼,里面含有案例,可以進行更改,這個代碼比其他的代碼便宜,采用的是S12x芯片

資源截圖

代碼片段和文件信息

/*******************************************************************************
Copyright?(c)?2007?Freescale?Semiconductor
Freescale?Confidential?Proprietary
\brief??????Driver?for?basic?S12XE?ADC?operation
\author?????r66193
\version????0.1
\date???????May/2008
*******************************************************************************/
#include?“mc9s12xep100.h“
#include?“comdef.h“
#include?“stdio.h“
#include?“crg.h“
#include?“xgate.h“


#pragma??DATA_SEG??SHARED_DATA
INT16U???AtdData[16];


void?InitADC(void)
{
????DDR0AD0?=?0;????????????
????DDR1AD0?=?0;??????????//?All?16?Channels?are?used
????
????ATD0CTL0?=?0x0F;??????//?B0000_1111:?multiple?channel?conversion?(MULT=1)?wraparound?
??????????????????????????//????????????to?AN0?after?converting?A15
????
????ATD0CTL1?=?0xD3;??????//?B?1101_0011:
??????????????????????????//???|--|?----
??????????????????????????//???|\||???\-:?External?triggger?is?PIT?Channel1
??????????????????????????//???|?||-----:?Discharge?before?sample
??????????????????????????//???|?|------:?12bit?resoltion
??????????????????????????//???|--------:?External?trigger
?????
???
????ATD0CTL2?=?0x46;??????//?B?0100_0100?
??????????????????????????//????||?--|||-:?Compare?interrupt?interrupt?disable
??????????????????????????//????||?\|||--:?Sequence?completed?interrupt?disable
??????????????????????????//????||??||---:?External?trigger?mode?enable
??????????????????????????//????||??|----:?falling?edge?trigger?not?used?for?PIT?trigger
??????????????????????????//????||-------:?Convertion?abort?in?STOP?mode?
??????????????????????????//????|--------:?Fast?flag?clear?
????
????ATD0CTL3?=?0x80;??????//?B?1000_0000
??????????????????????????//???|-----|--
??????????????????????????//???|?\|??|\-:?Continue?in?debugger
??????????????????????????//???|??|??|--:?FIFO?mode?not?used
??????????????????????????//???|??|-----:?16?sequence?conversion
??????????????????????????//???|--------:?Result?right?justified
????
????ATD0CTL4?=?0x44;??????//?B?0100_0100
??????????????????????????//???--|------
??????????????????????????//????\|????\-:?PSR=4?ATD?clk=4M?@?40M?busclk
??????????????????????????//?????|------:?Sample?time?=?8?clk
????
????ATD0CTL5?=?0x10;??????//?B?0001_0000
??????????????????????????//????|||?----
??????????????????????????//????|||???\-:?First?channel?is?AN0
??????????????????????????//????|||-----:?Multi?channel?sample?mode
??????????????????????????//????||------:?Single?conversion?sequence?
??????????????????????????//????|-------:?Special?channel?conversion?disabled
}


/*******************************************************************************
*?\brief????ADC?single?conversion?SW?trigger
*?\param????const?unsigned?int?chan
*?\return???unsigned?int?
*/
/*????
INT16U?lle_ADC(INT8U?u8ADC_chan)
{
????ATD0CTL5_Cx?=?u8ADC_chan;???
????
????????while(!ATD0STAT0_SCF);???//?Wait?for?end?of?conversion??
????????
????ATD0STAT0_SCF?=?1;

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-06-19?17:21??飛思卡爾小型發動機EMS源代碼\
?????目錄???????????0??2018-09-26?21:04??飛思卡爾小型發動機EMS源代碼\Install?application?Map?Tool\
?????文件??????153088??2009-07-21?23:33??飛思卡爾小型發動機EMS源代碼\Install?application?Map?Tool\Example?Scooter?Map.xls
?????文件??????133632??2009-07-21?23:31??飛思卡爾小型發動機EMS源代碼\Install?application?Map?Tool\Map?Tool.xls
?????目錄???????????0??2018-09-26?21:04??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\
?????目錄???????????0??2018-09-26?21:02??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\
?????目錄???????????0??2018-09-26?20:57??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\bin\
?????文件?????????105??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\bin\P&E_Multilink_CyclonePro.map
?????文件??????503398??2018-09-26?21:02??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\bin\SofTec_HCS12.abs
?????文件???????16608??2018-09-26?21:02??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\bin\SofTec_HCS12.abs.glo
?????文件???????16418??2018-09-26?21:02??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\bin\SofTec_HCS12.abs.s19
?????文件??????278699??2018-09-26?21:02??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\bin\SofTec_HCS12.map
?????目錄???????????0??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\
?????文件????????1514??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\P&E_Multilink_CyclonePro_Erase_unsecure_hcs12xe.cmd
?????文件??????????59??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\P&E_Multilink_CyclonePro_Postload.cmd
?????文件??????????60??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\P&E_Multilink_CyclonePro_Preload.cmd
?????文件??????????60??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\P&E_Multilink_CyclonePro_Reset.cmd
?????文件?????????229??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\P&E_Multilink_CyclonePro_Startup.cmd
?????文件??????????77??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\P&E_Multilink_CyclonePro_Vppoff.cmd
?????文件??????????78??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\P&E_Multilink_CyclonePro_Vppon.cmd
?????文件??????????59??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\SofTec_HCS12_Postload.cmd
?????文件??????????60??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\SofTec_HCS12_Preload.cmd
?????文件??????????60??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\SofTec_HCS12_Reset.cmd
?????文件?????????229??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\SofTec_HCS12_Startup.cmd
?????文件??????????77??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\SofTec_HCS12_Vppoff.cmd
?????文件??????????78??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\cmd\SofTec_HCS12_Vppon.cmd
?????文件????????1943??2008-05-14?11:01??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\C_Layout.hwl
?????文件?????????161??2004-06-15?12:43??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\Default.mem
?????文件??????????46??2008-05-20?00:52??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\dump.s
?????文件????????1012??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\P&E_Multilink_CyclonePro.ini
?????目錄???????????0??2008-05-04?11:24??飛思卡爾小型發動機EMS源代碼\Install?Crankshaft?Simulation?Software\s12xe_12t24t\prm\
............此處省略463個文件信息

評論

共有 條評論