《》2012389(),、、、,、、、、、、、,、。,、,[1]。,、。STM32。、GSM,、,,,、GSM。1,,、、。:(1)STM32F103VET6STC12-C5A60S2STM32F103VET6,STC12C5A60S2。STM32F103VET6ARMCortexM332bitRISC,72MHz,(64KB20KBSRAM),I/O2APB[2]。STC12C5A60S2、、8051,8051。MAX810、2PWM、810A/D。(2)LD3320LD3320。,A/D、D/ASTM321,1,1,2(1.,310018;2.,310018):STM32。GSM,、,。,,。:;STM32;:TP36:A:0258-7998(2012)09-0138-03SmarthomecontrolsystembasedonSTM32ChenZhiyuan1,ZhuYecheng1,ZhouZhuoquan1,ZhuLei2(1.CollegeofInformationEngineering,HangzhouDianziUniversity,Hangzhou310018,China;2.CollageofLifeInformationScience&InstrumentEngineering,HangzhouDianziUniversity,Hangzhou310018,China)Abstract:ThispaperdesignedacontrolsystemwhichtooktheSTM32microcontrollerascore.BasedonspeechrecognitiontechnologyandGSMcommunicationtechnology,thissystemrealizedthecommunicationamongtheconsoles,thehandhelddevicesandtheentranceguardlocks,andcouldaccomplishtheremotecontrolofindoorhouseholdappliances.Theexperimentalresultsshowthatthesystemisstableandhasawideapplicationprospect.Keywords:smarthome;STM32microcontroller;wirelesscommunicationComputerTechnologyandItsApplications138《》20123891SD/nRF24L01/SPISPI2/nRF24L01/3、、。、,、。(3)GSMTC35TC35900MHz、1800MHzGSM,,。(4)nRF24L01nRF24L01,2.4GHz~2.5GHzISM。、、,ShockBurst,。(5)3.2TFT,8bit、16bit,I/O,ADS7843,SD(SPI),SPIDATAFlash,。2、、3。1。,。,,;;,。。(1),STC12C5A60S2EEPROM,TFT。,。(2),STM32F103VET6SPI。SPInRF24L01。,,。(3)TFT,STM32F103VET6。(4)GSM,STC12C5A60S2,。(5)TFT。STC12C5A60S2。3STM32,C。、3,、、、、GSM。2。3。4。ComputerTechnologyandItsApplications139《》2012389。,LD332X[3],,:(1),、、、FIFO[4]。(2)LD3320,(),()。(1),,,256(00H~FFH)。LD332050。(3),。LD3320(:LD_ASR_RUN-INGLD_ASR_FOUNDOK)。ADC,ADC,00H~7FH。40H~6FH。,;。(4),。,BA;C5,。3.2nRF24L01ShockBurstTM。:,。,。:nRF24L01;TX_ADDRTX_PIDSPInRF24L01,TX_PLDCSN,TX_ADDR;CE10μs,130μs;,nRF24L01,。,,TX_DS,TX_PID;,[5]。:nRF24L01,130μs。,,。3.3GSMTC35AT。ATTC35。Block、PDUText。Block。PDUBlock,Text,PDU[6]。STM32。STM32STC12C5A60S2,、3,;、、、、。,。[1],,,.STM32[J].,2011,30(8):98-101.[2]STM32F103x8/B[EB/OL].(2009-04)[2012-04].[3]ICRoute.LD332X[EB/OL].[2010-10-13].[4],,.STM32[J].,2011,11(2):42-45.[5],,,.nRF24L01[J].,2007(8):42-44.[6],,,.TC35[J].,2003,30(3):36-38.(:2012-06-06):,,1990,,:。,,1988,,:。,,1990,,:。ComputerTechnologyandItsApplications140