当前位置:文档之家› STM8-SWIM通信协议和调试模块用户手册(部分翻译)

STM8-SWIM通信协议和调试模块用户手册(部分翻译)

翻译:

本人应朋友之邀,翻译了本文的第三章,由于水平有限,且没有用过STM8系列的控制器,如有错误,请见谅。

by踏雪无痕

2010-11-11

rose_yiyong@https://www.doczj.com/doc/a213650117.html,

December 2009Doc ID 14024 Rev 21/37

UM0470User manual

STM8 SWIM communication protocol and debug module Introduction

This manual has been written for developers who need to build programming, testing or debugging tools for the STM8 microcontroller family. It explains the debug architecture of the STM8 core.

The STM8 debug system consists of two modules:

●DM: Debug module ●

SWIM: Single wire interface module

Related documentation:●STM8S Flash programming reference manual (PM0051)

STM8L Flash programming manual (PM0054)

https://www.doczj.com/doc/a213650117.html,

STM8 SWIM 通信协议和调试模块用户手册

1.介绍:STM8微控制器家族的测试或调试工具.它解释了 stm8 内核调试体系结构STM8 调试系统由两个模块组成:调试模块

单线接口模块叙述文档:

Contents UM0470

Contents

1Debug system overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2Communication layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3Single wire interface module (SWIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3.1Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3.2SWIM entry sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

3.3Bit format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

3.3.1High speed bit format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

3.3.2Low speed bit format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

3.4SWIM communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

3.5SWIM commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.5.1SRST: system reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.5.2ROTF: read on the fly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.5.3WOTF: write on the fly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

3.6SWIM communication reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

3.7CPU register access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

3.8SWIM communication in Halt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

3.9Physical layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

3.10STM8 SWIM registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

3.10.1SWIM control status register (SWIM_CSR) . . . . . . . . . . . . . . . . . . . . . . 18

3.10.2SWIM clock control register (CLK_SWIMCCR) . . . . . . . . . . . . . . . . . . . 19

4Debug module (DM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.1Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.2Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.3Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.3.1Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.3.2Breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.3.3Abort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.3.4Watchdog control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.3.5Interaction with SWIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.4Breakpoint decoding table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2/37Doc ID 14024 Rev 2

UM0470Contents

4.5Software breakpoint mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

4.6Timing description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

4.7Abort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

4.8Data breakpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

4.9Instruction breakpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

4.10Step mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

4.11Application notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

4.11.1Illegal Memory access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

4.11.2Forbidden stack access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

4.11.3DM break . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

4.12DM registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

4.12.1DM breakpoint register 1 extended byte (DM_BKR1E) . . . . . . . . . . . . . 27

4.12.2DM breakpoint register 1 high byte (DM_BKR1H) . . . . . . . . . . . . . . . . . 27

4.12.3DM breakpoint register 1 low byte (DM_BKR1L) . . . . . . . . . . . . . . . . . . 27

4.12.4DM breakpoint register 2 extended byte (DM_BKR2E) . . . . . . . . . . . . . 28

4.12.5DM breakpoint register 2 high byte (DM_BKR2H) . . . . . . . . . . . . . . . . . 28

4.12.6DM breakpoint register 2 low byte (DM_BKR2L) . . . . . . . . . . . . . . . . . . 28

4.12.7DM control register 1 (DM_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

4.12.8DM control register 2 (DM_CR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

4.12.9DM control/status register 1 (DM_CSR1) . . . . . . . . . . . . . . . . . . . . . . . 31

4.12.10DM control/status register 2 (DM_CSR2) . . . . . . . . . . . . . . . . . . . . . . . 32

4.12.11DM enable function register (DM_ENFCTR) . . . . . . . . . . . . . . . . . . . . . 33

4.12.12Summary of SWIM, DM and core register maps . . . . . . . . . . . . . . . . . . 34 Appendix A Description of the DM_ENFCTR register

for each STM8 product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Doc ID 14024 Rev 23/37

List of tables UM0470 List of tables

Table 1.SWIM command summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Table 2.CPU register memory mapping in STM8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Table 3.SWIM pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Table 4.Decoding table for breakpoint interrupt generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 5.STM8 registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Table 6.Peripherals which are frozen by the bits of the DM_ENFCTR register

for each STM8 product. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Table 7.Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4/37Doc ID 14024 Rev 2

UM0470List of figures List of figures

Figure 1.Debug system block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Figure 2.SWIM pin external connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Figure 3.SWIM activation sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Figure 4.SWIM activation timing diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 5.SWIM entry sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 6.High speed bit format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 7.Low speed bit format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure https://www.doczj.com/doc/a213650117.html,mand format (Host -> Target) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 9.Data format (Target -> Host). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 10.Timings on SWIM pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Figure 11.Debug module block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Figure 12.STM8 Instruction Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Figure 13.STM8 Debug Module Stall Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Figure 14.STM8 DM Data Break Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Figure 15.STM8 DM instruction break timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Figure 16.STM8 DM step timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Doc ID 14024 Rev 25/37

Debug system overview UM0470

6/37Doc ID 14024 Rev 2

1

Debug system overview The STM8 debug system interface allows a debugging or programming tool to be connected to the MCU through a single wire bidirectional communication based on open-drain line.It provides non-intrusive read/write access to RAM and peripherals during program execution

The block diagram is shown in Figure 1.Figure 1.

Debug system block diagram

The debug module uses the two internal clock sources present in the device, the LSI Low Speed Internal clock (usually in the range 30 kHz-200 kHz, depending on the product) one and the HSI High Speed Internal clock (usually in the range 10 MHz to 25 MHz, depending on the device). The clocks are automatically started when necessary.

SWIM Entry

LSI oscillator HSI oscillator

Comm Layer Command Decode

Debug module (DM)STM8Core

Peripherals SWIM pin

P e r i p h e r a l B u s

CPU Bus

SWIM RAM

Flash/R A M B u s

STM8

Data EEPROM

调试系统总览

UM0470Communication layer

Doc ID 14024 Rev 27/37

2 Communication layer

The SWIM is a single wire interface based on asynchronous, high sink (8 mA), open-drain,

bidirectional communication.

While the CPU is running, the SWIM allows non-intrusive read/write accesses to be performed on-the-fly to the RAM and peripheral registers, for debug purposes.In addition, while the CPU is stalled, the SWIM allows read/write accesses to be performed to any other part of the MCU’s memory space (Data EEPROM and program memory).CPU registers (A, X, Y , CC, SP) can also be accessed. These registers are mapped in memory and can be accessed in the same way as other memory addresses. ●Register, peripherals and memory can be accessed only when the SWIM_DM bit is set. ●When the system is in HALT , WFI or readout protection mode, the NO_ACCESS flag in the SWIM_CSR register is set. In this case, it is forbidden to perform any accesses because parts of the device may not be clocked and a read access could return garbage or a write access might not succeed.

The SWIM can perform a MCU device software reset.

The SWIM pin can also be used by the MCU target application as a standard I/O port with some restrictions if you also want to use it for debug. The safest way is to provide a strap option on the application PCB. Figure 2.

SWIM pin external connections

STM8

Application I/O

SWIM interface for tools

Jumper selection for

debug purposes

SWIM pin

通信层即使CPU在运行,SWIM 允许不插入读取访问执行空中飞入(on-the-fly)到RAM和外设寄存器达到调试目的

另外,当CPU停止时,SWIM允许读写MCU的其它部件的内存空间(DATA EEPROM 和 程序存储器)

CPU 寄存器(A,X,Y,CC,SP)同样能读写,这些寄存器映射到内存并且能像访问其它内存地址一样访问它们寄存器,外设和内存只有在SWIM_DM位设置时能读写当系统在HALT,WFI或者读出保护模式时,NO_ACCESS 标志位(SWIM_CSR

中)置位。既然这样,它禁止执行任何读写操作,因为这个部件可能没有时钟,读操作会返回一个无效数据,写操作不能成功

SWIM能执行MCU的软件复位SWIM引脚能像标准I/O口一样供目标应用程序使用,但有一些限制,如果你要在调试时使用,SWIM有最高优先级,你应该在应用的PCB上设置选项,如下图所示:

8/37Doc ID 14024 Rev 2

3

Single wire interface module (SWIM)3.1 Operating modes

After a Power-On Reset (powering of the device) the SWIM is reset and enters in its OFF mode.

1.OFF : In this mode the SWIM pin must not be used as an I/O by the application. It is

waiting for the SWIM entry sequence or to be switched to I/O mode by the application software.2. I/O : This state is entered by the software application by setting the IOM bit in the core

configuration register (MCR). In this state, the user application can use the SWIM pin as a standard I/O pin, the only drawback is that there is no way to debug the functionality of this pin with the built-in debug capabilities. In case of a reset, the SWIM goes back to OFF mode.3. ACTIVE : This mode is entered when a specific sequence is detected on the SWIM pin

while in OFF state. In this state, the SWIM pin is used by the host tool to control the STM8 with 3 commands. (SRST System Reset, ROTF Read On The Fly, WOTF Write On The Fly)

Note:

Please note that the SWIM can be set Active and communicate while the device is in RESET state (NRST pin forced low)

Figure 3.

SWIM activation sequence

POR

ACTIVE

I/O

OFF

IOM bit set

Y

SWIM entry

sequence

Y

ROTF WOTF

RST bit set

reset

N

N

Y

N

CSR SRST

单总线通信接口模块

工作模式 在上电复位时

SWIM 复位并进入OFF模式在这个模式下,SWIM脚不能被任务程序用作I/O,它将等待SWIM进入序列或者由应用软件切换到I/O模式。I/O:应用程序可以置位内核配置寄存器(MCR)的IOM位来进入这个模式。在这个模式下,用户程序可以将SWIM管脚用作标准I/O管脚,唯一的缺点是无法使用内建的调试器来调试这个管脚的功能。

一旦复位,SWIM将返回OFF模式。

ACTIVE:在OFF模式下,当SWIM管脚上检测到一个特定的脉冲序列时,SWIM将进入ACTIVE模式。在这个模式下,SWIM管脚将被主机通过三条命令来控制STM8。(SRST系统复位,ROTF飞速读,WOTF飞速写)注意SWIM只有设备在RESET状态下才可以被设置为ACTIVE模式和通信(NRST管脚强制为低)

Doc ID 14024 Rev 29/37

3.2 SW M entry sequence After a POR, and as long as the SWIM is in OFF mode, the SWIM pin is sampled for entry

sequence detection. In order to do this, the internal low speed RC clock is automatically turned ON after POR and remains forced ON as long as the SWIM is in OFF mode.

If the register which forces the SWIM in I/O mode is written before the entry sequence is finalized, the SWIM enters I/O mode. Once the SWIM is ACTIVE, writing this bit has no influence on communication and the SWIM interface remains in ACTIVE mode.

If an application uses the SWIM pin as standard I/O, it puts the SWIM interface in I/O mode in the initialization section of the software code (typically, this is performed just after the reset). However, even in this case, it is still possible to put the SWIM interface in ACTIVE mode by forcing the RESET pin to 0 and keep it low for the duration of the SWIM entry sequence.As long as the SWIM is in OFF mode, the SWIM entry sequence is detected at any moment, during reset or when the application is running.

If both the SWIM pin and the reset pin are multiplexed with I/Os, the way to enter SWIM ACTIVE state is to power down the MCU device, power up and to maintain the reset until the

end of the SWIM entry sequence.SWIM 进入序列

上电复位后,只要SWIM处于OFF模式下,SWIM管脚就会被采样,直到检测到进入序列。为了达到这个目的,上电复位后,只要SWIM处于OFF模式下,内部低速RC时钟自动启动并强制保持打开。如果在SWIM检测到进入序列之前,配置SWIM为I/O模式的寄存器被置位,则SWIM进入I/O 模式。一旦SWIM进入ACTIVE模式,配置SWIM为I/O模式为寄存器被置位也不影响通信,SWIM接口将保存在ACTIVE模式下。如果程序把SWIM管脚作为标准I/O使用,则软件代码初始化部分就要将SWIM接口配置为I/O 模式(典型的是在复位之后)。然而,即使在这种情况下,强制使RESET脚为0并保持为低直到SWIM进入序列完成,也可以使SWIM模块进入ACTIVE模式。

只要SWIM在OFF模式下,SWIM进入序列仍可以在任务时候被检测到,无论是复位期间还是

程序运行期间如果SWIM脚和reset脚都复用为IO,则进入SWIM ACTIVE状态的方法是使MCU先掉电再上电来满足复位条件直到完成SWIM的启动序列

10/37Doc ID 14024 Rev 2

SWIM activation is shown in Figure 4 and each segment on the diagram is described below.1.To make the SWIM active, the SWIM pin must be forced low during a period of 16 μs

(which is 64 pulses minimum at the frequency of HSI).

2. After this first pulse at 0, the SWIM detects a specific sequence to guarantee

robustness in the SWIM active state entry. The SWIM entry sequence is: 4 pulses at 1 kHz followed by 4 pulses at 2 kHz. The frequency ratio is detected and allows SWIM entry. The ratio can be easily detected whatever the internal RC frequency. The waveform of the entry sequence is shown in Figure 5. Note that the sequence starts and ends with the SWIM pin at 1.

3. After the entry sequence, the SWIM enters in SWIM active state, and the HSI oscillator

is automatically turned ON.

4. After this delay, the SWIM sends a synchronization frame to the host.

Synchronization frame description: A synchronization frame of 128 x HSI clock periods with the SWIM line at 0 is sent out by the MCU device to allow for the

measurement of the RC by the debug host. An advanced debug host can re-calibrate its clock to adapt to the frequency of Internal RC.

5. Before starting a SWIM communication, the SWIM line must be released at 1 to

guarantee that the SWIM is ready for communication (at least 300 ns).6. Write 0A0h in the SWIM_CSR:

- setting bit 5 allows the whole memory range and SRST command to be accessed.- setting bit 7 masks the internal reset sources

7. Release reset which starts the option byte loading sequence. Wait 1 ms for

stabilization.

8. Once option byte loading has occurred and stabilization time is reached, the CPU is in

phase 8:

- STM8S is stalled and HSI = 16 Mhz (see STM8S datasheets for % accuracy)- SWIM clock is at HSI/2 = 8 Mhz - SWIM is active in low speed bit format (see Section 3.3.2)

Figure 5.

SWIM entry sequence

SWIM pin

SWIM Active

1 ms

500 μs

SWIM entry sequence

SWIM 激活见每一个图表段的描述见下面:

要使得SWIM激活,SWIM引脚必须保持低电平至少16us 在第一个0脉冲后,SWIM检测到一个特定的序列以保证SWIM进入活动状态,SWIM的进入脉冲序列为:4个频率为1kHz的脉冲,然后是4个频为1kHz的脉冲.这些频率检测到才允许SWIM进入。该比率可以很容易地被检测到不管是任何的内部RC震荡频率。进入脉冲序列的波形见图5。注意,这个序列启动和结束时SWIM脚的电平为1。

(即至少有HSI中脉冲序列中的64个脉冲)在进入序列后,SWIM进入SWIM 活动状态,HSI振荡器自动打开。在这段延时之后,SWIM发送一个同步帧给主机,同步帧说明:1个同步帧为128个HSI时钟周期,MCU置SWIM线为0电平,允许调试主机测量RC振荡器。高级调试主机可以重复校准它的时钟来适应MCU内部RC震荡器的频率。SWIM开始通信前,SWIM线必须释放为1电平来保证SWIM已做好通人 准备(至少300ns)。SWIM_SCR写入0xA0: -设置位5,使能整个内存空间和SRST命令可以访问。 -设置位7,屏蔽内部复位源。

释放reset(置为低电平),启动选项字节加载序列。等待1ms后到达稳定状态。一旦选项字节加载且稳定状态时间达到,CPU将进入阶段8:- STM8S 将暂停,HSI=16Mhz(见STM8S数据表中的%精确性)

- SWIM时钟为HSI/2 = 8Mhz

- SWIM激活为低速位格式(见Section 3.3.2)

Doc ID 14024 Rev 211/37

3.3 Bit format The bit format is a Return-To-Zero format, which allows synchronization of every bit.Two communication speeds are available. At SWIM activation, the low speed is selected.

The high speed is selected by setting the HS bit in the SWIM_CSR register with the SWIM protocol.

When entering SWIM mode during the RESET phase, it is possible that the option bytes have not yet been loaded from non volatile memory to their respective registers.Option byte loading is triggered by any internal or external reset.

In order to ensure proper system behavior, the HS bit should not be set until the option byte loading is finished. At the end of the option byte loading, the HSIT bit in the SWIM_CSR is set by hardware.

3.3.1

High speed bit format 1 bit is generated with ten HSI oscillator pulses.The bit format is:

- 2 pulses at ‘0’ followed by 8 pulses at ‘1’ for ‘1’ value.

- 8 pulses at ‘0’ followed by 2 pulses at ‘1’ for ‘0’ value.

When the SWIM receives a data packet, it will decode:

- ‘1’ when the number of consecutive samples at ‘0’ is less or equal to 4.- ‘0’ when the number of consecutive samples at ‘0’ is greater or equal to 5.

Figure 6.

High speed bit format

<=> ‘1’

<=> ‘0’

位格式

位格式是一种回零格式,它允许任何一位为同步位。两种通信速率。在SWIM激活时,为低速率。使用SWIM协议设置SWIM_CSR寄存器的HS 位,使能高速率。D RESET阶段期间进入SWIM模式时,选项字节可以还没有从内存加载到它们各自的寄存器中。任何内部或外部复位都会触发选项字节的加载。为了保证系统正确动作,HS位必须被置位(设置为1),直到选项字节加载完成。在选项字节加载完成后,SWIM_CSR寄存器的HSIT位将将硬件置位。高速 位格式

10个HSI振荡周期产生1位位格式为:

- 2个0脉冲后接着8个1脉冲代表 1。- 8个1脉冲后接着2个0脉冲代表 1。当SWIM接收到一个数据包之后,它将自动解码:- 当连续采样到的0脉冲的个数小于等于4,则解码为1- 当连续采样到的0脉冲的个数大于等于5,则解码为1

12/37Doc ID 14024 Rev 2

3.3.2

Low speed bit format 1 bit is generated with twenty-two HSI oscillator pulses.

The bit format is:

- 2 pulses at ‘0’ followed by 20 pulses at ‘1’ for ‘1’ value.

- 20 pulses at ‘0’ followed by 2 pulses at ‘1’ for ‘0’ value.

When the SWIM receives a data packet, it will decode:

- ‘1’ when the number of consecutive samples at ‘0’ is less or equal to 8.

- ‘0’ when the number of consecutive samples at ‘0’ is greater or equal to 9.

Figure 7.

Low speed bit format

<=> ‘1’

<=> ‘0’

低速 位格式

22位HSI振荡周期产生1位位格式为:- 2个0脉冲后接着20个1脉冲代表 1。- 20个1脉冲后接着2个0脉冲代表 1。当SWIM接收到一个数据包之后,它将自动解码:- 当连续采样到的0脉冲的个数小于等于8,则解码为1- 当连续采样到的0脉冲的个数大于等于9,则解码为1

Doc ID 14024 Rev 213/37

3.4 SW I

M communication protocol When in ACTIVE mode, communication can be initiated by host or device. Each byte or

command is preceded by a 1-bit header in order to arbitrate if both host and device initiate the communication at the same time.

The host header is ‘0’ in order to have the priority over the device in case of arbitration, due to open-drain capability. The host can start the transfer only if there is no transfer on-going.

Figure 8.

Command format (Host -> Target)

Each command sent by the host is made of:

● 1 command (ROTF , WOTF or SWRST) made of

Header: 1 bit at ‘0’b2-b0: 3-bit command

pb: parity bit: XOR between all b(i)

ack:acknowledge (1 bit at ‘1’). The receiver must send the not-acknowledge value if it has detected a parity error (NACK: not acknowledge = 1 bit at ‘0’), or it is not yet ready.

optionally several data packets (in case of WOTF) made of:Header:1 bit at ‘0’b7-b0: 8-bit

data pb: parity bit sent after data. XOR between all b(i)ack: acknowledge

Figure 9.

Data format (Target -> Host)

Each data frame is made of:

Header: 1 bit at ‘1’b7-b0: 8-bit data

pb: parity bit sent after data

ack: acknowledge

b2

b1

b0

ack Command

pb Data1

b7

b6

b5

b4

b3

b2

b1

b0

pb ack

...

...

Italic : Bit sent by the Host

Bold : Bit sent by the device

b7

b6b5b4b3b2b1b0pb ack

data n

data n+11...

...

data n-1

Italic : Bit sent by the Host Bold : Bit sent by the device

SWIM 通讯协议

在ACTIVE模式下,主机和设备都可以发起通信。每个字节前都加入1个起始位以仲裁主机和设备同时开始通信。主机的起始位为0,使得发生仲裁冲突时,与从机相比主机拥有优先权,由于开漏性能。仅仅没有传输正在进行的时候,设备才可以启动转传输。每一条主机发送的命令的组成如下:1条命令(ROTF,WOTF或者SWRST)组成如下:起始位:0

b2-b0:3位命令pb:奇偶校验位:XOR(所有的位b2-b0异或)ack:应答位(1),检测到奇偶校验出错或者接收没有准备好时,接收者必须发送0应答位的值

可选的若干数据包(在WOTF命令时)组成如下:

起始位:0

b7-b0: 8位数据pb:奇偶校验位:XOR(所有的位b7-b0异或)ack:应答位数据格式(目标到主机)起始位:1b7-b0:数据位pb:校验位,紧随数据位发送ack:应答位

14/37Doc ID 14024 Rev 2

3.5 SW I M commands

The Host can send a command when the line is idle or after each data byte from device. After sending the command, the host releases the line. When the SWIM is ready to answer to the command, it initiates the transfer. If a new command from the host occurs while a command is pending in SWIM, the pending command is cancelled and the new command is decoded, except in case of WOTF .

Three commands are available. They are listed in Table 1.

3.5.1 SRST: system reset

Format: 1 command from Host to Target

Parameters:

None.

SRST command generates a system reset only if SWIM_CSR/SWIM_DM bit is set.

3.5.2 ROTF: read on the fly

Format: 1 command followed by the number of bytes to be read followed by the address on three bytes.

Parameters:

N The 8 bits are the number of bytes to read (from 1 to 255)

@E/H/L:This is the 24-bit address to be accessed.D[...]: These are the data bytes read from the memory space

If the host sends a NACK to a data byte, the device will send the same byte again.If SWIM_DM bit is cleared, ROTF can only be done on SWIM internal registers.

Table 1.

SWIM command summary

Command Binary Code

SRST 000ROTF 001WOTF

010Reserved for future use

011

1xx

SRST

ROTF

N

@E

@H

@L

D[@]

D[@+N]

SWIM 命令字当总线空闲或者设备发送完所有数据时,主机可以发送命令字。发送完命令字后,主要将释放总线。当SWIM准备好响应命令时,它会初始化传输。当S WIM中有一条命令预备好时,如果此时接收到主机一条新的命令,则预备好的命令将被取消,而解码新的命令,除非是WOTF命令。

有三条命令可用,如表1所示。SRST:系统复位格式:从主机到到目标参数:无SRST命令仅仅在SWIM_CSR的SWIM_DM位被置位时才会产生系统复位。ROTF:读命令格式:读命令+需要读取的字节数+三个字节的地址参数:N 8位(1个字节)为需要读取的字节的个数(1-255)@E/H/L 这三个字节代表读取数据的内存的首地址D[....]: 这是从内存空间中读出来的数据如果主机在收到一个字节后发送一个NACK,设备将重新发送这个字节。

如果SWIM_DM位被清零,ROTF将仅仅在SWIM内部寄存器上完成。

Doc ID 14024 Rev 215/37

3.5.3 WOTF: write on the fly

1 command followed by the number of bytes to be written followed by the address on three bytes.

Parameters:

N The 8 bits are the number of bytes to write (from 1 to 255)

@E/H/L:This is the 24-bit address to be accessed.D[...]: These are the data bytes to write in the memory space If a byte D [i] has not been written when the following byte D [i+1] arrives, D [i+1] will be followed by a NACK. In this case the Host must send D [i+1] again until it is acknowledged. For the last byte, if it is not yet written when a new command occurs, the new command will receive a NACK and will not be taken into account.

If SWIM_DM bit is cleared, WOTF can only be done on SWIM internal registers.

3.6 SW I

M communication reset In case of a problem during communication, the host can reset the communication and the on-going command by sending 128 x HSI clock periods low on the SWIM pin. If the SWIM logic detects that the SWIM pin is low for more than 64 x HSI clock periods, it will reset the communication state machine and will switch the SWIM to low-speed mode

(SWIM_CSR.HS <- 0). This is to allow for variation in the frequency of the internal RC oscillator.

In response to this communication reset, SWIM will send the synchronization frame which is 128x HSI oscillator periods low on DBG pin.

WOTF

N

@E

@H

@L

D[@]

D[@+N]

WOTF:写命令格式:读命令+需要写入的字节数+三个字节的地址N 8位(1个字节)为需要写入的字节的个数(1-255)@E/H/L 这三个字节代表写入数据的内存的首地址D[....]: 这是要写入内存空间中的数据

如果D[i]还没有被写入而其后的D[i+1]已到达,D[i+1]将被回复一个NACK。在这个 情况下,主机将重新发送D[i+1]直到收到应答。

如果最后一个字节还没有被写入,而又收到新的命令,则对新的命令将回得一个NACK,且不执行新的命令。如果SWIM_DM位被清零,ROTF将仅仅在SWIM内部寄存器上完成。SWIM通信复位在通信异常发生时,主机可以通过在SWIM管脚上发送128个HSI时钟周期的低电平来复位这次通信和正在发送的命令。如果SWIM逻辑检测到SWIM管脚上持续64个HSI时钟周期的低电平,SWIM将复位通信,并且切换到低速模式。由于内部RC振荡器可以分频才得以实现。SWIM响应了通信复位之后,将发送同步帧(DBG管脚的128个HSI时钟周期的低电平)

16/37Doc ID 14024 Rev 2

3.7 CPU register access

The CPU registers are mapped in the STM8 memory, and they can be read or written directly using the ROTF and WOTF SWIM commands. Write operations to the CPU registers are committed only when the CPU is stalled.

To flush the instruction decode phase, you must set the FLUSH bit in the DM control/status register 2 (DM_CSR2) after writing a new value in the Program Counter (PCE, PCH, PCL).

3.8 SW I

M communication in Halt mode

To maintain the communication link with the debug host, the HSI oscillator remains on when the MCU enters Halt mode. This means that halt mode power consumption measurements have no meaning when the SWIM is active.

The NO_ACCESS bit in the SWIM_CSR register is set when the system is in HALT, WFI or readout protection mode. This means the bus is not accessible in this case.The OSCOFF bit in the SWIM_CSR register is used to switch off the oscillator. In this case, debug control is lost as long as the device is in Halt mode and the SWIM pin is high. The only way to recover the debug control is to induce a falling edge on SWIM pin: this will re-enable the HSI oscillator.

Table 2.

CPU register memory mapping in STM8

CPU register

Memory location

A

7F00h PCE 7F01h PCH 7F02h PCL 7F03h XH 7F04h XL 7F05h YH 7F06h YL 7F07h SPH 7F08h SPL 7F09h CC

7F0Ah

CPU寄存器访问CPU寄存器映射到STM8的内存中,它们通过SWIM的ROTF和WOTF命令被正确的读写。只有CPU暂停时,对CPU寄存器的写操作才会有效和可靠。在刷新解码指令阶段中,你必须在对PC(程序计数器)写入新的值后设置DM_CSR2寄存器的FLUSH位。CPU寄存器内存映射在Halt模式下的SWIM通信为了维持与调试主机的通信连接,HSI振荡器将保持振荡直到MCU进入Halt模式。这意味着当SWIM激活时,对Halt模式下功耗的测量将没有意义。系统在HALT、WFI或者写保护模式状态下时,SWIM_CSR寄存器的NO_ACCESS位将被置位。这意味着此时总线将无法访问。

SWIM_CSR的OSCOFF位用来关闭振荡器。在这个情况下,只要设备处于HALT模式,SWIM 管脚为高电平,则无法进行调试。恢复调试控制唯一的方法是SWIM管脚上捕获到下降沿:这个使得HSI振荡器重新起振。

Doc ID 14024 Rev 217/37

3.9 Physical layer

During the communication, the SWIM pin will be in pseudo-open drain configuration. The SWIM pin in the device is capable of sinking 8 mA when it drives the line to 0. The external pull-up on the SWIM line should be sized in such a way that the maximum rise time t r of the SWIM line should be less than 1 sampling period of the bit (which is 100 ns +/- 4 %).

Figure 10.Timings on SWIM pin

Table 3.

SWIM pin characteristics

Parameter

Symbol

Generic formula Timings for HSI = 10 MHz

LSI = 32 to 64 kHz Min

Max Fall time on SWIM pin t f TBD 50 ns Rise time on SWIM pin t r TBD 96 ns

Inter-bit time (The time which SWIM pin stays high between 2 bits)t ib

TBD

>0

Inter-frame time

(Time between end of a frame and the next one)

t if

TBD 0Low time for a bit at 0

High speed: t b0TBD 768 ns 832 ns Low speed: t b0TBD 1.6 μs 2.4 μs Low time for a bit at 1(High Speed)

High speed: Tb1TBD 192 ns 208 ns Low speed: Tb1

TBD 150 ns

250 ns Injected current on SWIM pin

TBD

8 mA

t f

t r

t ib

SWIM pin

t b0/t b1

物理层在通信期间,SWIM管脚将处于伪开漏模式,设备的SWIM管脚低电平有8mA的灌电流能力。SWIM管脚的外部上拉必须满足,SWIM管脚电平最大上升时间tr必须小于1个数据位的采样周期(100ns +/-4%)SWIM管脚下降时间SWIM管脚上升时间跨位时间

(两个位之间SWIM 保持高电平时间)

跨帧时间 (一个帧结束与另一帧开始间隔时间)位0的低电平时间

位1的低电平时间 (高速)SWIM管脚灌电流

3.10 STM8 SWIM registers

3.10.1 SWIM control status register (SWIM_CSR)

Address: 7F80h

Reset value: 00h

This register is reset only by a power on reset or by SWIM SRST command if the RST bit =1

in the SWIM_CSR register.

76543210

SA F E_MASK NO_ACCESS SWIM_DM HS OSCO

F F

RST HSIT PRI

rw r rw rw rw rw r rw

Bit 7

SAFE_MASK: Mask internal RESET sources

This bit can be read or written through SWIM only. It cannot be accessed through the

STM8 bus. It includes the Watchdog reset.

0: Internal Reset sources are not masked

1: Internal reset sources are masked

Bit 6

NO_ACCESS: Bus not accessible

This bit can be read through SWIM only, to determine the bus is accessible or not. It

is set automatically if the device is in HALT, WFI or readout protection mode.

0: Bus is accessible

1: Bus is not accessible

Caution: Depending on the SWIM revision,in some devices, the NO_ACCESS bit

indicates only that the device is in HALT mode.

Bit 5

SWIM_DM: SWIM for Debug Module

This bit can be read or written to 1 through SWIM only. It cannot be accessed

through the STM8 bus.

0: The SWIM can access only SWIM_CSR register. SWIM reset command has no

effect

1: The whole memory range can be accessed with ROTF and WOTF commands.

The SRST command generates a Reset

Bit 4

HS: High Speed

This bit can be read or written through SWIM only. It cannot be accessed through

STM8 bus.

0: Low speed bit format

1: High speed bit format

The speed change occurs when the communication is IDLE. It is reset by the SWIM

communication reset condition as described in Section3.6.

Bit 3

OSCOFF: Oscillators Off control bit

This bit can be read or written through SWIM only. It cannot be accessed through

STM8 bus.

0: HSI oscillator remains ON in halt mode

1: HSI oscillator is not requested ON in Halt mode

STM8 SWIM寄存器

SWIM控制状态寄存器(SWIM_CSR)

地址:7F80H

复位值:00H

这个寄存器只有,在上电复位或者SWIM_CSR寄存器的RST位为1时执行SWIM的SRST命令

时,才会复位。

屏蔽内部RESET(复位源)

安全屏蔽位只能通过SWIM读写。不可以通过STM8总线访问。它屏蔽了包括

看门狗复位的复位源。

0:内部复位源没有被屏蔽

1:内部复位源被屏蔽

这个位只能通过SWIM访问,它决定了总线是否可以访问。当设备处于

HALT、WFI或者写保护模式中时,它将自动被置位。

0:总线可以访问

1:总线不可以访问

总线不可访问

调试模块的SWIM

这个位仅能通过SWIM读取或者置位。它不能通过STM8总线访问。

0:SWIM只可以访问SWIM_CSW寄存器。SWIM复位命令不生效。

1:整个内存空间都可以被ROTF和WOTF命令访问。SRST命令产生一个复

位。

高速

这个位只能通过SWIM读写。不可以通过STM8总线访问。

0:低速位格式

1:高速位格式

通信空闲时速率变化才会生效。3.6所描述的通信复位时,这个位也会被复位

振荡器关闭控制位

这个位只能通过SWIM读写。不可以通过STM8总线访问。

0:在HALT模式下,HSI振荡器保持打开

1:在HALT模式下,HSI振荡器不打开

18/37Doc ID 14024 Rev 2

Doc ID 14024 Rev 219/37

3.10.2

SWIM clock control register (CLK_SWIMCCR)Address Offset: 50CDh (product dependent)

Reset value: xxxx 0000 (x0h)

Bit 2

RST : SWIM Reset Control Bit This bit can be read or written through SWIM only. It cannot be accessed through STM8 bus.0: SWIM is not reset when a SRST command occurs.1: SWIM is reset when a SRST command occurs. SWIM will re-enter OFF mode.Bit 1

HSIT : High Speed Internal Clock is trimmed This bit is read only through SWIM only. It cannot be accessed through STM8 bus. It is set when the HSIT bit is set in the core configuration register and reset by an external reset.0: High Speed Internal Clock is not trimmed, SWIM must remain in low speed mode.1: High Speed Internal Clock is trimmed, SWIM high speed mode is allowed.

Bit 0

PRI : SWIM access priority

This bit can be read or written through SWIM only. Usually the SWIM accesses to system resources are non-intrusive, SWIM having the lowest priority. This can be overridden by setting this bit. 0: Non-intrusive access by SWIM to system resources (low priority)1: Intrusive access by SWIM to system resources (SWIM has priority, CPU is stalled). Note: The IOM bit is located in the STM8 core configuration register. Refer to the corresponding datasheet for information on this register

76543210Reserved

SWIMCLK

rw

Bits 7:1

Reserved, must be kept cleared.

Bit 0

SWIMCLK SWIM clock divider

This bit is set and cleared by software.0: SWIM clock divided by 21: SWIM clock not divided by 2

Note: this register is not present in some STM8 devices.

SWIM复位控制位

这个位只能通过SWIM读写。不可以通过STM8总线访问。 0:当收到SRST命令时,SWIM不复位

1:当收到SRST命令时,SWIM复位。SWIM将再次进入OFF模式

高速内部时钟被修正

这个位只能通过SWIM读写。不可以通过STM8总线访问。内核寄存器的HSIT 位被置位时它也会被 置位,外部复位时,它也将复位。 0:高速内部钟没有被修正,SWIM必须保持在低速模式下。

1:高速内部时钟被修正,SWIM允许进入高速模式。

SWIM访问优先级这个位只能通过SWIM读写。通常SWIM访问系统资源是非介入式的,SWIM 只有最低的优先权。设置这个位后,这一点将被忽视。 0:SWIM以非介入式方式访问系统资源(低优先权)

1:SWIM以介入式方式访问系统资源(SWIM享有优先权,CPU将被挂起) 注意:IOM位位于STM8的内核配置寄存器。关于此寄存器的信息请参考相关的DATASHEET

SWIM 时钟控制寄存器(CLK_SWIMCCR)位置偏移:50CDH(决定于产品)复位值:xxxx 0000(x0h)保留,必须保持0SWIM时钟分频器这个位可被软件置位和清除 0:SWIM时钟二分频 1:SWIM时钟非二分频 注意:有些STM8中没有这个寄存器

关于一些MATLAB用法和器件名称的中英文翻译

MATLAB - The Language Of Technical Computing MATLAB is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C++, and Fortran. You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology. Add-on toolboxes (collections of special-purpose MATLAB functions, available separately) extend the MATLAB environment to solve particular classes of problems in these application areas. MATLAB provides a number of features for documenting and sharing your work. You can integrate your MATLAB code with other languages and applications, and distribute your MATLAB algorithms and applications. MATLAB has key featuers as follows:(1)High-level language for technical computing (2)Development environment for managing code, files, and data(3)Interactive tools for iterative exploration, design, and problem solving 4)Mathematical functions for linear algebra, statistics, Fourier analysis, filtering, optimization, and numerical integration (5)2-D and 3-D graphics functions for visualizing data (6)Tools for building custom graphical user interfaces (7)Functions for integrating MATLAB based algorithms with external applications and languages, such as C, C++, Fortran, Java, COM, and Microsoft Excel The MATLAB language supports the vector and matrix operations that are fundamental to engineering and scientific problems. It enables fast development and execution. With the MATLAB language, you can program and develop algorithms faster than with traditional languages because you do not need to perform low-level administrative tasks, such as declaring variables, specifying data types, and allocating memory. In many cases, MATLAB eliminates the nee d for ‘for’ loops. As a result, one line of MATLAB code can often replace several lines of C or C++ code. At the same time, MATLAB provides all the features of a traditional programming language, including arithmetic operators, flow control, data structures, data types, object-oriented programming (OOP), and debugging features. MATLAB lets you execute commands or groups of commands one at a time, without compiling and linking, enabling you to quickly iterate to the optimal solution. For fast execution of heavy matrix and vector computations, MATLAB uses processor-optimized libraries. For general-purpose scalar computations, MATLAB generates machine-code instructions using its JIT (Just-In-Time) compilation technology. This technology, which is available on most platforms, provides execution speeds that rival those of traditional programming languages. MATLAB includes development tools that help you implement your algorithm efficiently. These include the following: MATLAB Editor - Provides standard editing and debugging features, such as setting breakpoints and single stepping. M-Lint Code Checker - Analyzes your code and recommends changes to improve its performance and maintainability. MATLAB Profiler - Records the time spent executing each line of code. Directory Reports- Scan all the files in a directory and report on code efficiency, file differences, file dependencies, and code coverage。 You can use the interactive tool GUIDE (Graphical User Interface Development Environment) to lay out, design, and edit user interfaces. GUIDE lets you include list

译文Tesseral 2-D 用户手册

在PC机上地震和声波场建模程序

Tesseral 2-D 全波建模程序用户手册 目录 1. 概述 (4) 1.1 建模器 (4) 1.2 计算引擎 (4) 1.3 浏览器 (5) 1.7 数据输入/输出 (5) 2. 启动 (5) 3. 用建模器创建模型 (6) 3.1 第一次启动 (6) 3.2 建模器面版 (6) 3.3 建模器菜单和工具条 (7) 3.4 剖面页 (7) 3.6 观测系统页 (12) 3.7 多边形 (15) 3.8 静态物理参数 (18) 3.9 通用菜单条目 (18) 3.10 选项对话框 (19) 3.11 炮点和接收点对象 (21) 3.12 画模型 (22) 3.13 梯度/复合参数分布 (23) 3.14 模型修改 (24) 3.15 修改多边形 (25) 3.16 观看模型 (26) 3.17 图片放大 (28) 3.18 等轴和调整比例尺 (30) 3.19 拖动图片 (30) 3.20 保存模型数据 (30) 3.21 模型硬拷贝 (33) 3.22 彩色色标 (34) 3.23 颜色选项 (34) 3.24 坐标标记 (35) 3.25 “微调位置” 对话框选项 (37)

3.26 震源模式 (37) 3.27 在建模器中运行计算引擎 (39) 3.28 应用主窗口的管理 (40) 3.29 改变主窗口的大小 (41) 3.30 图片重叠 (42) 3.31 下一版本的窗格特征 (43) 4. 全波场模型计算 (45) 4.1 计算对话框 (45) 4.2 报告窗口. (46) 4.3 波场成分 (47) 5. 数据管理约定 (48) 6. 用浏览器分析成果 (50) 6.1 浏览器面板 (50) 6.2 别的标准格式文件 (50) 6.3 浏览器窗口菜单和工具条 (50) 6.4 “File” 下拉菜单列表 (51) 6.5 “View” 下拉菜单列表: (52) 6.6 图片视觉选项 (53) 6.7 浏览快照 (57) 6.8 在浏览器中对图片处理 (57) 6.9 硬拷贝 (57) 6.10 浏览器“Run” 菜单条目 (57) 6.11 [++下一版] 累加 (57) 6.12 网格转换 (58) 7. 问题解答 (59) 8. 附录A 转换模型到网格格式 (61) 9. 附录B 多分区网格 (61) 10. 附录C 测井曲线文件(.las)输入 (62) 11. 附录D 网格模型计算 (64) 12. 附录E 模型文本文件的输入/输出 (65)

说明书的翻译技巧与翻译原则.

说明书的翻译技巧与翻译原则 说明书(又称使用手册是“介绍物品性能、规格、使用方法的实用应用性文 体”。按其用途可分为家用电器说明书、药品说明书、化妆品说明书、食品类说明 书、机械装备说明书、仪器器械说明书、书籍说明书等。随着我国经济蓬勃发展以 及对外开放步伐日益加快,国内各品牌产品纷纷抢滩国际市场。这一过程中,说明书的翻译扮演了至关重要角色。遗憾的是,广大翻译研究者对说明书的英译似乎认识 不足,说明书的翻译也存在着诸多问题,译文不够精准,译语不够地道等问题时有发生。有鉴于此,通过汉语说明书英译准则研究,希望对说明书翻译实践有所裨益。 一、说明书的文体特征与翻译目标 从遣词造句方面来看,说明书频繁使用祈使句、无人称句,十分讲究逻辑性。从语气上看,说明书的语气通常较为正式,用语严谨规范、客观公允。从修辞角度来说,说明书文风一般比较质朴,避免铺叙婉曲,特别是很少使用不必要的修辞格。不过说 明书与纯粹的科技类文章还是有一定区别的。例如,说明书“较少使用复合性扩展句, 刘宓庆,1998:443,句子结构也简单得多。更为重要的是,为而代之以宽展的简单句”( 了达到吸引消费者的目的,某些说明书(如化妆品说明书有时大量使用华丽语言,富于修辞手段和艺术特色。 由于说明书在产品营销过程中主要起到吸引消费者,激发消费者产生购买欲,指导消费者顺利实现消费行为之功用,因此,译者在翻译说明书时主要不是原封不动地 移植原文信息,而是实现纽马克(2002所说的祈使功能(vocative function,即通过译文的激励,使读者(潜在消费者采取消费行动,进而促使厂商获得所追求的利润。鉴于说 明书的语言特点和翻译目标,我们以为好的说明书译文不仅要准确、客观,还必须保证能为译语读者所接受并激发他们的购买行为。这就意味着译者在翻译说明书时至 少要坚持“忠实、准确”与“可读性”  这两项基本原则。 二、“忠实、准确”原则

(完整版)MATLAB中英文对照

MATLAB7.1中文翻译 MATLAB MATLAB 主程序模块 Simulink 动态仿真模块 Aerospace Blockset 航空模块集 Bioinformatics Toolbox 生物信息学工具箱 CDMA Reference Blockset CDMA 参考模块集 Communications Blockset 通信模块集 Communications Toolbox 通信工具箱 Control System Toolbox 控制系统工具箱 Curve Fitting Toolbox 曲线拟合工具箱 DSP Blockset 数字信号模块集 Data Acquisition Toolbox 数据采集工具箱 Database Toolbox 数据库工具箱 Datafeed Toolbox 数据反馈工具箱 Distributed Computing Toolbox 分布式计算工具箱 Dials and Gauges Blockset 刻度标尺模块集 Embedded Target for Motorola MPC 555 摩托罗拉MPC555 嵌入对象 Embedded Target for the TI C2000 DSP TI C2000 DSP嵌入对象 Embedded Target for TI 6000 DSP TI 6000数字信号处理嵌入对象 Embedded Target for Infineon C166 Microcontrollers Infineon C166 微控制器嵌入对象Embedded Target for Motorola? HC12 Motorola? HC12嵌入对象 Embedded Target for OSEK/VDX? OSEK/VDX?嵌入对象 Excel Link Excel 连接 Extended Symbolic Math 扩展符号数学库 Filter Design Toolbox 滤波器设计工具箱 Filter Design HDL Coder 滤波器设计硬件描述语言编码器 Financial Derivatives Toolbox 金融预测工具箱 Financial Time Series Toolbox 金融时间系列工具箱 Financial Toolbox 金融系统工具箱 Fixed-Income Toolbox 定点收益工具箱 Fixed-Point Blockset 定点模块集 Fuzzy Logic Toolbox 模糊逻辑工具箱 GARCH Toolbox GARCH 工具箱 Genetic Algorithm and Direct Search Toolbox 遗传算法和直接搜寻工具箱Gauges Blockset Gauges模块集 Image Processing Toolbox 图像处理工具箱 Image Acquisition Toolbox 图像调节工具箱 Instrument Control Toolbox 设备控制工具箱 LMI Control Toolbox LMI 控制工具箱 MATLAB Com Builder MATLAB COM 文件编辑器 MATLAB Compiler MATLAB 编译器

cvim用户手册(翻译)

cvim用户手册? Yang Cheng? 2010.8.12 cvim是Vim的一个插件,用于支持C/C++的开发。可以方便的支持插入声明(statements),惯用语法(idioms),代码片段(code snippets),模板(templates)和注释(comments);并且支持语法检查(Syntax checking),编译(compiling)及运行(running)程序,也可以通过按键操作检查和格式化代码。 此插件可同时支持Vim/gVim,但由于gVim中是以菜单(Menus)的形式提供各种功能,故使用起来也很方便,无须多作介绍。下面仅以Vim来做介绍。 1无GUI界面的用法USAGE WITHOUT GUI(Vim) 常见的功能可以通过键盘映射的方式被插入。这些键映射在文档c-hot-keys.pdf1中描述。 如果需要修改映射的头‘\’,可以通过在.vimrc中设置全局变量(global variable)来修改。 let g:C MapLeader=‘,’ 这样就映射的头就是‘,’(comma)了。例如你可以这样用,cl来插入行末的注释。 ?此手册参考VIM的插件cvim的文档写成,该插件是一个C/C++-IDE for Vim/gVim。本文基于版本version5.10。 ?E-mail:ustbyangcheng@https://www.doczj.com/doc/a213650117.html, 1Hint:该pdf中以‘\’开头和后面字符的组合只有在一个short time内才能被识别。在插入模式下这些映射可以以‘`’(backtick)开头(不过经过试验,貌似也不必如此,直接输入也可以,但速度要快。)。读者可以参考该pdf文档,本文下一页就罗列这些key mapping了。 1

英文参考文献翻译完结

基于反馈神经网络肘关节力矩的动态预测 R.Song K.Y.Tong 健康技术与信息学系,香港理工大学 KowIoon,香港

摘要 肌肉模型是身体部分运动分析的一个重要组成部分。尽管许多研究已经集中在静态条件下,但是肌电信号(EMG)和关节转矩在自愿动态情况下之间的关系并没有被很好的研究。本研究的目的是调查的一个反馈人工神经网络的性能(RANN)自愿动态情况下的复杂肘扭矩估计。肌电信号和运动数据,其中包括角度和角速度,被用来作为估计在运动过程中预期的扭矩输入。此外,角度和角速度的预测精度的作用进行了研究,并比较两个模型。一个模型的肌电图和关节运动的投入和其他的模型只使用肌电图无运动数据输入。六例健康体检者,和两个平均角速度(60°S 7和90°S 7)三种不同负荷(0公斤,1公斤,2公斤)在手的位置被选择来训练和测试90°屈肘、全伸肘之间的递归神经网络(0 ~)。训练结束后,根平均平方误差(RMSE)预期的扭矩和扭矩之间的模型预测,在训练数据集的肌电图和关节运动的投入和测试数据集,分别为0.17±0.03 nm和0.35 + 0.06 nm。预期的扭矩和预测模型的RMSE值之间的扭矩,在训练数据集只有肌电输入和测试集,分别为0.57 t - 0.07 nm和0.73 T 0.11 nm。结果表明,肌电信号一起运动的数据提供了更好的性能预测的关节力矩;关节角度和角速度提供了重要信息的关节力矩的估计在自愿的运动。 关键词:肌肉骨骼模型,自愿的运动,反馈人工神经网络,逆动力学模型

第一章绪论 由于希尔提出了1938肌肉的经典论文,神经生理学和神经肌肉骨骼系统的生物力学已被广泛研究,使人体运动生成的原理可以发现(希尔,1938)。 探讨中枢神经系统(CNS)激发肌肉和其后的发展力和产生不同的人体运动,许多模型来描述和定性的肌肉骨骼系统的不同层次的性能(温特斯,1990;扎杰克和温特斯,1990)。一个被普遍接受的山为基础的神经肌肉骨骼系统由以下子模型,一步一步:肌肉兴奋-收缩模型;肌腱骨骼模型;动态模型(扎耶克,1989)。 图1 肌肉骨骼模型框图 图1显示了基于hillbased模型的运动生成。图1,肌肉兴奋收缩模型是用来估计中枢神经系统指挥肌肉活动的状态。肌腱模型产生的肌肉力量不仅基于肌肉激活状态,而且基于肌腱式长度和肌腱式收缩速度,这与关节角速度和角速度(温特斯和斯塔克,1988)。前项状态的肌肉力量,它决定了肌腱的依从性,还负责肌肉力在后一阶段(扎耶克,1989)。一旦所有负责的关节运动的肌肉力量已经发现,肌肉的力量与各自的肌肉力臂和的结果求和乘法可以产生关节力矩。所有子模型的数学积分可以用来描述关节运动是中枢神经系统的命令产生哪些参数斧负责关节力矩。 肌电信号反映肌肉的活动,和许多类似的肌电力矩的关系已经在静态和动态情况的研究(张等人,1997;麦森纳和莫润,1995)。肌肉的肌电信号也常被认

HRPWM用户手册(工具软件翻译)

TMS320x280x, 2801x, 2804x High Resolution Pulse Width Modulator (HRPWM) 用户手册 HRPWM手册部分翻译(软件翻译),辅助阅读原资料。 前言---5 1 介绍7 2 HPWM的操作描述9 2.1控制HRPWM性能10 2.2配置HRPWM 11 2.3HRPWM原理12 2.4比例因子优化软件(sfo)18 2.5HRPWM示例使用优化的汇编代码23 3. HRPWM寄存器说明29 3.1寄存器概要29 3.2寄存器和字段描述30 附录A SFO Library Software - SFO_TI_Build_V5.lib 33 A.1 SFO库版本比较33 A.2 软件用法36 附录B 修订历史41 前言: 关于本手册 本文档描述了操作的高分辨率扩展脉宽调制器 (HRPWM)。 HRPWM模块的描述是一种参考指南HRPWM 0。看到 TMS320x28xx,28 xxx DSP外围参考指南(SPRU566)列表中的所有设备和一个 HRPWM模块相同的类型,来确定类型,以及之间的差异为一个列表 特定于设备的差异在一个类型。

这个文档是结合使用特定于设备的增强脉宽调制器(ePWM)模块参考指南。 这个HRPWM模块扩展了时间分辨能力的传统派生数字脉冲宽度调制器(PWM)。HRPWM通常用在当PWM分辨率低于~ 9 - 10位。这发生在PWM频率大于~ 200千赫当使用一个CPU /系统时钟的100 MHz。 关键HRPWM的特点是: ?长时间分辨能力 ?用于工作周期和移相控制方法细粒度控制或 ?时间边缘定位使用扩展比较和阶段寄存器使用一个信号 ?实现PWM的道路,也就是说,在EPWMxA输出。EPWMxB产量传统PWM功能 ?自检诊断软件模式来检查微边缘定位器(MEP)逻辑是跑步最佳 介绍 ePWM的外围是用来执行一个函数,它在数学上是等价的,一个数模转换转换器(DAC)。如图1所示,TSYSCLKOUT = 10纳秒(即100 MHz时钟),有效分辨率为常规生成PWM是一个函数的PWM频率(或时间)和系统时钟频率。 设SYSCLKOUT=100MHZ TPWM=100KHZ 100K/100M*100%=0.1% 如果所需的PWM操作频率不提供足够的决议在PWM方式,您可能想要考虑HRPWM。作为一个例子,HRPWM提供改进的性能,表1显示了决议在比特数各种PWM频率。这些值假设一个100 MHz SYSCLK频率和一个MEP步骤大小为180 ps。看到特定于设备的数据表为典型的和最大的性能规范为MEP。

产品说明书翻译(共1篇)

篇一:产品说明书的翻译 产品说明书的翻译 说明书主要是用来说明产品的性能、特点、用途、配方及使用方法等,服务对象是普通消费者,所以语言浅显确切,简单明了,讲究科学性和逻辑性。它的作用旨在指导使用,所以翻译时要一丝不苟,不能有少出入。由于商品中种类、性质不同,说明的方法。内容也就不同。所以在翻译时要针对不同的具体要求,努力使译文所选用词准确明了,行文简洁流畅。一般来说,日用品说明书在说明产品性能、特点、用途等方面时,往往追求生动活泼,充满溢美之词,旨在激发人们购买、使用产品的欲望。而药品说明书通常包含成分、主治、用法说明、注意事项、禁忌以及副作用等部分。翻译时要读懂原文中的专用名词,然后才能准确用词,避免出错。机械设备说明书通常包括商品特点、用途、规格、性能、结构、操作程序以及注意事项等,语言简单明了。 【例1】 娃哈哈儿童营养液 娃哈哈儿童营养液是由我厂和浙江医科大学医学营养系共同开发的,含有人体所需的氨基酸、维生素、微量元素等多种营养成分,尤其是对儿童生长发育所缺的钙、铁、锌作了补充,通过国家级新产品鉴定,在国内同类产品中处于领先地位。 配料:蜂蜜、山楂、红枣、枸杞、莲子、米仁、桂圆、核桃等。 成分:每100毫升含量,蛋白质1.5%以上,钙250-300毫克,铁12.5-20毫克,锌12.5-20 毫克。 净含量:每支10毫克,每盒10只,计100毫升。 储藏:本品宜存于阴凉处。保质期一年,保存期一年半。 食用方法:早晚食用,每次1-2支。 批准文号:浙卫食准字(89)第0004-35号 标准代号:q/wjb0201-89 杭州娃哈哈营养食品厂出品,浙江医科大学医学营养系监制。 【译文】 wahaha, a children’s nourishing liquid is co-developed by hangzhou wahaha nutritious food product factory and the dept. of medical nutrition of zhejiang medical university. the liquid contains rich amino acids, vitamins and particularly supplies children with ca and trace elements such as fe and zn essential to healthy growth. it occupies the leading position in the development of nourishing products and has passed the nation-level evaluation of newly-developed products. ingredients: honey, hawthorn, jujube, lycium, chinese lotus seed, barley, longan, walnut, etc. nutrients: per 100ml: protein over 1.5%, ca 250-300 mg, fe 12.5-20 mg, zn 12.5-20 mg. contents: 10 ampoules per case, 10 ml per ample, total 100 ml. storage: to be kept in a cool place. quality guarantee for one year and storage period one and a half year. dosage: 1-2 ampoules a day in the morning and evening. sanction no.: zhejiang food hygiene permit (89)0004-35 standard code: q/wjb 0201-89 manufactured by: hangzhou wahaha nutritious food product factory

Matlab中SIMULINK的模块库以及比较常用的模块复习课程

Matlab中SIMULINK的模块库以及比较常用的模块 2009年04月18日星期六 13:41 SIMULINK的模块库介绍 SIMILINK模块库按功能进行分为以下8类子库: Continuous(连续模块) Discrete(离散模块) Function&Tables(函数和平台模块) Math(数学模块) Nonlinear(非线性模块) Signals&Systems(信号和系统模块) Sinks(接收器模块) Sources(输入源模块) 连续模块(Continuous)continuous.mdl Integrator:输入信号积分 Derivative:输入信号微分 State-Space:线性状态空间系统模型 Transfer-Fcn:线性传递函数模型 Zero-Pole:以零极点表示的传递函数模型 Memory:存储上一时刻的状态值 Transport Delay:输入信号延时一个固定时间再输出 Variable Transport Delay:输入信号延时一个可变时间再输出 离散模块(Discrete) discrete.mdl Discrete-time Integrator:离散时间积分器 Discrete Filter:IIR与FIR滤波器 Discrete State-Space:离散状态空间系统模型 Discrete Transfer-Fcn:离散传递函数模型 Discrete Zero-Pole:以零极点表示的离散传递函数模型 First-Order Hold:一阶采样和保持器 Zero-Order Hold:零阶采样和保持器 Unit Delay:一个采样周期的延时 函数和平台模块(Function&Tables) function.mdl Fcn:用自定义的函数(表达式)进行运算 MATLAB Fcn:利用matlab的现有函数进行运算 S-Function:调用自编的S函数的程序进行运算 Look-Up Table:建立输入信号的查询表(线性峰值匹配) Look-Up Table(2-D):建立两个输入信号的查询表(线性峰值匹配) 数学模块( Math ) math.mdl Sum:加减运算 Product:乘运算 Dot Product:点乘运算 Gain:比例运算 Math Function:包括指数函数、对数函数、求平方、开根号等常用数学函数

国外MATLAB文献已翻译

河北工业大学 毕业设计(论文)外文资料翻译学院: 系(专业): 姓名: 学号: 外文出处:Pattern Recognition 附件:1.外文资料翻译译文;2.外文 ?附件1:外文资料翻译译文 ?基于没有交集的主成分模型下的模式识别方法 化学计量学研究组,化学研究所,umea大学 摘要:通过独立的主成分建模方法对单独种类进行模式识别,这一方法我们已经进行了深刻的研究,主成分的模型说明了单一种类之内拟合所有的连续变量。所以,假如数据充足的话,主成分模型的方法可以对指定的一组样品中存在的任何模式进行识别,另外,将每一种类中样品通过独立的主成分模型作出拟合,

用这种简单的方式,可以提供有关这些变量作为单一变量的相关性。这些试样中存在着“离群”,而且不同种类间也有“距离”。我们应用经典的Fisher 鸢尾花数据作为例证。 1介绍 对于挖掘和使用经验数据的规律性,已经在像化学和生物这样的学科中成为了首要考虑的因素。在化学上一个经典的例子就是元素周期表。当元素按渐增的原子质量排列时,化学元素特性上的规律以每8个为一个周期的出现。相似的,生物学家也常按照植物和动物形态学上的规律才将其归类。比如,植物的花朵和叶片的形状,动物两臂的长度和宽度以及动物不同的骨骼等等。 数据分析方法(通常叫做模式识别方法),特别的创制用以探知多维数据的规律性。这种方法已在科学的各分支上得到了广泛的应用。模式识别中的经典问题可系统的陈述如下:指定一些种类,每一类都被定义为一套样本,训练集和检验集,还有基于每组样本的M测度值,那么是否有可能基于原M值对新的样本作出分类呢? 我们提出解决这类或相关问题的许多方法,这些方法也由Kanal和另外一些人回顾过了。 在科学的分支中,比如化学和生物中,数据分析的范围往往比仅获得一组未分类数据广泛,通常上,数据分析的目的之一仍然可说是分类,但有时我们不能确定一个样本是否属于一未知的或未辨明的类别,我们希望不仅去辨别已知种类,还有未知种类。还有一点很重要,数据分析方法不能过于强调种类间的区别,由于已使用的异变量的介入考虑,两或多种的区别是很小或不明显的。 第二,如果我们把一个物体按类比的方法看成某一种,我们其实关心的是物体的某种特性在此种类中的类比性,而某些特性又没有。在化学中,类比模型有着理论上和实践上的重要性,而且可以看成是化学模式识别方法的早期应用。 第三,也许是最重要的一点,在化学和生物应用上,我们经常关心某个种类中数据的经验描述,以获取某种的经验模型,这个模型可以被用作解释和说明。比如说,为了构建样本,用已知的合适的特性。 实际上,基于相似种类,亦即同一种类的样本的测度方式是可以得出一般模型的。这些模型可以用来解决问题的一般分类和以及处理上面讨论的其他问题。这些是后来证明本文是基于简单的泰勒展开式的模型推导。由此产生的模型形式是主成分(PC)的模型。只要在数据分析实验过程中一系列连续性假设可以得到满足,主

灵格斯翻译家使用手册

灵格斯翻译家使用手册 安装灵格斯 1、从灵格斯翻译家网站下载软件的安装程序到本机硬盘. 2、双击安装程序, 进行安装. 3、安装过程中, 如果没有特别的需求, 可以一路按“下一步” 直至安装完成. 注意: ?请从官方网站或官方指定的下载网站获取灵格斯的安装程序, 切勿下载来源不明或所谓的绿色版, 以免造成不必要的损失和使用上的种种故障. ?安装前, 请确认已经关闭了其他程序, 特别是防病毒软件和防火墙软件, 以便正常顺利安装. 设置主程序 灵格斯翻译家的主程序已经安装到操作系统中了, 为了更好地使用灵格斯翻译家带来的便利, 我们需要在使用前对主程序进行设置. 首先, 启动灵格斯翻译家, 点击程序界面左侧选项中的“设置”, 激活设置面板.

屏幕取词 点击“翻译” 选项标签, 对鼠标屏幕取词进行设置. ?鼠标取词: 用鼠标将光标移到词上面时, 再加上组合键就可翻译该词. ?鼠标左键取词: 用鼠标将光标移到词上面时, 按下〔鼠标左键+组合键〕就可翻译该词. ?鼠标右键取词: 用鼠标将光标移到词上面时, 按下〔鼠标右键+组合键〕就可翻译该词. ?鼠标中键取词: 用鼠标将光标移到词上面时, 按下〔鼠标中键+组合键〕就可翻译该词. ?延迟: 做以上动作时延迟几毫秒才做翻译动作. ?支持本地语言映射: 选中后, 在简体中文用户界面下, 会自动转换词典中的繁体中文内容为简体; 在繁体中文用户界面下, 则会自动转换词典中的简体中文内容为繁体. (注: 本功能需要配合支持映射功能的词典使用) 常规 接着, 点击“常规” 标签, 对软件的常规项目进行设置.

?选择用于Web 搜索的搜索引擎: 当我们在右上角搜索框内输入文字, 并按下Enter 键时, 会连到互联网搜索引擎. ?保存的查询历史个数: 查询的词语的历史纪录. ?登录至Windows 时, 运行Lingoes: 打勾此项, 则会在开机时启动此程式. ?启动后最小化: 开启此程式的, 会缩到工具列上. 热键

Matlab-Simulink各模块对应的中文名称及介绍

这些图片的窗口是从MA TLAB R2012b里面截图下来的,注释还不够全面。如有出入之处,敬请谅解!

Derivative :微分模块,输出为输入信号的微分。无需设置参数Integrator:积分模块,输出时输入信号的积分,可设定初始条件(比如混沌系统的仿真),通常情况下初始条件不用考虑Memory:输出来自前一个时间步的模块输入 State-Space:状态空间模块,主要应用应用于现代控制理论中多输入多输出系统的仿真,双击模块可设置的主要参数有:系数矩阵A,B,C,D以及初始条件Transfer Fcn:传递函数多项式模型,实现现行传递系统,双击可设置分子多项式和坟墓多项式的系数 Transport Delay:时间延迟模块,通过模块内部参数设定延迟时间 Variable Transport Delay:将输入延迟一可变的时间 Zero-Pole:传递函数零、极点模型,实现一个用零极点标明的传递函数,双击设置零点、极点、增益

Backlash:磁滞回环特性模块 Coulomb & Viscous Friction:库伦摩擦与黏性摩擦特性模块Dead Zone:死区特性模块 Hit Crossing:检测输入信号的零交叉点模块Quantizer:阶梯状量化处理模块Rate Limiter:变化速率限幅模块Relay:带有滞环的继电特性模块Saturation:限幅的饱和特性模块

Discrete Transfer Fcn:离散系统传递函数多项式模型,可设置分子分母多项式 Discrete Zero-Pole:离散系统传递函数零极点模型,可设置零点、极点、增益,可以设置采样时间 Discrete Filter:离散系统滤波器,可设置分子分母系数(按照z-1作升幂排列),可设置采样时间 Discrete State-Space:离散系统状态空间表达式模块,可设置参数矩阵A,B,C,D,可设置采样时间、初始条件 Discrete-Time Integrator:离散系统积分器模块,可设置采样时间、初始条件 Unit Delay:离散系统单位延迟模块,可设置采样时间,初始条件Fist-Order Hol:一阶采样保持器 Memory:存储模块 Zero-Order Hold:零阶采样保持器 Discrete Filter:实现IIR和FIR滤波器 Discrete State-Space:实现一个离散状态空间系统 Discrete-Time Integrator:离散时间积分器 Discrete Transfer Fcn :实现一个离散传递函数 Discrete Zero-Pol:实现一个用零极点来说明的离散传递函数First-Order Hold:实现一个一阶保持采样-保持系统 Unit Delay:将信号延时一个单位采样时间 Zero-Order Hold:实现具有一个采样周期的零阶保持

(完整版)MATLAB外文资料翻译毕业设计论文

大连民族学院毕业设计外文资料翻译 所在学院:机电信息工程学院 专业 (班级):自动化063

学生姓名:徐睿 指导教师:王培昌 2010年6月4日 复杂脊波图像去噪 作者:G. Y. Chen and B. Kegl刊名:Pattern Recognition;出版日期:2007 1.介绍 小波变换已成功地应用于许多科学领域,如图像压缩,图像去噪,信号处理,计算机图形,IC和模式识别,仅举几例。Donoho和他的同事们提出了小波阈值去噪通过软阈值和阈值.这种方法的出现对于大量的应用程序是一个好的选择。这是因为一个小波变换能结合的能量,在一小部分的大型系数和大多数的小波系数中非常小,这样他们可以设置为零。这个阈值的小波系数是可以做到的只有细节的小波分解子带。我们有一些低频波子带不能碰触,让他们不阈值。众所周知,Donoho提出的方法的优势是光滑和自适应。然而,Coifman和Donoho指出,这种算法展示出一个视觉产出:吉布斯现象在邻近的间断。因此,他们提出对这些产出去噪通过平均抑制所有循环信号。实验结果证实单目标识别小波消噪优于没有目标识别的情况。Bui和Chen扩展了这个目标识别计划,他们发现多小波的目标

识别去噪的结果比单小波去噪的结果要好。蔡和西尔弗曼提出了一种阈值方案通过采取相邻的系数。他们结果表现出的优势超于了传统的一对一小波消燥。Chen和Bui扩展这个相邻小波阈值为多小波方法。他们声称对于某些标准测试信号和真实图像相邻的多小波降噪优于相邻的单一小波去噪。陈等人提出一种图像去噪是考虑方形相邻的小波域。陈等人也尝试对图像去噪自定义小波域和阈值。实验结果表明:这两种方法产生更好的去噪效果。 研究脊波变换的数多年来打破了小波变换的局限性。将小波变换产生的二维图像在每个规模大的小波系数的分解。有这么多的大系数,对于图像去噪有很多困难。我们知道脊波变换已经成功用于分析数字图像。不像小波变换,脊波变换过程首先计算积分在不同的方向和位置的数据。沿着“x1cos_ + x2sin_ = 常数”一条线的脊波是不变的。在这些脊的方向正交小波变换是一。最近脊波已成功应用于图像去噪。在本文中,我们结合二元树复小波的脊波变换中并将其应用到图像降噪。这种近似二元树性能的复杂变性小波和良好性能的脊波使我们有更好的方法去图像去噪。实验结果表明,采用二元树复杂脊波在所有去噪图像和许多不同噪音中我们的算法获得较高的峰值信噪比(PSNR)。 这篇文章大体是这样的。在第二部分,我们将解释如何将二元树复杂的波变换成脊波去图像去噪。实验结果在第3节。第4节是最后得出的结论和未来需要做的工作。 2.用复杂脊波图像去噪 离散脊波变换提供接近理想的稀松代表光滑的物体边缘。高斯去噪是一个接近最优的方法。脊波变换能够压缩图像能量成为少量的脊波系数。在另一方面,利用小波变换产生的多大的小波系数对每个尺度边缘二维小

hec-ras中文翻译手册

美国陆军工程兵团 水文工程中心 HEC-RAS 河流分析系统 用户手册 V3.1 2002.11 公开提供。无限制分发。 CPD-68

HEC-RAS 河流分析系统 用户手册 V3.1 2002.11 美国陆军工程兵团 水文工程中心 水资源研究所 609 Second Street Davis, CA 95616 电话:(530)756-1104 传真:(530)756-8250 https://www.doczj.com/doc/a213650117.html,

河流分析系统,HEC-RAS 软件分发和获得方式 HEC-RAS软件的可执行代码和可执行文件是公开的,软件由美国工程兵团水文工程中心开发。软件由美国联邦政府资助开发,是公开的。软件可以从我们的网站(https://www.doczj.com/doc/a213650117.html,)免费下载。水文工程中心(HEC)对软件的非兵团用户不提供技术支持。(在我们的网站上)查看出售方列表,查找提供程序以及文件和付费提供技术支持的组织。但是,我们会对全部程序错误的文本建议做出回复。文件错误是指由于程序错误引起的软件缺陷而不是用户输入数据错误引起的模型问题。 封面草图改编自: 加利福尼亚州 水资源部 政府工作人员手册,洪泛平原管理规划 1986年8月

目录 目录 前页 (ⅸ) 第1章介绍……………………………………………………………1-1 模型系统的基本原理………………………………………………………………1-2 程序功能的概述……………………………………………………………………1-2 用户界面……………………………………………………………………1-2 水力分析模块………………………………………………………………1-3 数据存储和管理……………………………………………………………1-4 图形和报告…………………………………………………………………1-4 HEC-RAS文件………………………………………………………………………1-5 本手册概述…………………………………………………………………………1-5 第2章安装HEC-RAS软件……………………………………………2-1 硬件和软件要求……………………………………………………………………2-2 安装程序……………………………………………………………………………2-2 卸载软件……………………………………………………………………………2-3 第3章 HEC-RAS概述…………………………………………………3-1 启动HEC-RAS………………………………………………………………………3-2 用HEC-RAS建立水力模型的步骤…………………………………………………3-6 启动新工程…………………………………………………………………3-6 输入图形数据………………………………………………………………3-7 输入流量数据和边界条件…………………………………………………3-9 进行水力计算……………………………………………………………3-10 查看和打印结果…………………………………………………………3-12 导入HEC-2数据…………………………………………………………………3-16 首先应该知道的事项……………………………………………………3-16 导入HEC-2数据的步骤……………………………………………………3-19 再现HEC-2结果…………………………………………………………………3-20 获取和使用帮助…………………………………………………………………3-22 第4章应用实例………………………………………………………4-1 启动新建工程………………………………………………………………………4-2 输入图形数据………………………………………………………………………4-3 绘制河流水系图……………………………………………………………4-3 输入断面数据………………………………………………………………4-4 输入节点数据………………………………………………………………4-9 保存图形数据……………………………………………………………4-10 输入恒定流数据…………………………………………………………………4-10 进行水力计算……………………………………………………………………4-13 查看结果…………………………………………………………………………4-14 打印图形和表格…………………………………………………………………4-20 打印图形…………………………………………………………………4-20 复制图形到Windows粘贴板……………………………………………4-20 打印表格…………………………………………………………………4-21 粘贴板保存表格…………………………………………………………4-21 退出程序…………………………………………………………………………4-22 iii

相关主题
文本预览
相关文档 最新文档