This example provides a description of how to use the USART with hardware flowcontrol and communicate with the Hyperterminal.First, the USART2 sends the TxBuffer to the hyperterminal and still waiting fora string from the hyperterminal that you must enter which must end by '\r'character (keypad ENTER button). Each byte received is retransmitted to theHyperterminal. The string that you have entered is stored in the RxBuffer array. The receivebuffer have a RxBufferSize bytes as maximum. The USART2 is configured as follow: - BaudRate = 115200 baud - Word Length = 8 Bits - One Stop Bit - No parity - Hardware flow control enabled (RTS and CTS signals) - Receive and transmit enabled - USART Clock disabled - USART CPOL: Clock is active low - USART CPHA: Data is captured on the second edge - USART LastBit: The clock pulse of the last data bit is not output to the SCLK pin
上傳時間: 2013-10-31
上傳用戶:yy_cn
通信電源中,整流器模塊控制器程序。ATmega16L,8M晶振,使用USART通信中斷,使用ADC采集模塊數(shù)據(jù),使用部分通用I/O口控制模塊開關(guān)機。
標簽: 通信電源
上傳時間: 2015-03-21
上傳用戶:baiom
使用DSP軟件實現(xiàn)UART功能.一般教科書上提供的UART收發(fā)的程序往往是一段采用輪循(Polling)方式完成收發(fā)的簡單代碼。但對于高速的AVR來講,采用這種方式大大降低了 MUC的效率。在使用AVR時,應根據(jù)芯片本身的特點(片內(nèi)大容量數(shù)據(jù)存儲器RAM,更適合采用高級語言編寫系統(tǒng)程序),編寫高效可靠的UART收發(fā)接口(低層)程序。下面是一個典型的USART的接口程序。
上傳時間: 2013-12-15
上傳用戶:fxf126@126.com
C51實例代碼:FLASH驅(qū)動,IIC,usart,觸摸液晶控制顯示,電熱壺燒水程序,定點濾波,定時器及計數(shù)器的生成,二分法查表,浮點濾波,浮點濾波,控制SED1335的液晶顯示,軟件看門狗,十六進制_BCD碼相互轉(zhuǎn)換,時間倒計時,實時時鐘,數(shù)字時鐘,溫度芯片驅(qū)動,無線數(shù)據(jù)傳輸,以太網(wǎng)芯片
上傳時間: 2015-09-05
上傳用戶:hjshhyy
這是一個基于顏色特征的物體識別程序,包括上位機源代碼、下位機源代碼和非常詳細的說明文黨。該程序上位機用Java寫成,在windows/UNIX/Linux等系統(tǒng)下均可以編譯和運行,而下位機代碼則運行于ATMEL公司出品的AVR系列ATMega單片機,采用avr-gcc編譯。該程序可以同時識別10個不同顏色不同形狀的物體,達到每秒29幀的處理速度,采用OV6620 CMOS圖像傳感器。
上傳時間: 2015-09-09
上傳用戶:一諾88
ZLG7289測試程序,用于調(diào)整你的程序,網(wǎng)站上下載的程序不能正常顯示,使用ATMEL公司的Atmega單片機
上傳時間: 2015-12-03
上傳用戶:zsjinju
目前普遍采用的MCS51 和PIC 系列單片機通常只有一個(或沒有)UART 異步串行通信接口,在應用系統(tǒng)中若需要多個串行接口(例如在多機通信系 統(tǒng)中,主機既要和從機通信又要和終端通信)的情況下,通常的方法是擴展 一片8251 或 8250 通用同步/異步接收發(fā)送芯片(USART),需額外占用單 片機I/O 資源。本文介紹一種用單片機普通I/O 口實現(xiàn)串行通信的方法,可 在單片機的最小應用系統(tǒng)中實現(xiàn)與兩個以上串行接口設備的多機通信
上傳時間: 2016-01-25
上傳用戶:皇族傳媒
Atmel AT91SAM7SE256的一些基本驅(qū)動代碼, 包括Link Files, 中斷源配置, SDRAM, USART, Timer等外設的驅(qū)動代碼。可用于AT91SAM7SE系列處理器。
上傳時間: 2013-12-20
上傳用戶:zjf3110
用于ATMEGA8單片機調(diào)試 包括串口,spi通信,usart通信
標簽: ATMEGA8 單片機調(diào)試 串口
上傳時間: 2013-12-18
上傳用戶:bjgaofei
Widely known as carputer, this system is designed for: * calculating speed, fuel consumption, economy driving, e.t.c. * displaying information about temperatures and controll Air Conditioning system in your car.* * controlling other devices, like electrically opened windows.* The system is based on ATMega MCU programmed in C language.
標簽: calculating consumption carputer designed
上傳時間: 2016-05-29
上傳用戶:lili123
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1