没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Maxim > Design Support > Technical Documents > Tutorials > 1-Wire® Devices > APP 214
Maxim > Design Support > Technical Documents > Tutorials > i
Button® > APP 214
Maxim > Design Support > Technical Documents > Tutorials > UARTs > APP 214
Keywords: UART, DS9097E, 1-Wire, iButton, bus master, 1-Wire signals, microprocessor, 1wire
TUTORIAL 214
Using a UART to Implement a 1-Wire Bus Master
Sep 10, 2002
Abstract: This application note explains how to use a microprocessor's UART to implement a 1-Wire®
bus master. It includes an explanation of the required electrical interface, UART configuration, and timing
relationship between UART and 1-Wire signals. The flexibility offered in setting up UART byte timing
allows straightforward implementation of 1-Wire time slots as well as the reset and presence detect
pulses. With the inclusion of deep transmit and receive FIFOs, several byte values can be transferred on
the 1-Wire bus with just a few clock cycles per bit required from the main processor.
Introduction
1-Wire devices provide economical solutions for identification, memory, time keeping, measurement and
control. The 1-Wire data interface is reduced to the absolute minimum, i.e., a single data line plus a
ground reference. As most 1-Wire devices provide relatively small amounts of data, the typical data rate
of 16kbps is more than sufficient for the intended tasks. It is often convenient to use a generalpurpose
input/output (GPIO) pin of an 8-bit or 16-bit microcontroller in a "bit banging" manner to act as the bus
master.
However, in 32-bit systems, processor clock frequencies routinely exceed 100MHz and using a GPIO pin
as the 1-Wire bus master consumes an enormous number of clock cycles per 1-Wire bit. In 32-bit
portable systems, precious battery power is consumed while timing the 1-Wire read- and write-time slots.
A few systems off load the burden of bit timing and byte framing operations from the main processor by
including the DS1WM Synthesizable 1-Wire Bus Master* hardware block in their chipset. If the DS1WM
or other hardware 1-Wire master port is not available, communication with 1-Wire devices can be
accomplished easily if a Universal Asynchronous Receiver Transmitter (UART) channel is available.
This application note includes an explanation of the required electrical interface, UART configuration, and
timing relationship between UART and 1-Wire signals. A general understanding of 1-Wire
communications is assumed. Typical timing and logic levels are used in the following discussion and the
reader should refer to particular 1-Wire device data sheets for specific timing and voltage specifications
and tolerances.
Conceptual Overview
Properly configured with respect to baud rate, data bits per character, parity and number of stop bits, a
115,200 bit per second capable UART provides the input and output timing necessary to implement a 1-
Wire master. The UART produces the 1-Wire reset pulse, as well as read- and write-time slots. The
Page 1 of 9
资源评论
todd_sh
- 粉丝: 3
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 法律援助工作站岗位职责.docx
- 法律援助工作站工作制度(值班登记、受理审查指派、重大、疑难案件讨论、案件质量检查、档案管理、例会制度).docx
- 返岗证明模板.docx
- 格力空调--通用网关可控型号列表.docx
- 公共生活秩序调查表.docx
- 公历农历年份对照表.docx
- 广告监管领域行风突出问题排查报告.docx
- 急救医学试卷.docx
- 教导处工作计划2024.docx
- 教学督导检查情况表.docx
- 教育实习评分细则.docx
- 考试工作人员选聘制度.docx
- 课件制作规范.docx
- 人文积淀与素质拓展测评标准表.docx
- 十二时辰当令对照表.docx
- 食堂日管控周排查月调度记录表.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功