PIC'ing the MAX3100: Addin

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.
larger image
figure 1. max3100 application schematic.
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:
r9012134.zip 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.

生物识别技术在未来的网络安全领域占据着重要的地位
腾讯云小微AI语音技术探索和落地应用
智能网联汽车的本质是智能和网联吗?
基于PLC810PG的LED路灯电源电路设计
关于门级驱动芯片的简介,它的应用及性能优势是什么
PIC'ing the MAX3100: Addin
数字孪生博物馆有哪些特点?
NI、研华、凌华、国产新超振动数据采集卡的参数选型
比亚迪:刀片电池低温零下十度以下可放电90%
如何选择嵌入式的视觉处理技术
蚂蚁金服在区块链上的发力点在哪里
华润矽威入围“2009年德勤亚太区高科技高成长500强”
MLX90640 红外热成像仪测温传感器模块开发笔记(六)
Vivado 2023.2版本的新增功能
触控产业竞争激烈 厂商加速整并、技术升级
谷歌这技术太牛了,以后手机可以像电脑一样升级处理器、内存等
正弦交流电的三要素是 正弦交流电的有效值怎么求
求一种FPC、CCS测试完整解决方案
能源互联网风口将至 如何利用大数据掘金?
人工智能融入医疗行业