Motorola's EMU(Enhanced Mini USB)

本文详细介绍了A780手机的EMU(Enhanced Mini USB)接口的功能与工作模式,包括普通USB客户端模式、快速充电模式、耳机接口模式等,并解释了不同模式下的接口引脚定义及实现方式。

Quoted from “http://wiki.openezx.org/EMU


The A780 has a mini USB connector that motorola calls "Enhanced Mini USB" or in short "EMU". The Enhancement consists of several different modes that the port can be be switched into. The different modes are implemented by several analog CMOS switches and MOSFETs, which are controlled by the PCAP chip. Pin4 of the mini USB port is connected to a ADC inside the PCAP so that the voltage level on this pin can be measured by the BP, in order to identify a connected peripherial by simple resistor voltage dividers.

  • Ordinary USB client, (i.e. the phone can emulate usb storage, usb modem etc, and charge the battery from the 5 volt USB supply)
  • Charger., In this mode, the phone draws more current (up to 1,25A instead of the 500ma limit of USB host ports).
  • Car Charger,
  • Headset Interface (stereo audio out, mono mic in)
  • A Async Serial Port (3volt / 0 volt logic level)
  • A Factory Test and Flash Interface

The A780 has a mini USB connector that has some alternate pinout / functions. There is code in the kernel sources /drivers/misc/ezx-emu.c.

From my limited research on this, the A1200 seems to implement EMU via the new EOC (EMU One Chip), just to mention the translation of the EOC acronym here...

Charging modes

There are at least two different charging modes.

  • Mode 1: The battery is not completely discharged. The CPU is running and can decide which kind of USB cable is attached. Power only or also data connection. In this mode you can use charging with USB data cable and USB power supply.
  • Mode 2: The battery is completely discharged. The CPU is not running and so it could be not decided which kind of USB cable is attached. In this mode you can only use charging with USB power supply.


Normal USB device/accessory mode

Pinout :

  • 1 +5 volts input used to charge the phones battery at max 500mA.
  • 2 Data-
  • 3 Data+
  • 4 (NC/left open) voltage at adc approx 2,4-2,8 volt (there seems to be an internal pullup resistor of unknown value)
  • 5 GND

In this mode, the Data- and Data+ lines will be routed to a USB transceiver located in PCAP chip, which is connected to the AP (PXA270) via the USB2 single ended interface (GPIO pins 34,35,36,39, 40, and 53). There is a 1,5kOhm pullup resistor between the D+ as required by the USB standard to signal a high speed device (12mbits). This resistor is switchable by the PCAP bit BUSCTRL_USB_PU (+3,3volt or high Z). There is a second switchable pullup resistor on the d+ line which is used for charger detection. This resistor seems to be switched off (high Z) when setting the PCAP bit BUSCTRL_VUSB_MSTR_EN. However this does not happen instantly but with some delay (about 5-10 sec). It doesn't happen every time I tried. About 1 in 10 times it didn't work. It appears as if the firmware of the Baseband Processor is scanning from time to time the PCAP bits and then switches the resistor accordingly. I speculate therefore this resistor is connected to a GPIO on the Baseband processor and thats why there is no code in Motorolas kernel.

UART mode

Pinout :

  • 1 NC
  • 2 TXD
  • 3 RXD
  • 4 ???
  • 5 GND

The routing of the analog switches is exactly the same as in USB client mode, but inside the PCAP chip, the USB transceiver is bypassed. TXD is bypassed to GPIO 39 of the AP (which is then TXD of FFUART) and RXD is bypassed to GPIO 53 (which is then RXD of FFUART). See drivers/misc/ezx-emu.c of the original kernel for code.

Fast Charger

Pinout :

  • 1 5 volts @ 1,250 ma
  • 2 Short to pin 3
  • 3 short to pin 2
  • 4 440kohm pulldown
  • 5 GND

Just Power on the phone

Pinout :

  • 1 5 volts
  • 2 NC
  • 3 NC
  • 4 440kohm pulldown
  • 5 GND

Headset Mode

Pinout :

  • 1 The phone suppiles a voltage to the headset through this pin
  • 2 Left Out for Stereo Playback or Mono Out for handsfree
  • 3 Right Out for Stereo Playback or Mono In (mix for handsfree)
  • 4 102Kohm pulldown
  • 5 GND

Depending on what you do (play mp3 / calling) the phone will either switch to stereo mode or handsfree mode. The pins are either routed to the Stereo DAC of PCAP or to a Mono DAC and a Mono ACD in PCAP.

Factory Test

内容概要:本文介绍了一个基于冠豪猪优化算法(CPO)的无人机三维路径规划项目,利用Python实现了在复杂三维环境中为无人机规划安全、高效、低能耗飞行路径的完整解决方案。项目涵盖空间环境建模、无人机动力学约束、路径编码、多目标代价函数设计以及CPO算法的核心实现。通过体素网格建模、动态障碍物处理、路径平滑技术和多约束融合机制,系统能够在高维、密集障碍环境下快速搜索出满足飞行可行性、安全性与能效最优的路径,并支持在线重规划以适应动态环境变化。文中还提供了关键模块的代码示例,包括环境建模、路径评估和CPO优化流程。; 适合人群:具备一定Python编程基础和优化算法基础知识,从事无人机、智能机器人、路径规划或智能优化算法研究的相关科研人员与工程技术人员,尤其适合研究生及有一定工作经验的研发工程师。; 使用场景及目标:①应用于复杂三维环境下的无人机自主导航与避障;②研究智能优化算法(如CPO)在路径规划中的实际部署与性能优化;③实现多目标(路径最短、能耗最低、安全性最高)耦合条件下的工程化路径求解;④构建可扩展的智能无人系统决策框架。; 阅读建议:建议结合文中模型架构与代码示例进行实践运行,重点关注目标函数设计、CPO算法改进策略与约束处理机制,宜在仿真环境中测试不同场景以深入理解算法行为与系统鲁棒性。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值