freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計論文-基于arm的gps定位信息顯示器的軟件設(shè)計-資料下載頁

2024-11-14 19:56本頁面

【導(dǎo)讀】子產(chǎn)品設(shè)計領(lǐng)域最為熱門的技術(shù)之一。在消費電子、網(wǎng)絡(luò)通信、工業(yè)控制等諸多。ARM處理器是目前公認(rèn)的領(lǐng)先的32位嵌入式RSIC微處。理器,已成為許多行業(yè)嵌入式解決方案的RISC標(biāo)準(zhǔn)。ARM技術(shù)以低功耗,低成。本、體積小等諸多優(yōu)點在嵌入式領(lǐng)域獲得更廣泛的應(yīng)用。GPS是以衛(wèi)星為基礎(chǔ)的無線導(dǎo)航定位系統(tǒng)。它具有全能性(陸地、海洋、航。為用戶提供精密的三維坐標(biāo)、速度和時間。GPS數(shù)據(jù)解碼程序,重點介紹LPC2292串口UART0、I2C部件和NMEA-0813協(xié)議,信息進(jìn)行解碼,并在液晶上顯示。

  

【正文】 ),是將 CPSR 的第 8 位置 1,允許 IRQ 中斷。 中斷及時鐘節(jié)拍 (1) 中斷句柄 HANDLER 中斷句柄 HANDLER 可以容易的聲明中斷處理函數(shù) ,如在 文件中添加中斷句柄 Uart0_Handler HANDLER UART0_IRQ,其中 UART0_IRQ 是中斷處理函數(shù)名 ,可以用語句 VICVectAddr1=(uint32)Uart0_Handler。告知微處理器發(fā)生UART0 中斷時中斷處理程序的地址。中斷句柄 HANDLER 是通過宏定義實現(xiàn)的。 (2) 中斷程序框架 { OS_ENTER_CRITICAL()。 ① 清除中斷源; ② 通知中斷控制器中斷結(jié)束; ③ OS_EXIT_CRITICAL()。 ④ 用戶處理代碼; } ⑤ 程序中的①、④是必需的 ,因為在中斷發(fā)生之前一定是允許中斷的 ,如果用戶在程序③之前調(diào)用μ C/OSⅡ的系統(tǒng)服務(wù)函數(shù) ,就很可能打開中斷 ,而在系統(tǒng)沒有清中斷和 /或③沒有執(zhí)行的情況下就開中斷就會造成芯片的中斷系統(tǒng)工 作異常而使程序工作異常。如果用戶沒有這種情況 ,則可以不要程序① ,而把程序④用普通的方法打開中斷。 廣西工學(xué)院 2020 屆畢業(yè)設(shè)計 基于 ARM 的 GPS 定位信息顯示器的軟件設(shè)計 18 (3) 掛接 SWI 軟件中斷 通過在 中設(shè)置中斷向量表的軟件中斷代碼處添加程序 LDR PC,SWI_Addr,并對 SWI_Addr 作如下定義 : SWI_Addr DCD SoftwareInterrupt 每當(dāng)發(fā)生軟件中斷時 ,程序便跳轉(zhuǎn)到軟件中斷的匯編接口程序 ,執(zhí)行相應(yīng)的程序。 (4) 時鐘節(jié)拍 通過 Timer0 提供時鐘節(jié)拍 ,Timer0 中斷處理程序如下 : T0IR=0x01。 VICVectAddr=0。 //通知中斷控制器中斷結(jié)束 OSTimeTick()。 Timer0 的匹配寄存器的設(shè)置是 ,T0MR0=(Fpclk/OS_TICKS_PER_SEC)。 即每 1/OS_TICKS_PER_SEC 秒發(fā)生一次中斷。 信息解碼程序設(shè)計 NMEA0183 的協(xié)議標(biāo)準(zhǔn) 本設(shè)計使用 SRIFStarIII 模塊接收 GPS 定位信息,該模塊遵循 NMEA0183 (National Marine Electronics Association 即國際海洋電子協(xié)會 )協(xié)議標(biāo)準(zhǔn)。以下分別列出 NMEA0183 協(xié)議標(biāo)準(zhǔn)的輸出數(shù)據(jù)格式中的 RMC、 GGA、 GSA。 RMC— Remended Minimum Specific GNSS Data Example: $GPRMC,A,N,W, 2,12 0 598, ,*10 name example uints Description Message ID $GPRMC RMC protocol header UTC Time Status A A=data valid or V=data not valid Latitude N/S Indicator N N=north or S=south Longitude E/W Indicator W E=east or W=west SpeedOverGround knots Course Over Ground degrees true Date 120598 ddmmyy 廣西工學(xué)院 2020 屆畢業(yè)設(shè)計 基于 ARM 的 GPS 定位信息顯示器的軟件設(shè)計 19 Magic Variation2. degrees E=east or W=west Mode A A=Autonomous, D=DGPS, E=DR Checksum *10 CR LF A End of message termination GGA — Global Positioning System Fixed Data Example: $GPGGA,N,W,1,07,1. 0 , M, , , ,0000*18 Name Example Units Description Message ID $GPGGA GGA protocol header UTC Time Latitude N/S Indicator N N=north or S=south Longitude E/W Indicator W E=east or W=west Position Fix Indicator 1 See Table 14 Satellites Used 07 Range 0 to 12 HDOP Horizontal Dilution of Precision MSL Altitude meters Units M meters Geoid Separation meters Units M meters Age of Diff. Corr. second Null fields when DGPS is not used Diff. Ref. Station ID 0000 Checksum *18 CR LF End of message termination GSA— GNSS DOP and Active Satellites Example: $GPGSA,A,3,07,02,26,27,09,04,15, , , , , ,*33 Name Example Units Description Message ID $GPGSA GSA protocol header Mode 1 A See Table 17 Mode 2 3 See Table 18 Satellite Used1. Satellite used in 07 Sv on Channel 1 廣西工學(xué)院 2020 屆畢業(yè)設(shè)計 基于 ARM 的 GPS 定位信息顯示器的軟件設(shè)計 20 Satellite Used1 02 Sv on Channel 2 .... ... Satellite Used1 Sv on Channel 12 PDOP Position Dilution of Precision HDOP Horizontal Dilution of Precision VDOP Vertical Dilution of Precision Checksum *33 CR LF End of message termination GPS 數(shù)據(jù)結(jié)構(gòu)的定義 根據(jù) GPS 接收器輸出數(shù)據(jù)格式,定義保存 GPS 數(shù)據(jù)的結(jié)構(gòu)體 ,這使得容易對GPS 數(shù)據(jù)進(jìn)行操作。由于各種 GPS 信息組成成分不一樣 ,所以 定義不同的結(jié)構(gòu)體 ,以下為在程序中所定義的結(jié)構(gòu)體。 對于 RMC 信息定義如下的結(jié)構(gòu)體 typedef struct GPRMC_Information { UTCTime_Information RMC_UTCTime。 uint8 FixStatus[1]。 Latitude_Information RMC_Latitude。// uint8 NSInditor[1]。// Longitude_Information RMC_Longitude。// uint8 EWInditor[1]。// uint8 SpeedOverGroud[10]。// uint8 CourseOverGroud[10]。// //Date_Information RMCDate。// uint8 RMCDate[6]。 uint8 MagicVariation[10]。// uint8 Mode[1]。// uint8 CRC[2]。 uint8 checkresult。 }GPRMC_BUF,*P_GPRMC_BUF。 該結(jié)構(gòu)體中包含了三個共用體 : ⅰ :UTCTime_Information typedef union UTCTime_Struct { uint8 UTCTimeBuf[12]。 廣西工學(xué)院 2020 屆畢業(yè)設(shè)計 基于 ARM 的 GPS 定位信息顯示器的軟件設(shè)計 21 struct { uint8 Hour[2]。 uint8 Minute[2]。 uint8 Second[2]。 uint8 MilliSecond[6]。 }UTCTimeUnits。 }UTCTime_Information。 ⅱ :Latitude_Information typedef union Latitude_Struct { uint8 LatitudeBuf[9]。 struct { uint8 LatDegree[2]。 uint8 LatMinute[2]。 uint8 LatMilliMinute[5]。 }LatitudeUnits。 }Latitude_Information,*P_Latitude_Information。 ⅲ :Longitude_Information typedef union Longitude_Struct { uint8 LongitudeBuf[10]。 struct { uint8 LonDegree[3]。 uint8 LonMinute[2]。 uint8 LonMilliMinute[5]。 }LongitudeUnits。 }Longitude_Information,*P_Longitude_Information。 對于 GGA信息 定義如下的結(jié)構(gòu)體 typedef struct GPGGA_Information { UTCTime_Information GGA_UTCTime。// Latitude_Information GGA_Latitude。// uint8 NSIndicator[1]。// Longitude_Information GGA_Longitude。// uint8 EWIndicator[1]。// uint8 PositionFixIndicator[1]。// 廣西工學(xué)院 2020 屆畢業(yè)設(shè)計 基于 ARM 的 GPS 定位信息顯示器的軟件設(shè)計 22 uint8 SatellitesUse[2]。// uint8 HDOP[4]。// uint8 MSLAltitude[7]。// uint8 uint1[1]。// uint8 GeoidSeparation[6]。// uint8 uint2[1]。// uint8 AgeOfDiffErr[4]。// uint8 DiffRefStionID[4]。// uint8 CRC[2]。 uint8 checkresult。 }GPGGA_BUF,*P_GPGGA_BUF。 對于 GSA信息 定義如下的結(jié)構(gòu)體 : typedef struct GPGSA_Information { uint8 Mode[1]。// uint8 FixMode[1]。// uint8 SatelliteUse1[2]。// uint8 SatelliteUse2[2]。// uint8 SatelliteUse3[2]。// uint8 SatelliteUse4[2]。// uint8 SatelliteUse5[2]。// uint8 SatelliteUse6[2]。// uint8 SatelliteUse7[2]。// uint8 SatelliteUs
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1