【正文】
雙向防盜器設(shè)計(jì) 【摘要】 隨著人們生活水平的提高,汽車(chē)已逐步進(jìn)入家庭,對(duì)汽車(chē)防盜的要求越來(lái)越高 ,并且無(wú)線(xiàn)技術(shù)的不斷發(fā)展,使得防盜系統(tǒng)的設(shè)計(jì)更加靈活、安全、方便、可靠。本文主要介紹基于 LPC930 單片機(jī)和 TDA5255 無(wú)線(xiàn)收發(fā)模塊設(shè)計(jì)的雙向汽車(chē)防盜系統(tǒng),分遙控器和主機(jī)設(shè)計(jì)兩部分。遙控器和主機(jī)進(jìn)行半雙工的通信,遙控器控制主機(jī)的狀態(tài),包括設(shè)防 、解除、尋車(chē)、開(kāi)尾門(mén)等,還具有與主機(jī)同步報(bào)警的功能;主機(jī)能夠檢測(cè)多個(gè)觸發(fā)源自動(dòng)報(bào)警并且同步通知遙控器,能根據(jù)遙控器的設(shè)定執(zhí)行相應(yīng)的功能,還具有自動(dòng)上下鎖、中控鎖自動(dòng)化、自動(dòng) 恢復(fù)、緊急解除等功能。自定義無(wú)線(xiàn)通信協(xié)議,協(xié)議數(shù)據(jù)采用 PWM 編碼,使用 FSK 調(diào)制和解調(diào)方式。軟件實(shí)現(xiàn)采用 C 語(yǔ)言編程和 Keil 編譯環(huán)境。 【關(guān)鍵詞】 LPC9 TDA525 PWM、 FSK 調(diào)制和解調(diào) 【 Abstract】 With the improvement of people’s living standard, private cars have gradually stepped into more and more mon families, and as a result, people have been more and more concerned with effective vehicle guardingagainsttheft systems。 and at the same time, with the continuous development of wireless technology, this kind of systems have bee much more flexible, convenient, reliable and safer. This article introduces a design of a bidirectional vehicle guardingagainsttheft system, which is based upon MCU LPC930 and radio transmission and reception module TDA5255, and the design is made up of two main parts: the remote controller and the mainframe. The munication between the remote controller and the mainframe is by means of halfduplex data transmission, and the states of the mainframe controlled by the controller include setting up and release from defense, seeking cars, opening the back door of cars and it also can give an alarm simultaneous with the mainframe。 and the mainframe can detect couples of triggered sources, give an alarm and inform the controller simultaneously, and also, it can carry out corresponding actions set by the controller。 besides, it can automatically lock and unlock, revert to the original state, centralcontrolling lock and release from defense when in emergency. The system has a PWMcoding based selfdefining munication protocol, and it uses FSK modulation and demodulation. The programming is based on programming language C with Keil as the piler environment. 【 Keywords】 LPC9 TDA525 PWM、 FSK Modulate and Demodulate 目 錄 第 1章 引言 6 第 2章 防盜器系統(tǒng)要求 8 防盜器主機(jī)指標(biāo)要求 8 主機(jī)基本要求 8 主機(jī)擴(kuò)展功能要求 10 遙控器指標(biāo)要求 10 遙控器基本要求 10 第 3章 系統(tǒng)方案選擇 14 核心控件 — MCU 14 無(wú)線(xiàn)通信模塊 15 通信協(xié)議 15 PWM編碼格式 16 字節(jié)的發(fā)送格式 18 數(shù)據(jù)幀格式 18 幀的發(fā)送接收時(shí)間計(jì)算 20 第 4章 無(wú)線(xiàn)通信模塊設(shè)計(jì) 21 TDA5255芯片介紹 21 總體描述 21 功能模塊介紹 22 FSK調(diào)制 24 FSK解調(diào) 24 節(jié)電控制 26 信號(hào)檢測(cè)和低電壓檢測(cè) 26 TDA5255的時(shí)間特性 28 基于 TDA5255的高頻模塊設(shè)計(jì) 29 高頻模塊的總體框圖 183