【正文】
//系統(tǒng)自檢 void GRB_LED_test(void)。 畫 PCB 時, 要查清楚各元器件的封裝 ,電源線要盡可能的粗些, PCB 盡可能的緊湊和美觀。若接通后電流很大,必須立即切斷電源。本設(shè)計系統(tǒng)利用 JLINK 仿真器進行了在線調(diào)試 ,并運行成功,最后進行實物圖的硬件組裝與調(diào)試,這樣就給開發(fā)者在提供了方便。 如圖 45 所示: 圖 45 進入停止模式流程圖 配置系統(tǒng)時鐘 任一個 外部中斷即可喚醒系統(tǒng),喚醒 后需要配置系統(tǒng)時鐘。 主程序設(shè)計 主程序采用模塊化設(shè)計,流程圖如圖 41 所示。相反,當 A 為低電平 B 為高電平時 , Q1 截止 Q2 導(dǎo)通,所以 Q3 導(dǎo)通 Q4 截止、 Q5截止 Q6 導(dǎo)通 ,所以電流方向是從電源正極經(jīng)三極管 Q3 到電機,再經(jīng)三極管 Q6 到地。 IEEE 標準規(guī)定了一個四線串行接口(第五條線是可選的),該接口稱作測試訪問端口( TAP),用于訪問復(fù)雜的集成電路( IC),例如微處理器、 DSP、 ASIC和 CPLD。這種電路的設(shè)計,在系統(tǒng)的運行過程中需要復(fù)位時,只需使開關(guān)閉合,在 NRST 端就會出現(xiàn)一定時間的低 電平信號,從而使 STM32F107VCT6 單片機實現(xiàn)復(fù)位。 方案三: 采用米字型 LED 顯示 ,米字型 LED 價格適中 , 單個 就可以顯示 所有的數(shù)字和英門禁讀卡器功能測試儀設(shè)計 4 文 字符,接線方法簡單。C; ( 2) 測試設(shè)備支持 SXG6701K, 6501, 5501, 4501, 4001, 5001; ( 3) 不工作時進入停止模式 [4],節(jié)省能耗 ; ( 4) 支持韋根 26 位 、 34 位(帶校驗), 以及 4 位(不帶校驗 ) ; ( 5) 鍵盤測試時,能夠自動運行 。 關(guān)鍵詞 STM32F107VCT6 韋根通信 電機控制 門禁讀卡器功能測試儀設(shè)計 II THE DESIGN OF THE ACCESS CONTROL READER FUNCTION TESTER ABSTRACT Taking the SXG series of access control reader for research object ,this paper designed the function tests which based on the series of STM32 microcontrollers. The theoretical basis of the STM32 MCU and peripherals expand your knowledge in the design, while a more prehensive preparation. SXG series access functional test of the reader hardware and software aspects of the synchronous design. The hardware part is mainly microprocessors by STM32F107VCT6, LED display circuit, JTAG download circuit, the power conversion circuit, Wiegand munication circuit, and motor control circuit and other position, the system LEDsegment LED displays the test results, so humane operation and intuitive display. The software system enters stop mode and exit the stop mode, Wiegand munications, control, motors, keyboard testing. The system software design in C language, in order to facilitate the expansion and change, the software design is modular in structure, programming logic is more concise, in order to more easily achieve the functional testing SXG series access card reader. All programs after their pletion, in keil software for debugging, there is no problem, welding SXG series access card reader hardware testing. KEY WORDS STM32F107VCT6 Wiegand munication Motor control 門禁讀卡器功能測試儀設(shè)計 目 錄 中文摘要 .............................................................................................................................. I 英文摘要 ............................................................................................................................. II 1 緒論 ................................................................................................................................. 1 引言 .......................................................................................................................... 1 主要任務(wù) ................................................................................................................. 2 主要技術(shù)指標 ........................................................................................................ 2 門禁讀卡器功 能測試儀的國內(nèi)外發(fā)展現(xiàn)狀與趨勢 .................................. 2 2 設(shè)計方案論證 ............................................................................................................... 3 控制器芯片的選擇方案和論證 ................................................................... 3 顯示模塊選擇方案和論證 ............................................................................ 3 下載方式的選擇方案和論證 ........................................................................ 4 電路設(shè)計最終方案確定 ................................................................................. 4 3 硬件設(shè)計 ........................................................................................................................ 6 電源設(shè)計 ................................................................................................................. 6 晶振電路 ................................................................................................................. 6 復(fù)位電路 ................................................................................................................. 7 開始按鍵電路 ........................................................................................................ 7 韋根通信電路 ........................................................................................................ 8 JTAG 下載電路 ...................................................................................................... 8 電機 控制電路 ........................................................................................................ 9 門禁讀卡器功能測試儀設(shè)計 主電路設(shè)計 .......................................................................................................... 10 4 軟件設(shè)計 ...................................................................................................................... 12 主程序設(shè)計 .......................................................................................................... 12 系統(tǒng)初始化 .......................................................................................................... 14 系統(tǒng)自檢 ............................................................................................................... 15 開始鍵設(shè)為中斷模式 ........................................................................................ 15 進入停止模式 ...................................................................................................... 16 配置系統(tǒng)時鐘 ...................................................................................................... 16 電機控制 ............................................................................................................... 17 韋根通信測試 ...................................................................................................... 17 按鍵測試 ...................................................................