玩具品种:英译汉 急 希望大家能帮帮忙!谢谢!(人工翻译)(9)

来源:百度文库 编辑:高考问答 时间:2024/05/02 08:41:57
Main Board Digital Input / Output Ports
There are ten digital input / output (IO) ports on the IntelliBrain main board (see Figure 7 - Ports and Pin Arrangement).
Each port is software configurable as an input or an output.
All ports have a software selectable pull-up resistor in the ATmega128 chip when configured as an input.
You can use digital IO ports 3 through 6 for measuring input pulse durations. You will find this useful for interfacing with sensors such as the Devantech SRF04 sonar range finder which use pulse duration modulation to indicate themeasured value.
You can use digital IO port 3 as a battery indicator, as described in the Battery Indicator section.
Sensor and effectors should be attached to these ports as shown in Figure 6 -Typical Sensor / Effector Connection.
I2C Ports
The IntelliBrain has a single I2C bus with 3 headers that allow you to interface it to a wide variety of I2C slave devices. Some popular robotics sensors and effectors that you may want to interface your IntelliBrain to are:
Devantech SRF08 sonar range finder
Devantech CMPS03 magnetic compass
Devantech SP03 text to speech synthesizer
Devantech MD03 motor driver
Devantech MD22 dual motor driver
The IntelliBrain is an I2C master and the sensors and effectors you attach are I2C slaves. Each I2C slave must have a unique device address which is used to communicate to the device. The IntelliBrain treats the device address as 8 bits consisting of 7 address bits followed by a zeroed bit as the least significant bit.The least significant bit is used as a read-write indicator when the IntelliBraincommunicates with slave devices. The IntelliBrain virtual machine manages the read write bit so you only need to be concerned with the value of the 7 address bits when using the API. Consult the technical documentation for the I2C devices you use for more information on their I2C addresses.
Figure 11 shows how to connect your I2C devices to the IntelliBrain headers.
The I2C bus is also routed to the expansion header (see Figure 12 – Expansion Board Connector Pin Out).

主板数字输入/输出端口
在IntelliBrain有10个数字输入/输出端口。(参见图表7-端口及针脚排列)
每个端口都可由软件配置为输入或输出端口
当被配置为输入端口时,所有端口都有一个软件可选、内建于ATmega128芯片的可变电阻。
你可使用数字输入/输出端口3至端口6来测量输入脉冲长度。
这个的作用在用于建立与传感器的接口时尤为突出,例如接使用脉冲长度来表示themeasured值的Devantech SRF04 声纳范围测量器时。
你可使用数字输入/输出端口3作为电池(电量)指示器,详见“电池电量指示器”部分
传感器和应变器应以 图6-——典型传感器/应变器连接 所示的方式与这些端口连接。
I2C 端口
IntelliBrain主板有单独的三头I2C总线可与种类繁多的从设备连接。

你可能会需要将如下一些主流的机械人用探测器连接至你的IntelliBrain主板:
Devantech SRF08 sonar range finder (声纳范围测量器?)
Devantech CMPS03 magnetic compass (电磁导向?)
Devantech SP03 text to speech synthesizer (文字/语音转换)
Devantech MD03 motor driver (马达驱动)
Devantech MD22 dual motor driver
IntelliBrain主板为主设备,连接的传感器和应变器为从设备。
每个I2C从设备必须有唯一的、与其通信用的设备地址。
IntelliBrain主板将设备地址视为8位——7位地址位+0(最不重要位)。
此0位被作为读/写标志位。
IntelliBrain虚拟机会处理读/写位,因此在使用此API时,只需注意7位地址位。
请参考你使用的I2C设备的文档以获得更多关于其设备地址的信息。
图11显示了如何将你的I2C设备接入IntelliBrain 主板头部。
IC2总线也会被接入扩展板头部
(见图12-——扩展板针脚)

主要部份董事会数传输入 / 输出港口
有十数传输入 / 输出 (IO) 在 IntelliBrain 主要部份董事会上的港口 ( 见到图 7- 港口和大头针安排).
每个港口是结构的软件如输入或输出。
所有的港口让一个软件可选择拉- 提高 ATmega128 薄片的电阻当配置如输入的时候。
你能使用数传 IO 移植 3 直到 6 因为测量输入跳动期间。 你将会为以感应器 , 像是 Devantech SRF04 声纳接口范围发现者指出 themeasured 价值哪一使用脉膊期间调音找这有用的。
你能使用数传 IO 港口 3 如一个电池指示器,如电池指示器区段所描述。
感应器和 effectors 应该被附上到这些港口如图 6- 典型的感应器 /Effector 连接所示。
I2C 港口
IntelliBrain 有有 3个允许你到接口它到各式各样的 I2C 奴隶装置的首领一辆单一 I2C 公共汽车。 一些流行的机械手工程感应器和 effectors 你可能想要到接口你的 IntelliBrain 当:
Devantech SRF08 声纳范围发现者
Devantech CMPS03 磁性指南针
对演讲合成器的 Devantech SP03 本文
Devantech MD03 乘汽车驾驶员
双重的马达驾驶员的 Devantech MD22
IntelliBrain 是 I2C 主人和感应器,而且你附上的是 I2C 奴隶。 每个 I2C 奴隶一定有一个用来沟通到装置的独特装置住址。 IntelliBrain 视装置住址为有 7 被如最没有重要的一点点的被对准零位的一点点跟随的住址一点点的 8 一点点。最没有重要的一点点被当作阅读使用- 写指示器当和奴隶装置的 IntelliBraincommunicates。IntelliBrain 虚拟的机器处理阅读写一点点因此当使用美国石油协会的时候,你只需要与 7 住址一点点的价值有关系。 为你为关于他们的 I2C 住址的较多资讯使用的 I2C 装置请教技术上的文件。
图 11 表演该如何连结你的 I2C 装置到 IntelliBrain 首领。
I2C 公共汽车也被扩充首领溃败到。 (在外见到图 12 –扩充卡联编者大头针)