色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

用戶名: 密 碼: 忘記密碼? 免費注冊

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.

標簽
分享到:

(責任編輯:發燒友)

發表評論,輕松獲取積分:

發表評論表單
評價[必選]:
用戶名: 驗證碼:點擊我更換圖片

請自覺遵守互聯網相關的政策法規,嚴禁發布色情、暴力、反動的言論。

主站蜘蛛池模板: 国产亚洲精品久久综合阿香蕉 | 国语自产二区高清国语自产拍| 国产精品成人无码免费视频| 红桃传媒少妇人妻网站无码抽插| 门事件快播| 天天狠狠色噜噜| 被公疯狂玩弄的漂亮人妻| 最近中文字幕无吗免费高清 | free性中国hd护士高清| 国产国产乱老熟视频网站 | 大胸美女被cao哭| 亚洲乱码中文字幕久久孕妇黑人| 99久久精品毛片免费播放| 国产午夜在线观看视频| 欧美怡红院视频一区二区三区| 亚洲精品国产精麻豆久久99| chinese情侣自拍啪hd| 换脸国产AV一区二区三区| 日本午夜视频在线| 91久久精品国产亚洲| 久久re热在线视频精6| 偷拍自怕亚洲在线第7页| 99re久久这里只有精品| 国语自产一区第二页| 十九岁在线观看免费完整版电影| 99国产在线视频有精品视频| 777午夜精品久久AV蜜臀| 99久久国产综合精品| 国产成人综合在线观看| 久久国产精品无码视欧美| 天天狠狠色综合图片区| 被滋润的艳妇疯狂呻吟白洁老七| 麻豆国产精品久久人妻| 伊人久久大香线蕉综合网站| 国产亚洲精品久久久999无毒| 日本亚洲中文字幕无码区| YELLOW视频直播在线观看| 免费在线观看一区| 99精品久久久久久久| 免费欧美大片| AV72啪啪网站|