在线观看www成人影院-在线观看www日本免费网站-在线观看www视频-在线观看操-欧美18在线-欧美1级

用戶名: 密 碼: 忘記密碼? 免費(fèi)注冊

PIC'ing the MAX3100: Addin

2008-09-19 16:24www.elecfans.co 本站我要評論(0我要收藏

PIC'ing the MAX3100: Adding USB to a PIC Microcontroller Using the MAX3100 UART

Abstract: USB has just become easy to implement. This application note eases equipment designers into USB by allowing them to continue to transmit and receive data using the familiar UART frames of the MAX3100 UART. A UART-to-USB converter IC and operating system driver will take care of all of the USB complexity. The application note describes all of the software and hardware you need in order to transmit and receive data using the MAX3100 over USB.

Background

The UART (universal asynchronous receiver transmitter) has been the standard serial port framer ever since IBM's original PC motherboard used the Intel 8250 UART. Decades later, the UART continues to be widely used due to its reliability and simplicity.

The universal serial bus (USB) has largely replaced the standard serial port as the way to connect devices to a PC because it is simpler, more foolproof, and faster. But while USB makes connection easier for the user, it presents the designer with additional challenges. Many designers continue to use the UART with the standard serial port, waiting for products that make USB easier to implement. Happily, that day has arrived. A USB interface can now be achieved using the MAX3100 and a UART-to-USB converter. The designer works with the familiar UART frames of the MAX3100 UART and the UART-to-USB converter IC and an operating system driver take care of the complexities of USB.

The MAX3100 is the first UART targeted specifically for microcontroller systems. Its SPI™/QSPI™ compatible interface allows the MAX3100 to be used with almost any microcontroller. The SPI/QSPI interface is ideal because it is easy to implement with either an on-chip SPI/QSPI peripheral or just 4 GPIOs. The MAX3100 supports SPI data rates up to 4.2MHz and its UART supports baud rates up to 230kBd.

This application note eases equipment designers into USB by allowing them to continue to transmit and receive data using standard UART data frames.The information below describes all of the software and hardware you need in order to transmit and receive data using the MAX3100 over USB.

A UART-Based USB Design

The application circuit shown in Figure 1 consists of the MAX3100 UART, a FT232BM UART-to-USB converter, a 93C46 serial EEPROM, and a PIC16F84 microcontroller. Since the PIC16F84 does not have any internal USB or UART peripherals, the MAX3100 makes the perfect external UART peripheral. The program, shown in Listing 1, interfaces the PIC16F84 to the MAX3100 via SPI.

Figure 1. MAX3100 application schematic.
Larger Image

Figure 1. MAX3100 application schematic.

Listing 1.
Download


Listing 1 is an example assembly program that interfaces the PIC16F84 to the MAX3100 via SPI.

The example assembly program continuously transmits the message:
"THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG".

The MAX3100 receives this data via SPI and continuously transmits the same message with standard UART frames to the FT232BM at 230kBd. The FT232BM converts the UART frame data to a USB compatible format so that a PC can easily receive the data using a USB virtual COM port.

The USB virtual COM port driver must be installed on the PC the very first time an active USB serial cable is plugged into the circuit in Figure 1. No power should be applied to the board since the entire circuit is powered from the USB port. Copy the compressed file listed in Table 1 to your hard drive. I copied the compressed file to a subdirectory on my C drive called C:\3100appnote. Please follow the step by step directions below in order to successfully install the virtual COM port driver.

The following steps require this download:

Table 1. Unzip the file R9012134.ZIP in a subdirectory on your hard drive

Description Filename
Win98/2000 Virtual COM port driver R9012134.ZIP

Step 1: Once the board is plugged into an active USB serial cable you will see the following screen show up. Press the Next > button.



Step 2: When the second screen shows up, press the Next > button to search for the best driver for your device.



Step 3: When the third screen shows up, guide Windows to the location you uncompressed the file R9012134.ZIP by pressing the Browse button. For example C:\3100appnote. Press the Next > button to start the search.



Step 4: When the next screen shows up press the Next > button after the FTDIBUS.INF driver file has been located.



Step 5: When the last screen shows up press the Finish button to complete the installation process.



Step 6: Verify that a USB virtual COM port was installed correctly by viewing the ports section of the Device Manager tab located in System Properties | Device Manager | Ports.



Once the USB virtual COM port driver is installed, all of your favorite standard serial port PC applications will now be able to transmit and receive data over USB using a virtual COM port as opposed to the typical hardware COM port. Many hardware COM ports are limited to 115kBd but the virtual COM port emulates a hardware COM port in software and supports Baud rates up to 921kBd.

QSPI is a trademark of Motorola, Inc.
SPI is a trademark of Motorola, Inc.

標(biāo)簽
分享到:

(責(zé)任編輯:發(fā)燒友)

發(fā)表評論,輕松獲取積分:

發(fā)表評論表單
評價(jià)[必選]:
用戶名: 驗(yàn)證碼:點(diǎn)擊我更換圖片

請自覺遵守互聯(lián)網(wǎng)相關(guān)的政策法規(guī),嚴(yán)禁發(fā)布色情、暴力、反動(dòng)的言論。

主站蜘蛛池模板: 日本xxxxxxx69xx| 神马福利 | 黄色自拍偷拍 | 边做饭边被躁欧美三级小说 | 五月天婷婷免费视频 | 婷婷色综合久久 | 国产亚洲自在精品久久 | 寡妇影院首页亚洲图片 | 国产秦先生大战白丝97在线 | 中国一级特黄真人毛片免费看 | 久久综合九色欧美综合狠狠 | 天天做天天爱天天干 | 簧片地址 | 色多多免费视频 | 日日夜夜狠狠 | 欧美日韩色综合网站 | 搡女人视频免费 | 国产福利你懂的 | 精品伊人久久大线蕉地址 | 亚洲91| 亚洲黄色网址在线观看 | 亚洲国产成a人v在线观看 | 欧美特黄三级在线观看 | 色婷婷激情综合 | 一区二区三区视频免费观看 | 双性受粗大撑开白浊 | 久久综合九色欧美综合狠狠 | 六月丁香深爱六月综合激情 | 男人的天堂黄色 | 美女和美女 | 四虎永久精品免费观看 | 人操人爱| 亚洲福利二区 | 丁香五婷婷 | 午夜 dy888理论久久 | 日黄网站 | 午夜三级福利 | 视频三区 | 黄网站色成年片大免费软件 | 免费看欧美一级特黄α大片 | 午夜影院网站 |