Microsoft PowerPoint - 701_PIC-CHN_Attendee.ppt

Size: px
Start display at page:

Download "Microsoft PowerPoint - 701_PIC-CHN_Attendee.ppt"

Transcription

1 701 PIC PICmicro MCU 介绍 PIC16 系列产品的汇编编程 HANDS-ON

2 日程 讲述部分 讲述 90 分钟 休息 20 分钟 实验部分 1 2 个实验 60 分钟 休息 60 分钟 实验部分 个实验 2 小时 休息 20 分钟

3 讲述部分的内容 架构 存储器 指令集 开发软件 (MPLAB IDE)

4 实验和演示部分的内容 Labs 在 MPLAB IDE 创建项目 调试和跳转控制 PWM A/D 中断 演示 ( 时间允许的话 ) PIC16F877A 实现多任务

5 架构

6 Microchip PIC MCU 金字塔 16 bit MCU dspic 24 bits 数据存储器宽度 PIC18 16 bits 程序存储器宽度 8 bit MCU PIC16 PIC12F 14 bits PIC16C5X PIC12C5XX 12 bits

7 PICmicro Architecture RISC-like Features PIC 单片机之所以有很高的性能是因为其具备如下特性 : 内部为哈佛结构 寄存器文档 大多数单指令周期 指令流水线操作 长字型指令 指令数很少 指令实现的功能基本不重复

8 PIC 单片机架构 哈佛结构 冯 - 纽曼结构 CPU 哈佛结构 8- 位 CPU 12/14/16- 位程序存储器 程序和数据存储器 8- 位数据存储器 从同一存储器空间取指令和取操作数据. 限制了数据流量 从两个独立的存储空间分别取指令和存取操作数. 数据流量增加针对程序区和数据区可以设计不同的数据线宽度

9 PIC 单片机架构 指令流水线 大部分单片机, 其取指和执行过程是顺序进行的. 指令流水线的引入允许取指和执行可以同步进行. 使得指令可以在一个指令周期内执行. 程序分支例外 ( 如 GOTO, CALL 或直接修改 PC), 这需两个指令周期. Tcy0 Tcy1 Tcy2 Tcy3 Tcy4 1. MOVLW 55h Fetch 1 2. MOVWF PORTB 3. CALL SUB_1 4. BSF PORTA, BIT3 Execute 1 Fetch 2 Execute 2 Fetch 3 Execute 3 Fetch 4 Flush Fetch 4 Fetch SUB_1

10 ALU W Register 数据存储器 PIC 单片机架构 INDF TMR0 PCL STATUS FSR PORTA Other SFRs 寄存器文档概念 RAM 被看作是一组通用的寄存器. 周边模块 (I/O) 也作为寄存器. 所有的指令操作都可针对所有的寄存器. 长字指令使得在指令中直接寻址寄存器. 14- 位字长的指令范例 : 操作码 <7> General Purpose Registers (RAM) 直接数据地址 <7>

11 PICmicro 架构 指令实例 PIC MCU 指令编码为操作码和参数 编码用一个字完成 立即数类指令 OP CODE k k k k k k k k

12 PIC MCU 晶振 指令率是输入时钟的 1/4 输入晶振频率叫做 f osc f osc 4 MHz (250 ns) PIC MCU T cy 一个指令周期占用 1 T cy 1 MHz (1 us)

13 存储器

14 两种类型 程序 (RAM 和 EEPROM) 组成 Pages - 页 ( 程序存储器 ) Banks 组 ( 数据存储器 ) PICmicro 架构 存储器

15 PICmicro 架构 存储器表 PICmicro MCU FLASH 程序存储器 大小 (words) RAM 数据存储器 GPR 大小 (bytes) PIC12F675 1 K 64 PIC16F877A 8 K 368

16 分页的程序存储器 (14bit 核 ) CALL or GOTO instruction OP CODE k k k k k k k k k k k 3 bits for instruction 11 bits for destination 在 14-bit 核的器件中 : 11 位访问 2 或 2048 (2k) 空间 访问更多的空间, 需要更多的位 程序存储器的分页提供这些位

17 14-bit 核架构 程序存储器 CLATH<4:3> = 00 Reset Interrupt Page 0 CLATH<4:3> = h 0004h 07FFh 0800h PCLATH<4:3> = 10 Page 2 PCLATH<4:3> = h 17FFh 1800h 程序存储器最大 8K 字 四页, 每页 2k 使用 PCLATH<4:3> 访 问页 复位地址 0000h 中断地址 0004h Page 1 Page 3 0FFFh 1FFFh

18 PICmicro 架构 程序存储器 : PC 绝对寻址 用 CALL 和 GOTO 指令修改 PC PCLATH Register x x x k k x x x 14-bit Instruction for call and goto OP CODE k k k k k k k k k k k -bits rom CLATH k k k k k k k k k 有效的 13-bit 程序存储器地址 11-bits From Instruction k k k k

19 PICmicro 架构分页的程序 分页的程序存储器 当执行 CALL or GOTO 指令时, 需考虑分页 当跳转到不同的页时, 修改页位 调用页位 : GOTO < 地址 > CALL < 地址 > <Instruction> PCL,F ; e.g. ADDWF PCL,F 返回时不需考虑页

20 PICmicro 架构 PC 相对寻址 (14-bit core) 高字节写入 PCLATH. 然后低字节写入 PCL, 将装入 13-bit 值到 PC. Internal Data Bus <8> movlw movwf movlw movwf Note: PCH cannot be read HIGH Delay PCLATH LOW Delay PCL 5 PCLATH <5> 5 PCH <5> PCL <8> 13-Bit Program Counter 8

21 分组的数据存储器 (14 bit core) Data Modifying Instruction OP CODE f f f f f f f 7 位指令编码 7 位目标地址 在 14-bit 核的器件中 : 7 位访问 2 7 或 128 空间 访问更多的空间, 需要更多的位 程序存储器的分组提供这些位

22 PICmicro 架构 数据存储器 数据存储器 : 直接寻址 低 7 位的数据地址直接在指令中描述 高 2 位在 STATUS 寄存器中 ( 又称寄存器组号 BANK) STATUS 寄存器 14 位长指令 IRP RP1 RP0 TO PD Z DC C OP CODE f f f f f f f 2 位来自 STATUS 寄存器 RP1 RP0 f f f f f f f 7 位来自指令 指向目标寄存器的 9 位有效地址

23 PICmicro 架构 数据存储器组成 Bank0 SFRs 000h 01Fh 020h Bank1 SFRs 080h 09Fh 0A0h Bank2 SFRs 100h 11Fh 120h Bank3 SFRs 180h 19Fh 1A0h 分成 4 个组 SFR 映射到最顶端 32 位置 通过 RP0,1 和 IRP 选择组 GPRs GPRs GPRs GPRs 07Fh 0F0h 0FFh 170h 17Fh 1F0h 1FFh RP<1:0> RP<1:0> RP<1:0> RP<1:0> = 00 = 01 = 10 = 11

24 File Address (hex) TMR0 02 PCL 03 STATUS 04 FSR 05 GPIO File Address (hex) 80 OPTION_REG 81 PCL 82 STATUS 83 FSR 84 TRISIO 85 Indirect addr. (1) Indirect addr. (1) PICmicro 架构数据存储器 0A PCLATH 0B INTCON 0C PIR1 0D 0E TMR1L 0F TMR1H 10 T1CON PCLATH INTCON PIE1 PCON OSCCAL WPU IOC 8A 8B 8C 8D 8E 8F 寄存器图 PIC12F675 Unimplemented data memory location; read as '0'. Special Function Registers (SFR). General Purpose Registers (GPR), user RAM. 1 Not a Physical Register. 19 1A 1B 1C 1D 1E 1F 20 5F CMCON ADRESH ADCON0 General Purpose Registers (64 Bytes) VRCON EEDATA EEADR EECON1 EECON2 (1) ADRESL ANSEL accesses 20h-5Fh 99 9A 9B 9C 9D 9E 9F A0 DF Bank 0 Bank 1

25 PICmicro MCU 架构 PC 相对寻址 movlw HIGH Decode movwf PCLATH movf DisplayValue,W call Decode movwf PORTB goto Continue ecode addwf PCL,F retlw B ;decode 0 retlw B ;decode 1 retlw B ;decode 2 retlw B ;decode 3 retlw B ;decode 4 retlw B ;decode 5 retlw B ;decode 6 retlw B ;decode 7 retlw B ;decode 8 retlw B ;decode 9 ontinue 实现查找表范例 RB0 RB1 RB2 RB3 RB4 RB5 RB6 XXXXXXXX W Register a b c d e f g f e a g d I/O Port B b c

26 用 FSR 寄存器作为 8 位地址指针 另外 1 位在 STATUS 中描述 PICmicro 架构 间接寻址 STATUS 寄存器 r 8 位 FSR 寄存器 1 位来自 STATUS 寄存器 IRP RP1 RP0 TO PD Z DC C f f f f f f f f IRP f f f f f f f f 8 位来自 FSR 有效的 9 位地址

27 FSR 和 INDF 用于间接寻址 FSR 是地址指针 INDF 保存移动的值 PICmicro 架构 间接寻址 Writing Reading 22 FSR 5 INDF movlw 22 movwf FSR movlw 5 movwf INDF 5 22 FSR 5 INDF movlw 22 movwf FSR movf INDF,W movwf 5 5

28 清除 0x20 to 0x7F 的 RAM. PICmicro 架构 间接寻址 00h 04h 20h 7Fh Data Memory INDF FSR = 20h movlw 0x20 movwf FSR LOOP clrf INDF incf FSR,F btfss FSR,7 goto LOOP <next instruction>

29 指令系统

30 35 条指令 易学 紧凑 单字指令 向上兼容 PICmicro MCU 指令集 (14-bit core)

31 PICmicro 指令集 字节操作 NOP - MOVWF f CLRW - CLRF f SUBWF f,d DECF f,d IORWF f,d ANDWF f,d XORWF f,d ADDWF f,d MOVF f,d COMF f,d INCF f,d DECFSZ f,d RRF f,d RLF f,d SWAPF f,d INCFSZ f,d 14 位内核之字节操作指令构成 OP CODE d f f f f f f f d = Destination Bit d = 0 for destination W d = 1 for destination F f = 7-bit 7 Register Address Example: ADDWF ADDWF f, d REG, W

32 移动数据 : 立即数, W and F incf MyVar,F movwf MyVar MyVar W or WREG movf MyVar,W movlw 1 File Registers 1 立即数

33 PICmicro 指令集 汇总 Byte-Oriented Operations ADDWF f,d Add W and f ANDWF f,d AND W and f CLRF f Clear f CLRW - Clear W COMF f,d Complement f DECF f,d Decrement f DECFSZ f,d Decrement f, skip if zero INCF f,d Increment f INCFSZ f,d Increment f, skip if zero IORWF f,d Inclusive OR W and f MOVF f,d Move f MOVWF f Move W to f NOP - No Operation RRF f,d Rotate right f through carry RLF f,d Rotate left f through carry SUBWF f,d Subtract W from f SWAPF f,d Swap nibbles of f XORWF f,d Exclusive OR W and f BCF BSF BTFSC BTFSS Bit-Oriented Operations f,b f,b f,b f,b Bit clear f Bit set f Bit test f, skip if clear Bit test f, skip if set Literal and Control Operations SLEEP - Go into standby mode CLRWDT - Clear watchdog timer RETLW k Return, place literal in W RETFIE - Return from interrupt RETURN - Return from subroutine CALL k Call subroutine GOTO k Go to address (k is 9-bit) 9 MOVLW k Move literal to W IORLW k Inclusive OR literal with W ADDLW k Add literal with W SUBLW k Subtract W from literal ANDLW k AND literal with W XORLW k Exclusive OR literal with W f = File Register, k = literal value (8-bit), b = bit address <0 to 7>, d = destination (W or file register)

34 PICmicro 指令集 位操作 位操作 BCF f,b BSF f,b BTFSC f,b BTFSS f,b 14 位内核之位操作指令构成 OP CODE b b b f f f f f f f b = 3-Bit 3 Address (Bit Number) f = 7-bit 7 Register Address Bit 7 Bit 0 例 : BTFSC BTFSC STATUS, C f, b

35 PICmicro 指令集 立即数和控制操作 立即数和控制操作 SLEEP - CLRWDT - RETLW k RETFIE - RETURN - CALL k GOTO k MOVLW k IORLW k ADDLW k SUBLW k ANDLW k XORLW k 14 位内核之立即数和控制指令构成 OP CODE k k k k k k k k k = 8-bit 8 Immediate Value 例 : MOVLW 0x2F MOVLW k

36 14-bit 单片机指令集 操作实例 NOP No Operation Syntax: NOP Operands: None Operation: No operation Status: None Encoding: Words: 1 Cycles: 1 例 : NOP

37 14-bit 核指令集 字节操作 Byte-Oriented Operations NOP - MOVWF f CLRW - CLRF f SUBWF f,d DECF f,d IORWF f,d ANDWF f,d XORWF f,d ADDWF f,d MOVF f,d COMF f,d INCF f,d DECFSZ f,d RRF f,d RLF f,d SWAPF f,d INCFSZ f,d 14 位内核之字节操作指令构成 OP CODE d f f f f f f f d = Destination Bit d = 0 for destination W d = 1 for destination F f = 7-bit 7 Register Address Example: ADDWF REG, W ADDWF f, d

38 PICmicro MCU 指令集 字节操作 MOVWF Move W to f Syntax: MOVWF f Operands: 0 <= f <= 127 Operation: (W) -> > (f) Status: None Encoding: fff 1 ffff Words: 1 Cycles: 1 例 : MOVWF FSR 执行前 FSR = 0xFF W = 0x4F 执行后 FSR = 0x4F W = 0x4F

39 PICmicro MCU 指令集 字节操作 CLRW Clear W Syntax: CLRW Operands: None Operation: 00h -> > (W) 1 -> > Z Status: Z Encoding: Words: 1 Cycles: 1 例 : CLRW 执行前 W = 0x4F 执行后 W = 0x00 Z = 1

40 PICmicro MCU 指令集 字节操作 CLRF Clear f Syntax: CLRF f Operands: 0 <= f <= 127 Operation: 00h -> > (f) 1 -> > Z Status: Z Encoding: fff 1 ffff Words: 1 Cycles: 1 例 : CLRF FSR 执行前 FSR = 0x4F 执行后 FSR = 0x00 Z = 1

41 PICmicro MCU 指令集 字节操作 SUBWF Subtract W from f Syntax: SUBWF f,d Operands: 0 <= f <= 127 d = {0,1} Operation: (f) - (W) -> dest Status: C,DC,Z Encoding: dfff ffff Words: 1 Cycles: 1 例 : SUBWF FSR,W 执行前 FSR = 0x03 W = 0x02 C =? Z =? 执行后 FSR = 0x03 W = 0x01 C = 1 Z = 0

42 PICmicro MCU 指令集 字节操作 DECF Decrement f Syntax: DECF f,d Operands: 0 <= f <= 127 d = {0,1} Operation: (f) - 1 -> dest Status: Z Encoding: dfff ffff Words: 1 Cycles: 1 例 : DECF FSR,F 执行前 FSR = 0x01 Z = 0 执行后 FSR = 0x00 Z = 1

43 PICmicro MCU 指令集 字节操作 MOVF Move f Syntax: MOVF f,d Operands: 0 <= f <= 127 d = {0,1} Operation: (f) -> dest Status: Z Encoding: dfff ffff Words: 1 Cycles: 1 例 : MOVF FSR,F 执行前 FSR = 0x00 Z = 0 执行后 FSR = 0x00 Z = 1

44 PICmicro MCU 指令集 字节操作 DECFSZ Dec. f, Skip if 0 Syntax: DECFSZ f,d Operands: 0 <= f <= 127 d = {0,1} Operation: (f) - 1 -> dest skip if result = 0 Status: None Encoding: dfff ffff Words: 1 Cycles: 1(2) 例 : Loop DECFSZ CNT,F GOTO Loop Continue 执行前 PC = address Loop 执行后 CNT = CNT - 1 if CNT = 0, PC = address Continue else CNT!= 0, PC = address Loop+1

45 PICmicro MCU 指令集 字节操作 RRF Rotate Right f -> > C Syntax: RRF f,d Operands: 0 <= f <= 127 d = {0,1} Operation: Status: C Encoding: dfff ffff Words: 1 Cycles: 1 C Register f 例 : RRF CNT,W 执行前 CNT = C = 0 执行后 CNT = W = C = 0

46 PICmicro MCU 指令集 位操作 BCF f,b BSF f,b BTFSC f,b BTFSS f,b 14 位内核之位操作指令构成 OP CODE b b b f f f f f f f b = 3-Bit 3 Address (Bit Number) f = 7-bit 7 Register Address Example: BTFSC BTFSC STATUS, C f, b

47 PICmicro MCU 指令集 位操作 BCF Bit Clear f Syntax: BCF f,b Operands: 0 <= f <= <= b <= 7 Operation: 0 -> > (f<b>) Status: None Encoding: 01 00bb bfff ffff Words: 1 Cycles: 1 例 : BCF FSR,4 执行前 FSR = 执行后 FSR =

48 PICmicro MCU 指令集 位操作 BTFSS Bit Test f, Skip if 1 Syntax: BTFSS f,b Operands: 0 <= f <= <= b <= 7 Operation: skip if (f<b>) = 1 Status: None Encoding: 01 11bb bfff ffff Words: 1 Cycles: 1(2) 例 : Here BTFSS CNT,2 False GOTO Elsewhere True 执行前 PC = address Here 执行后 if CNT<2> = 1, PC = address True if CNT<2> = 0, PC = address False

49 PICmicro MCU 指令集 立即数操作 立即数操作 MOVLW IORLW ADDLW SUBLW ANDLW XORLW k k k k k k 14 位内核之立即数操作指令构成 OP CODE k k k k k k k k k = 8-bit 8 Immediate Value 例 : MOVLW 0x2F MOVLW k

50 PICmicro MCU 指令集 立即数操作 MOVLW 立即数送给 W Syntax: MOVLW k Operands: 0 <= k <= 255 Operation: k -> > (W) Status: None Encoding: kkkk kkkk Words: 1 Cycles: 1 例 : MOVLW 0x5A 执行后 W = 0x5A

51 PICmicro MCU 指令集 立即数操作 ADDLW W 与立即数相加 Syntax: ADDLW k Operands: 0 <= k <= 255 Operation: (W) + k -> > (W) Status: C,DC,Z Encoding: kkkk kkkk Words: 1 Cycles: 1 例 : ADDLW 0x15 执行前 W = 0x10 执行后 W = 0x25

52 PICmicro MCU 指令集 立即数操作 ANDLW W 与立即数相与 Syntax: ANDLW k Operands: 0 <= k <= 255 Operation: (W) AND k -> > (W) Status: Z Encoding: kkkk kkkk Words: 1 Cycles: 1 例 : ANDLW 0x5F 执行前 W = 0xA3 执行后 W = 0x03

53 PICmicro MCU 指令集 控制类操作 控制类操作 SLEEP - CLRWDT - RETLW k RETFIE - RETURN - CALL k GOTO k 14 位内核之 RETLW 指令构成 OP CODE k k k k k k k k k = 8-bit 8 Immediate Value 14 位内核之 CALL /GOTO 指令构成 OP CODE k k k k k k k k k k k k = 11-bit Immediate Value

54 PICmicro MCU 指令集 控制类操作 LEEP 进入 SLEEP yntax: SLEEP perands: None peration: 00h -> > WDT 1 -> > TO 0 -> > PD tatus: TO, PD ncoding: ords: 1 ycles: 1 例 : SLEEP

55 PICmicro 指令集 控制类操作 CLRWDT 清 Watchdog 例 : Syntax: CLRWDT CLRWDT Operands: None Operation: 00h -> > WDT 0 -> > WDT prescaler 1 -> > TO 1 -> > PD Status: TO, PD Encoding: Words: 1 Cycles: 1

56 PICmicro MCU 指令集 控制类操作 RETLW 返回 Syntax: RETLW k Operands: 0 <= k <= 255 Operation: k -> > (W) TOS -> > PC Status: None Encoding: kkkk kkkk Words: 1 Cycles: 2 例 : RETLW 0x5A 执行后 W = 0x5A

57 PICmicro MCU 指令集 控制类操作 RETFIE 中断返回 Syntax: RETFIE Operands: None Operation: TOS -> > PC 1 -> > GIE Status: None Encoding: Words: 1 Cycles: 2 例 : RETFIE

58 PICmicro MCU 指令集 控制类操作 CALL 调用子程序 Syntax: CALL k Operands: 0 <= f <= 2047 Operation: (PC) + 1 -> > TOS k -> > PC<10:0> PCLATH<4:3 -> PC<12:11> Status: None Encoding: 10 0kkk 0 kkkk kkkk Words: 1 Cycles: 2 例 : Here CALL There 执行前 PC = address Here 执行后 PC = address There TOS = address Here+1

59 PICmicro MCU 指令集 控制类操作 GOTO 无条件转移 Syntax: GOTO k Operands: 0 <= f <= 2047 Operation: k -> > PC<10:0> PCLATH<4:3> -> PC<12:11> Status: None Encoding: 10 1kkk 1 kkkk kkkk Words: 1 Cycles: 2 例 : GOTO There 执行后 PC = address There

60 使用 MPLAB 集成开发环境 (IDE) MPASM 编译器

61 汇编指令 #INCLUDE 语法 : #include# 文件名.* 或 < 文件名.*> 或无括号或引号 : 示例 : #INCLUDE p12f675.inc

62 #DEFINE 汇编指令 用于定义变量和分配初始值 用户友好的名字被分配给常数, 寄存器, 管脚名等. 使程序易读 例 : #DEFINE MYCONSTANT H 5A CONFIG 设置配置位 见 Lab 2

63 汇编指令 ORG 语法 : ORG <address> 例 : ORG 0x0000 描述 : 定义起始地址 (0x0000).

64 汇编指令 EQU 语法 : <label> < equ <expr> 例 : Seconds EQU 0x24 描述 : 定义常数或变量的替换名. 可用做常数 movlw SECONDS ; put 24 (hex) into W... 或当作寄存器地址 movwf SECONDS ; put value in W into ; RAM location 24 (hex).

65 汇编指令 BANKSEL 语法 : BANKSEL [<variable>] 例 : BANKSEL TRISA movwf TRISA 设置相关的 bank 位

66 汇编指令 END 语法 : END 例 : 表示原代码结束. 你必须在想结束汇编的地方有一条 END 语句.

67 休息

68 Lab 1 在 MPLAB 7.x 中创建一个项目

69 Lab 1 MPLAB 7.xx 布局 图标栏 Buttons are added to the Toolbar as features are enabled 项目窗口 Workspace 输出窗口 状态栏

70 Lab 1 目标 使用 Project Wizard 编写简单的 MPASM 代码 创建项目 编译代码 介绍输出窗口和 Program Memory 窗口 选择 Build 选项

71 创建项目 Project -> > Project Wizard... 打开 Project Wizard, 创建一个项目

72 Lab 1 从任一项目开始 按照下列步骤创建项目 : 点击 Next 继续. 选择 MCU 型号 使用最新的 MPLAB IDE 版本

73 Lab 1 从任一项目开始 选择语言工具 : MPASM 汇编器免费, 本课将使用. 显示安装后子目录, 你也可以更改. 当然你可以点出 Help 或 Show all 查看所有的语言工具.

74 Lab 1 从任一项目开始 选择路径 : 键入项目名字. 键入项目路径. 注意路径尽可能短.

75 Lab 1 从任一项目开始 增加文件 增加文件到项目中.

76 Lab 1 从任一项目开始 完成 创建的项目的小结被显示, 点击 finish 完成. 记住, Project Wizard 新版本将会增加一些新的功能.

77 Lab 1 从任一项目开始 (*.mcp) 和 (*.mcw) 文件名将被显示. 在窗口你可以添加任何类型相关的文件到项目中

78 Lab 1 从任一项目开始 选择 File > New 创建新文件 键入右图所示的代码. * 表示文件已被改变. 键入的代码执行 nop s 功能.

79 Lab 1 从任一项目开始 选择 File > Save As 保存文件.. 保存例子文件为 Lab1.asm.

80 Lab 1 从任一项目开始 在 source code 栏增加文件 鼠标右击 Source Files 选择 Add Files. 增加 Lab1.asm 文件.

81 Lab 1 从任一项目开始 文件现在增加在 Project 中 注意 * 表示文件已被改变未保存.

82 Lab 1 选择 File > Save Workspace 保存项目

83 编译代码 选择 Project -> > Build All 编译项目 Build All 表示每一个文件被改变, 因此重新编译所有项目

84 Lab 1 从任一项目开始 输出窗口显示 build 的过程.

85 Lab 1 从任一项目开始 选择 View > Program Memory 可以查看程序区 Your Code Unprogrammed locations (3FFF)

86 Workspace: MPLAB IDE 设置信息 包含下列信息 : MCU 型号 调试工具或编程器 打开的窗口 IDE configuration 的设置值 Project: 包含所有的源文件

87 新的工作界面有下列窗口 MPLAB IDE 窗口 Project - 工程项目 Output - 输出信息 Disassembly - 反汇编 Watch - 变量观察 Hardware Stack - 硬件堆栈信息 Program memory - 程序空间内容 File Registers - 寄存器内容 EEPROM data - EEPROM 数据内容 Special Function Registers - 特殊功能寄存器 Note: There are often more windows, but they will depend on the device e used and debugger/programmer tool.

88 Lab 1 设置 Build 选项 在 Project Window 右击项目文件 ( 也可以选择 Project 菜单 ) 选择 Build Options... 更改设置

89 Lab 1 设置 Build 选项 The Build Options 窗 口有多个设置窗口 使用下拉菜单改变类 型 选择你需要的选项 通常采用缺省值

90 Lab 1 注意事项 首先必须生成项目或文件.asm 文件必须添加到项目 使用 Configuration 菜单选择型号 编译项目生成.hex 文件

91 Lab 2 使用 MPLAB ICD 2

92 Lab 2 目标 开始 Lab 2 介绍 MPLAB ICD 2 和 PICDEM 2 Plus 验证逻辑跳转 编写代码测试按键输入

93 套件包含 : MPLAB ICD 2 套件 (DV164006) MPLAB ICD 2 所有电缆包括 USB 电缆 电源 CD-ROM 资料 PICDEM 2 Plus 演示板及 : 样品 (PIC18F452, PIC16F877) 功能! (LCD, ( 温度传感器, 等 )

94 可单独购买 DV ICD 2 套件内含 与 ICD 2 直接相连 ICD 2 供电或外接电源 可演示许多功能 注意订单时订购 DV164006! PICDEM 2 Plus 演示板 DV 不包含 PICDEM 2 Plus 和和样品 DV 仅包含 ICD2, 无无电缆, 电源, 样品等.

95 跳转 循环种类 : 定时 嵌套 计数 延时 指令 : BTFSS Bit Test File Skip if Set BTFSC Bit Test File Skip if Clear DECFSZ DECrement File Skip when Zero INCFSZ INCrement File Skip when Zero

96 跳转 Delay ; Delay code using decfsz instruction decfsz MyVar,F ; Decrement MyVar,, skip if 0 goto Delay ; since MyVar is not 0, go back bsf PORTB, RB0 ; MyVar now 0, light LED and continue 210 MyVar 指令 BTFSS Bit Test File Skip if Set BTFSC Bit Test File Skip if Clear DECFSZ DECrement File Skip when Zero INCFSZ INCrement File Skip when Zero

97 跳转指令 N OV Z DC C STATUS Status Bits N Negative OV Overflow Z Zero DC Digit Carry C Carry 使用跳转指令测试任何一个位 : SFR 变量 (GPR) STATUS 寄存器

98 Lab 2: 内容 测试按键输入 读 PORTx,y x 是口的名字 ( 例 PORTA ) y 是第几位 (0 到 7) 程序跳转 通过 btfsc or btfss 跳转 指令跳过或或不跳过下一条指令 根据跳转点亮 LED 用 MPLAB SIM, MPLAB ICD2 和 PICDEM 2 Plus 验证

99 LAB 2 测试按键输入 #INCLUDE p16f877a.inc ; Include the standard definitions clrf PORTB ; Initialize PORTB so that all LEDs are off by default BANKSEL TRISB ; BANKSEL is used to get to bank with TRISB in it (bank 1) clrf TRISB ; Clear TRISB to make all PORTB pins outputs movlw B ; Make pin RA4 an input (rest of PORTA pins are outputs) movwf TRISA ; This is redundant as TRISA bits are 1 s 1 s by default (inputs) ; (the rest of the pins are set low) movlw H 07 ; Writing 7 into ADCON1 causes all analog pins to allow movwf ADCON1 ; digital input. You must set ADCON1 when using pins with ; A/D functions as they are analog mode by default. ; This code isn t t needed in this example - do you know why?

100 LAB 2 BANKSEL PORTA ; BANKSEL is used to return to bank 0 (for PORTA, PORTB) Loop btfss PORTA,4 ; Test RA4 on PORTA, skip if pin is high goto On ; go to On code if button is pressed (pressed button is low) Off movlw B ; On code is skipped so Off code runs - it writes a value to movwf PORTB ; PORTB to turn on RB1 (high) and sets rest of PORTB low goto Loop ; The test of the button happens again by branching to Loop On movlw B ; On code writes a value to PORTB to turn on RB3 (high) movwf PORTB ; and sets rest of PORTB low, including RB1. goto Loop ; The test of the button happens again by branching to Loop Here goto Here ; This code is not needed either. Why? END ; All programs must have an END directive

101 Lab 2: 开始 打开 Lab2.asm 使用 File -> > Open 创建项目 使用 Project Wizard

102 ICD 2 与计算机相连, 目标板上电, 然后 ICD 2 与目标板相连 使能 MPLAB ICD 2 Lab 2: 设置 MPLAB ICD 2 USB 1 Connect to PC ICD Pin Phone jack to PICDEM 2 Plus 2 Connect Power Power Supply PICDEM 2 Plus

103 Lab 2 用 MPLAB ICD 2 调试 使能 ICD2, 编译代码. 你必须先编程器件 编程后, 可尝试全速运行, 单步走. 查看 watch 窗口.

104 一旦使能, 许多选项将允许. Lab 2 使能 MPLAB ICD 2 你可编程或调试 记住设置 Configuration Bits!

105 Lab 2 配置位 PIC MCU 有 Configuration Bits Configuration bits 在编程或调试时被设置. 打开 Configure -> Configuration Bits, 先设置后编 程. Configuration Bits 非常重要!

106 用 CONFIG 设置配置位 CONFIG _ CONFIG 字键入两个下划线 使用 INCLUDE(*.inc) 用来设置 CONFIGURATION 寄存器

107 例 :(PIC16F877A): 用 CONFIG 设置配置位 CONFIG _XT_OSC & _BODEN_OFF &... Bitwise AND (&)( ) together any desired terms (may grow long on some parts) Open the Processor Include file (*.INC) ) and scroll to end to see the configuration bit options

108 View -> > Watch 使用 Watch Window 键入观察的寄存器 / 变量 点击 Add SFR 或 Add Symbol

109 MPLAB IDE 界面 用 MPLAB IDE 调试 工程项目窗口 源代码窗口 输出信息窗口 变量观察窗口

110 - 调试快捷键 F5 Halt - 暂停 F6 Reset - 复位 F7 Step - 单步运行 F9 Run - 全速运行 MPLAB IDE 快捷键 或使用图标栏!

111 Lab 2 注意 MPLAB IDE 功能强大, 下列免费 编辑器 编译器 模拟器 与其它工具的接口 使用 Watch Windows 调试你的代码 编程前先设置 configuration bits 跳转指令 btfss, btfscc, incfsz, decfsz

112 Lab 3 使用 CCP 模块

113 Lab 3 Lab 3 目标 介绍 CCP 和 PWM 让蜂鸣器鸣叫

114 Lab 3: CCP CCPR1L CCP1CON<5:4> CCPR1H Duty_Cycle 00 (copy) TMR2 COMPARE R Q Output osc/4 Prescaler (counter) S Divide by 1, 4 or 16 PR2 COMPARE Period (rate) Note: These 2 bits can be Q cyles, or the counter divided by 4

115 Lab 3: CCP CCPR1H CCPR1L Duty_Cycle CCP1CON<5:4> Transition at 5 due to match of CCPR1x and TMR2 TMR2 COMPARE R Q Output osc/4 Prescaler Divide by 1, 4 or 16 (counter) S Output goes low and TMR2 is reset after PR2 matches TMR2 PR2 COMPARE Rate 9 Note: These 2 bits can be Q cyles, or the counter divided by 4

116 Fosc/4 Prescaler Divide by 1, 4 or 16 Lab 3: CCP 预分频 Prescaler 使用 TMR2 预分频 例 : Fosc = 4 MHz Fcy = 1 MHz Tcy = 1 us T1CKPS1: Divides by 1 4 1x 16 Count Rate 1.00 us 4.00 us us

117 例 : 880 Hz( 4 MHz 的主晶振 ) 选择 TMR2 预分频值 16 Lab 3: 计算 CCP 值 计算 PR2 (4 MHz / 16) / 4 = Hz Hz / 880 = = 70 计算 CCPR1L : 50% 的占空比是 35.

118 为何选择 16 作为预分频? 我们提前计算 : 回忆 PR2 的结果 (70 ) 如果预分频选择 4, Lab 3: 问题 计算 PR2 : (4 MHz / 4) / 4 = Hz Hz / 880 = = 284 = >255 结果比之前的预分频值更糟

119 设置 PWM 为 880Hz, 50% 占空比 这个频率可听得见, 计算 : PR2 CCPR1L 设置 T2CON TMR2 用于 PWM 选择 TMR2 预分频 RA4 按下鸣叫 Lab 3: 内容 在 LAB 3 基础上基于 RA4 输入进行跳转 设置 CCP1CON 打开或关闭 PWM 用 MPLAB SIM, MPLAB ICD2, PICDEM 2 Plus 验证调试

120 让 PIC16F877A 发出音乐 LAB 3 #INCLUDE p16f877a.inc ; Include the standard definitions Start BANKSEL TRISC ; BANKSEL to get to TRISC bank (bank 1) bcf TRISC,2 ; Set CCP1 as an output movlw D'70' ; Manually Calculated Period movwf PR2 ; loaded into PR2 (also in bank1) BANKSEL CCPR1L ; BANKSEL is needed to get bank to bank 0. movlw D'35' ; Manually Calculated Duty Cycle (50%) movwf CCPR1L ; loaded into CCPR1L movlw 0x06 ; Turn on TMR2 (for PWM) movwf T2CON ; and /16 prescale

121 LAB 3 CheckButton btfsc PORTA,4 ; Test the button - if pressed, its a low signal. goto ButtonOff ; if high (not pressed), go to Button Off code ButtonOn ButtonOff movlw H'0C ; if low (pressed), fall here to Button On code. movwf CCP1CON ; this turns on CCP1CON by writing 0C (hex) to it. goto CheckButton ; go check the button again (back to CheckButton) clrf CCP1CON ; Turn off CCP1 module by writing 0 to it goto CheckButton ; go check the button again (back to CheckButton) END ; All programs must have an END directive

122 尝试一下! Lab 3 提高 尝试改变频率. 能改变成 440 Hz? 计算 : Timer 2 预分频值 (1,4 or 16) PR2 值, 然后减 1 CCPR1L 值 测试 : 使用 ICD 2 and F7, F5 进行调试.

123 休息 (II)

124 Lab 4 使用 A/D Converter (PIC16F877A)

125 Lab 4 目标 Lab 4 目标 A/D Converter 在 PIC16F877A 执行 A/D 转换 基于模拟输入点亮 LEDs 学习使用宏命令

126 使用 A/D A/D 设置口方向 (TRISx ) 设置模拟和数字通道 (ADCON1 或 ANSEL) 设置 A/D 时钟 (ADCON0 / ADCON1) 执行转换循环

127 设置 A/D A/D 时钟 ADCON0 ( 内部 RC 或 Fosc ) ADCON1 通道 (AN0, AN7) ADCON0 打开 A/D (ADON 置 1) ADCON0 设置参考电压 (VDD 或外部.) ADCON1 选择对齐 ADCON1

128 设置口方向 设置 TRISx 通过 TRISA, TRISE 设置为输入或输出. 相关的模拟口必须为输入.

129 设置模拟和数字通道 A/D 必须设置口为数字或模拟口 通过 ADCON1 和 ANSEL 来设置 This chart is a sample of modes, there are 15 modes for this part Bit Setting PCFG<3:0> AN7 A A 0010 D AN6 A A D Channel Mode Options AN5 A A D AN4 A A A AN3 A Vref+ A AN2 A A A AN1 A A A AN0 A A A Voltage References Vref+ VDDDD AN3 VDDDD Vref- Vss Vss Vss C/R 8/0 7/1 5/0 We will be using mode 1110 (1 A/D channel, VDD and VSS reference) 1110 D D D D D D D A Vdd Vss 1/0

130 选择参考电源 A/D 参考电源可为 VDD VSS 或外接 当设置数字和模拟引脚模式时同时设置 Bit Setting PCFG<3:0> AN7 AN6 Channel Mode Options AN5 AN4 AN3 AN2 AN1 AN0 Vref D D D D D D D A VDDDD 高参考源低参考源 A/D 通道 / 参考输入 Voltage References Vref- C/R Vss 1/0

131 A/D 设置 A/D 时钟 两个主要选项 - 内部 RC 和 Fosc Fosc 有许多分频选项 内部 RC 是独立的 A/D 振荡器 ADCON0 ( 有时 ADCON1) 设置 A/D 时钟

132 A/D 时钟计算 A/D 假设 4 MHz 主频, PIC18F877A 则 Tosc = 250 ns T AD 必须 1.6 us 到 20 us 50 ns / 1.6 us = 1/6.4 此选择 Fosc/8 ADCON1 <ADCS2> Bit Setting ADCON0 <ADCS1:0> Clock Mode Fosc/2 Fosc/8 Fosc/32 Fosc/4 Fosc/ Fosc/64 x 11 FRC RC (internal RC)

133 选择对齐 A/D 结果是 10 位宽 结果存于 : ADRESH,ADRESL ADRESH ADRESL ADRESH ADRESL bbbb bbbb bb bb bbbb bbbb 左对齐右对齐 打开 A/D ADCON0 的 ADON 位置 1

134 循环转换 A/D 插入取样时间 ( 你的代码 ) 开始转换 (GO/DONE 置 1) 等待 GO/DONE 清零 ( 或 ADIF=1) 读 A/D 值 (ADRESH / ADRESL) 选择通道 置 GO/DONE 位 PIC 清除 GO/DONE 位 通道选择 取样时间 AD 转换 如果为多通道输入 ADRESH ADRESL 你的 A/D 结果

135 宏命令 宏命令 用 MACRO 开始, 用 ENDM 结束 Name_Of_Macro MACRO Variables nop ;My Code Goes Here ENDM

136 宏命令 宏命令 例 : AddW MACRO Input addlw Input ENDM 你的代码中 : AddW 5 ; Add 5 to W

137 Lab 4: 内容 读 A/D 值, 用 ADRESH 值点亮 LEDs 当值小于 100 点亮 LED 0 和关闭 LED 1 当值大于 100 点亮 LED 1 和关闭 LED 0 别忘了取样时间 GO/DONE 置 1 前必须延时, 1 ms 足够 例 : Dly32 D 50 延时 1 ms

138 可使用下列宏命令 : Lab 4: 宏命令 LEDEnable <bitpattern> 1 输入, 0 输出. 允许 LED 0 和 1, 使用 : LEDEnable B or LEDEnable H FC LEDOn <LED number> <LED number> 必须在 0 和 3 之间. 例, 点亮 LED 0 LEDOn 0

139 Lab 4: 宏命令 LEDOff <LED number> LEDOff 关闭 LED 例 LEDOff 2 Dly32 <Cycles x 20> 延时子程序 例延时 1 ms (1000 cycles at 4 MHz) : Dly32 D 50 ; Delay of 50 x 20 cycles = 1000 Tcy

140 LAB 4 Start #INCLUDE p16f877a.inc ; Include the standard definitions #INCLUDE 701PIC.inc ; Include MACROs from MASTER s 03, PIC 102 class #DEFINE TESTVAL D 100 ; High Value to compare A/D reading against LEDEnable B ; MACRO to setup I/O port to drive LEDs RB1 and RB0 BANKSEL TRISA ; BANKSEL to TRISA in bank 1 movlw H 01 ; Initialize PORTA so that RA0 (analog channel 0) is an input, movwf TRISA ; all other PORTA pins are outputs movlw H 0E ; Initialize the A/D to be analog on, partly selects clock mode movwf ADCON1 ; channel 0 (RA0), all other pins are digital mode BANKSEL ADCON0 ; BANKSEL to ADCON0 in bank 0 movlw H 41 ; Also, A/D clock is Fosc/8 (good for up to 5 MHz, 5V) and, movwf ADCON0 ; A/D is turned on but not yet converting and ready on Ch 0. CheckAgain Dly32 D 50 ; MACRO to Wait 1 ms (at 4 MHz) bsf ADCON0,GO ; Start the Conversion

141 LAB 4 PollAD btfsc ADCON0,GO ; Wait for Conversion to finish goto PollAD ; go back and poll the A/D GO/DONE bit again ConvertDone movf ADRESH,W ; Move A/D result (high byte) into W for later testing sublw TESTVAL ; Test A/D result against test value btfss STATUS,C ; go to over if A/D result larger than test value goto Over ; value is too large, run Over code Ok LEDOn 0 ; MACRO to turn on LED 0 LEDOff 1 ; MACRO to turn off LED 1 (this shows Ok condition) goto CheckAgain ; Do A/D read and value test over again Over LEDOn 1 ; MACRO to turn on LED 1 LEDOff 0 ; MACRO to turn off LED 0 (this shows Over condition) goto CheckAgain ; Do A/D read and value test over again END

142 试一试! Lab 4 警示灯 调节电位器 RA0. LEDs 改变吗?

143 Lab 4b 报警! 尝试下列功能 : 复制 Lab 4 代码粘贴到 Lab 5. 如果值大于 TESTVAL 鸣叫 使用 GOTO or CALL/RETURN 指令 Ok Over New Lab 5 Lab 5 (A/D Test) ButtonOn (start beeping) Lab 4 (Beep) ButtonOff (stop beeping)

144 Lab 5 定时器及中断 (on the PIC16F877A)

145 Lab 5 的目标 Lab 5 的目标 学习 TMR0 理解查询和中断 写一个基于中断的延时程序 LED 以中断设定的速度闪烁

146 Lab 5: TMR0 外设 可读写 从 FF 到 00 (hex)( 溢出时产生中断 预分频可选择 2, 4, 8, 直到 256 定时模式 : 最快速度是 OSC/4 ( 对于 20 MHz 晶振来说是 5 MHz) 外部事件计数模式 : 上升沿或下降沿触发可供选择 TMR0 位宽是 8 TMR0IF overflow flag output Ext clock input Internal clock (Tcy( Tcy) 预分频 Divide by 1, 4 or 16 8-bit timer/counter

147 TMR0 时钟源是 Fosc / 4 使用 TMR0 您的 Demo 板上使用 4 MHz 时钟 (Fosc) 当使用预分频时, 输入可进一步除上 2, 4, 8, 直到 256. TMR0 从 00 到 FF (hex) 向上计数, 计到 FF 时溢出从 00 开始重新计数. 溢出时标志位置 1 以供中断或查询使用.

148 计算 TMR0 的溢出 使用 4 MHz 时钟 TMR0 计数时钟速率是 Fosc/4 对于一 200 ms (0.2 second) 速率中断, 您将如何配置 TMR0 的预分频? TMR0 初值置多少? 考虑 : 计数器以 1 us 速率计数, 无预分频, 能计到多少? Time = 预分频 x maximum count (8 bits) x rate Time = 256 x 256 x 1 us Time = 但我们需 来得到 0.2 秒!

149 计算 TMR0 的溢出 ( 第二部分 ) 将溢出时间作为计数单元 本例 us 以整数的倍数 (4) 计数来得到总时间. 这种设定中能计到 us 吗? 除数是 (256), 时间 (50000) 得到商 : / 256 = counts 选择 : 忽略相对较小的误差 (195 * 256 = us) 改变主晶振以得到整数 改变除数, 获得快中断等诸多方法.

150 计算 TMR0 的溢出 ( 第三部分 ) 本例中我们采用忽略误差的方法, 当然在您的应用中方法会不一样 故, 这里 TMR0 是 : 256 预分频速率 195 计数值 4 个溢出 这样, 我们需给定时器预装一个初值, 定时器从该值开始向上计到 256 时, 给出溢出信号 : 这个值是 = 61

151 TMR0 中断 当定时器溢出时, 会将标志位置 1 举个例子, TMR0 将 TMR0IF 置 1 中断标志位 xxif 产生标志时, 既可用来查询, 同时也是中断产生的基础 在您的软件中一旦检测到 xxif 标志位, 必须清零

152 中断... Lab 5 - 中断 使 CPU 在执行主程序时转而执行其他任务 中断源有多种 : 定时器 外设 外部信号 配置方式 NTCON 寄存器 其他寄存器 ( 随芯片不同而不同 详见数据手册 )

153 中断 T0IF T0IE 唤醒 ( 如果在 SLEEP 模式 ) INTF INTE RBIF RBIE 到 CPU 的中断 EEIF EEIE GIE Note: There is often a PEIE bit which enables/disable further 中断 sources

154 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-x INTCON REG PIC16F877A GIE PEIE T0IE INTE RBIE T0IF INTF RBIF R= Readable bit W= Writable bit U= Unimplemented bit, read as 0 - n= Value at POR reset bit7 bit0 bit 7: GIE: Global 中断 Enable bit 1 = Enables all un-masked 中断 0 = Disables all 中断 bit 5: T0IE : TMR0 Overflow 中断 Enable bit 1 = Enables the TMR0 中断 0 = Disables the TMR0 中断 bit 2: T0IF : TMR0 Overflow 中断 Flag bit 1 = TMR0 has overflowed (must be cleared in software) 0 = TMR0 did not overflow

155 更好的利用 CPU 资源 快速响应 多任务 固定的或已知的间隔处理 异常处理 为什么要用中断?

156 许多程序不需中断 逻辑流程中不用中断 不需现场保护... 我需要中断吗?

157 中断 : ISR 现场保护 aving Push MACRO ; PUSH W and STATUS movwf W_TEMP ; movf STATUS,W ; (swapf( will also work here) movwf STATUS_TEMP ; ENDM estoring Pop MACRO ; POP W and STATUS movf STATUS_TEMP,W ; (swapf( will also work here) movwf STATUS ; swapf W_TEMP,F ; movf changes STATUS bit Z, but swapf W_TEMP,W ; swapf does not change STATUS ENDM

158 中断 : ISR 现场保护 Push MACRO ; PUSH W and STATUS movwf W_TEMP ; movf STATUS,W ; (swapf( will also work here) movwf movwf STATUS_TEMP STATUS_TEMP ; ENDM Saving Saving STATUS W XX 12 W W_TEMP 34 STATUS XX 34 STATUS_TEMP

159 中断 : ISR 现场保护 Pop MACRO ; POP W and STATUS movf STATUS_TEMP,W ; (swapf( will also work here) movwf STATUS ; swapf swapf W_TEMP,F W_TEMP,F ; movf changes STATUS bit Z, but swapf W_TEMP,W ; swapf does not change STATUS swapf W_TEMP,W ENDM Restoring STATUS W XX W W_TEMP XX STATUS STATUS_TEMP

160 Lab 5: 内容 TMR0 预分频 256, 每个循环计 195 次以产生 0.05 秒 (50000 us) 中断 每四个循环 (0.2 seconds) 触发 LED 0. LED 0 (RB0) 以此速率闪烁 在改变 LED 状态前你要读它的当前状态, 或采用其他方式 对该口写一完整的值, 不对该口寄存器使用 bsf/bcf 指令 使用 MPLAB SIM, MPLAB ICD2 以及 PICDEM 2 Plus 验证你的结果

161 LAB 5 第一部分 #INCLUDE p16f877a.inc #INCLUDE 701PIC.inc ; Include the standard definitions ; Include MACROs from MASTER s 03, PIC 102 class ISRCtr EQU 0x30 ; location for ISRCtr variable (countdown for ISR loops) Start ISR ORG 0 ; Reset Vector Location (0) goto Initialize ; On start-up go to Initialization code ORG 4 ; 中断 Vector Location (4) ; Macro to context save in ISR ; Clear the TMR0 中断 condition ; Reload the Timer for accurate timing ; Decrement the ISRCounter (from 4 to 0) and test for 0 ; if the counter is not yet 0, then toggling is not needed ; if the counter is 0, run toggle code

162 LAB 5 第二部分 ToggleLED ; put 4 into W to reload into the ; 中断 counter (after 4 counts we need to reset it) ; write 1 to W in order to, ; toggle LED 0 of PORTB - XOR with 1 will toggle the bit SkipToggle ; Done 中断, so restore and exit ; Macro to context restore when leaving ISR ; Return from 中断

163 LAB 5 第三部分 Initialize goto $ ; Ensure LED 0 is off ; MACRO to setup I/O port to drive LED RB0 ; Write 4 to W to ; preload the ISR counter with ; Preload the timer for appropriate time delay ; Turn on GIE and ; TMR0 中断 (T0IE) ; Set up banking to access OPTION_REG in bank 1 ; Set up TMR0 for 256 prescale and ; internal clock mode ; return to accessing BANK 0 ; Wait forever for 中断

164 LAB 5 第四部分 ; Subroutine to reload TMR0 DoReloadTimer END ; Preload Timer to ; count 195 times before roll-over over ; return from subroutine

165 定时器 : Lab 5 注意点 PIC 微控制器带预分频可选的至少 8 位 (TMR0) 定时器 需要重装初值以得到期望时间 可以通过计几次溢出以得到期望时间. 中断 : 判断是否是您应用中所要的中断, 如果是 不要忘了保护和恢复现场 置 GIE, 及其他 xxie 位来打开中断 中断向量从程序段的 0004h 开始

166 Lab 6 时间片系统 ( 实时多任务 )

167 Lab6 目标 Lab6 目标 简单的时间片系统 (Time -Slicing Systems ) 代码迅速处理两个 ( 或以上的 ) 任务!

168 Lab6: 任务 LED 0 以 0.15 秒点亮, 0.25 秒熄灭来闪烁, 并且蜂鸣器 ( 及 LED 1 闪烁 ) 以 0.5 秒打开, 1 秒关闭 : 让我们看看是什么现象 : Time LED On Off On Off On Off On Off On Off On Off On O... Piezo On Off On Of...

169 分时 Lab6: 计算 找出最小的时间单元 : 秒数 : 0.15, 0.25, 0.5, 秒贯穿所有这些整数时间段 ( 使用 GCF 来计算 ) 计算任务数 ( 及变量 ): 2 然后生成一计划来显示这两个软件计数器是怎样 控制这些任务的. Note: : GCF stands for Greatest Common Factor

170 Lab6: 分时 (Animated) TMR0 中断每 0.05 s 在每个计数寄存器中产生一次计数 LED 计数器 Piezo 计数器 0: ON 0: ON 3: OFF 6 10: OFF 0 8: 复位到 0 30: 复位到 0 ( 计数器 ) 计数器 ) LEDCtr PiezoCtr OFF ON OFF ON LED Piezo

171 Lab6: 计划 TMR0 每 0.05 秒中断一次以产生时基 该时基用于 : 点亮或熄灭 LED 0 及 LED 1 (RB0 及 RB1) 打开或关闭 Piezo 清掉 LED 及 Piezo 的时间计数器 点亮 2 个 LEDs 并使蜂鸣器发声 ( 以 500 Hz): RB0 打开时间 0.15 秒, 关闭时间 0.25 秒 ( 共 0.4s) RB1 打开时间 0.5 秒, 关闭时间 1 秒 ( 共 1.5 s) Piezo 响 0.5 秒, 关闭 1 秒 ( 同 RB1) 使用宏指令来简化代码

172 Lab6 第一部分 #INCLUDE p16f877a.inc ; Include the standard definitions #INCLUDE 701PIC.inc ; Include MACROs from MASTER s 03, PIC 102 class #DEFINE DEVICE_FREQ_HZ D' ; Needed by Piezo series macros LEDCtr EQU 0x30 ; Counter for LED timing PiezoCtr EQU 0x31 ; Counter for Piezo timing Start ISR ORG H'00' ; Reset Vector goto Initialize ; Jump to Initialization code ORG H'04' ; 中断 Vector ; Macro to context save in ISR ; Clear the TMR0 中断 condition ; Add 1 to LEDCtr ; Add 1 to PiezoCtr ; Reload the Timer for accurate timing ; Macro to context restore when leaving ISR ; Return from 中断

173 Lab6 第二部分 Initialize LEDOff 0 ; Turn off both LEDs LEDOff 1 ; " clrf LEDCtr ; Initialze Task Couters to 0 ; " (both LED and Piezo) ; MACRO to setup I/O port to drive LEDs RB1 and RB0 ; 500 Hz Beep when PiezoOn is used ; Preload the timer for appropriate time delay ; set banking to access OPTION_REG in bank 1 ; Set up TMR0 for 256 prescale and ; internal clock mode ; Return to accessing BANK 0 ; Turn on GIE and TMR0 中断 ; "

174 Lab6 第三部分 LEDTest NotEqual1 TurnOnLED TurnOffLED ; Test LED1 Counter Value for overflow ; by subtracting 8 from it. Leave result in W ; Test for 0 to determine if equal ; If counter is not 8, test if LED should be on or off ; If counter is 8, it is reset to 0 ; Test LED counter against "On" time ; by subtracting 3 from it. Leave result in W ; Test for negative value to determine if less than 3 ; if 3 or more, goto LEDOff Code ; else, Turn on LED 0 since counter is less than 3 ; LED Testing done, goto PiezoTest ; Turn off LED since counter is 3 or more (up to 7) ; LED Testing now done, so fall into PiezoTest

175 Lab6 第四部分 PiezoTest ; Test Piezo Counter Value ; by subtracting 30 from it. Leave result in W ; Test for 0 to determine if equal ; If counter is not 30, test if LED should be on or off ; If counter is 30, it is reset to 0 NotEqual2 ; Test Piezo Counter against "On" time ; by subtracting 10 from it. Leave result in W ; Test for negative value to determine if less than 3 ; if 10 or more, goto LEDOff Code TurnOnPiezo ; Turn on LED1 ; Turn on Piezo (by turning on CCP1) ; manage tasks by returning to top of list TurnOffPiezo ; Turn off LED1 ; Turn off Piezo (by turning off CCP1) goto LEDTest ; manage tasks by returning to top of list

176 Lab6 第五部分 ; Subroutine to reload TMR0 DoReloadTimer END ; Preload Timer to ; count 195 times before roll-over over ; return from subroutine

177 对您项目的 帮助

178 Microchip 应用支持 数据手册, 应用笔记, 设计中心 选择最好的元件 申请免费样片

179 Microchip 应用支持 仍有困难? 免费的电话或 帮助! Development Systems Information Line m

180

181 附录

182 使用模板来建立文件 模板能帮助您快速建立文件 File -> > Open 进入模板路径 : C:\Program Files\MPLAB IDE\ MCHIP_Tools\ 模板 \CODE 找到您所需的文件 文件名中带有芯片型号的后几位字符 举例如 PIC12F675 或 ( F675), 文件名是 f675temp.asm

183 模板中有些什么? 芯片名 说明 代码编写提示 文件信息 文件名, 时间, 版本等 所需的文件 说明项目中所用到的其他文件

184 模板中有些什么? 笔记 解释程序流程 Include, List 及 CONFIG 指令 Includes 标准定义 设定配置位 定义变量 EQU 定义变量 中断中用的临时变量已有 定义

185 模板中有些什么? 向量 复位, 中断向量及代码 中断保护及恢复 在中断保护代码及恢复寄存器 用户代码 您的代码从这里开始 EEPROM 初始化 END 指令

186 外设 : PortB 输入中断 键盘接口 : 内部上拉 ( 软件实现 ) 使 RB4-RB7 RB7 脚为高 RB4 RB5 RB6 RB7 100 Hex keypad RB0-RB3 RB3 脚输出 0 按下任何建将使 RB 脚拉低并产生一中断 RB0 RB1 该中断能使处理器从 SLEEP 模式唤醒 PIC16CXXX RB2 RB3 R 节省了定时器资源 Resistance for ESD protection AN557

187 可靠性设计技术 硬件看门狗 有助于从软件故障中唤醒 使用芯片自带的 RC 振荡 WDT 不能由软件关掉 WDT 溢出时使芯片复位 CLRWDT 指令清 WDT 可编程的溢出周期 : 18 ms 到 2.5 秒 SLEEP 模式时也工作 在溢出时唤醒 CPU "CLRWDT" RC oscillator Reset 8-bit ripple counter Postscaler Overflow resets chip

188 可靠性设计技术 软件看门狗 只用软件控制, 看门狗同样有效 整个程序中只使用一个 CLRWDT 指令 将 CLRWDT 指令放在主循环中 不要将 CLRWDT 指令放在 ISR 或其他子程序中 选择主循环能容许的最小 WDT 溢出周期 以 GOTO wdtreset 指令 ( 自循环 ) 初始化不用的内存来强制溢出

189 可靠性设计技术填充未用的程序空间 当使用看门狗时, 未用的区域填充 GOTO wdtreset 指令 该自循环正常情况不会执行 如果 PC 工作失常, 就很有可能会执行这条指令 通过 WDT 强制复位来初始化内核 在插入该指令时可使用 FILL ( 假设 < 最末程序地址 +1> 是 400h): FILL (GOTO wdtreset), (400h-$) ORG 3FFh

190 上电时强制 WDT 复位 : 上电时检查 RAM 模式 如果模式不正确 : 初始化 RAM 模式 强制 WDT 复位 可靠性设计技术干净的 WDT 复位 如果代码跳到未用的程序区强制 WDT 复位

191 可靠性设计技术子程序计数 设定子程序调用计数器及子程序执行计数器 每调用一次子程序, 子程序调用计数器自增 1 在每个子程序开始使执行计数器自增 1 在主循环开始, 检查调用计数器和执行计数器是否相 等 如果不等, 强制 WDT 复位

192 术语表 TMR0-8-bit timer peripheral w/8 bit 预分频 预分频 - peripheral which delays the TMR0 count by a prescale ratio i.e. 1:1, 1:2, 1:4 Page - memory organization for program memory Bank - memory organization for data memory Pipeline - hardware architecture for prefetching an opcode while executing the previous opcode Orthogonal instruction set - instructions work on ports and registers the same way OPTION_REG - 寄存器 of control bits for configuring tmr0, INT, and pull ups INTCON - 寄存器 of control bits for configuring peripheral 中断 STATUS - 寄存器 of bits indicatin the results of an operation RP1&RP0 - direct addressing bank selection control bits IRP - indirect addressing bank selection control bit PORTB - I/O port B GPIO - I/O port on the 8 pin parts

193 Lab 1 Projects the Old Way 使用 Configure > Select Device 来选择处理器 注意有不同的开发工具来支持 使用最新的 MPLAB IDE 确保得到最 好支持

194 Lab 1 项目建立 点击 File > New 产生新的项目文件. 也可以通过 File > Open 打开文件完成此操作. 可以在此处保存 workspace 以及 import 和 export 文件供后面使用.

195 Lab 1 项目建立 点击 Project > New Project 在 Workspace 中建立新的项目文件 输入项目名及路径

196 Lab 注意点 : 读 - 修改 - 写 Qcy = Fosc Instruction cycle = Fosc/4 PC Instruction fetched RB7:RB0 Instruction executed Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 PC PC + 1 PC + 2 PC + 3 MOVWF PORTB write to PORTB MOVF PORTB,W MOVWF PORTB write to PORTB TPD NOP Port pin sampled here MOVF PORTB,W NOP NOP 注意 : 本例显示对 PORTB 一次写指令后紧跟一条读指令. 注意到 : 数据建立时间 = (0. 25TCY-TPD ) 这里 TCY= 指令周期 TPD = 传播延时 因此, 在较高时钟频率时, 写操作后紧跟读操作可能会出现问题. 在反复读写口时要考虑口的负载

197 按钮 / 按键去抖或噪声输入 Check_key ;poll for key press btfsc PORTB,1 ; goto Check_key ; ; call Debounce_delay ;debounce signal btfsc PORTB,1 ;check for bouncing input goto Check_key ; return ; Routine to give delay for key bounce routine Debounce_delay.. delay routine here. return AN 566 contains debounce

198 Exercise #1: 启动 PICkit TM 1 软件 Step 1: 启动软件 Start->Programs-> PICkit 1 FLASH Start Kit- > PICkit 1 FLASH Starter Kit

199 装载 Exercise1.hex 到缓冲 Step 2: 找到 Exercise1.hex 并装入缓冲 File->Import HEX E:/PICkit1/Exercise/ C:/Program Files/Microchip/PICkit1/Exercise/

200 Step 4: 状态窗口 成功写入 Exercise1: 成功写入 Step 5: 成功装载后观察 PICkit TM 1 LED D0 应以 200ms 的速度闪烁 Write Successful

201 外设 : 数字 I/O 框图 VDD Data Bus D SET Q Write Port W Reg D CLR SET Q Data Latch Reset Q I/O Pin Tris f CLR Q Tris Latch Vss Read Port

第5章:汇编语言程序设计

第5章:汇编语言程序设计 第 5 章 : 汇编语言程序设计 程 汇编语言指令格式 系统伪指令 存储器选择方式 常用子程序 1 汇编语言程序设计 PIC 指令系统 语言系统 指 CPU 编 器语言 器语言 器语言 设计 用 语言 设计 语言 汇编语言 2 汇编语言指令格式 汇编语言指令格式 ( 指令 ) label opcode operand comment 指令 用 存 指令 指令语 3 汇编语言指令格式 1 指令 用 指令

More information

PIC16F F MPLAB 08 16F LED 15 LED

PIC16F F MPLAB 08 16F LED 15 LED PIC16F877 PIC16F877 03 16F877 05 06 MPLAB 08 16F877 13 LED 15 LED 17 20 24 2 PIC16F877 PIC16F877 DIP VDD VSS CLOCK CPU :,AND,OR,XOR ROM: CPU ROM RAM: CPU,CPU I/O:CPU, CPU,, 16F877 RAM 512 128 Bank Bank

More information

701PIC Introduction to PICMicro MCUs

701PIC Introduction to PICMicro MCUs 701 PIC PICmicro MCU 介绍 PIC16 系列产品的汇编编程 HANDS-ON Microchip Technology Incorporated. All Rights Reserved. 701 PIC PIC MCU - Introduction to Programming 1 日程 讲述部分 讲述 90 分钟 休息 20 分钟 实验部分 1 2 个实验 60 分钟 休息

More information

文件名

文件名 MICROCHIP PIC10F200/202/204/206 6 8 FLASH PIC10F200 PIC10F202 PIC10F204 PIC10F206 RISC CPU 33 12 8 8 4MHz 1 s 4MHz 1% TM ICSP TM ICD POR DRT WDT RC MCLR I/O /CMOS < 350 A @ 2V 4 MHz 100 na @ 2V FLASH 10000

More information

2.5 idlocs PIC idloc idloc 0x1234 ; 0x config idloc HEX errorlevel errorlevel Error (Warning) Message HEX 3-14 errorlevel

2.5 idlocs PIC idloc idloc 0x1234 ; 0x config idloc HEX errorlevel errorlevel Error (Warning) Message HEX 3-14 errorlevel 3.2.3 MPASM PIC 35 35 #include include #include MPASM include PIC MPLAB C:\Program Files\MPLAB IDE\MCHIP_Tools PIC.inc 3-01 #include ; PIC16F877A #include math.asm ; 3-01 MPASM MPLAB

More information

ICD ICD ICD ICD ICD

ICD ICD ICD ICD ICD MPLAB ICD2 MPLAB ICD2 PIC MPLAB-IDE V6.0 ICD2 usb PC RS232 MPLAB IDE PC PC 2.0 5.5V LED EEDATA MPLAB ICD2 Microchip MPLAB-IDE v6.0 Windows 95/98 Windows NT Windows 2000 www.elc-mcu.com 1 ICD2...4 1.1 ICD2...4

More information

INCF SEC1,F ; 將 SEC1+1 作查表取回對應數字 MOVF SEC1,W banksel STRING1 banksel PORTB RETFIE run_sec2: MOVF SEC2,W SUBLW.5 GOTO run_min ; 將秒個位數歸 0 CLRF SEC1 MOVL

INCF SEC1,F ; 將 SEC1+1 作查表取回對應數字 MOVF SEC1,W banksel STRING1 banksel PORTB RETFIE run_sec2: MOVF SEC2,W SUBLW.5 GOTO run_min ; 將秒個位數歸 0 CLRF SEC1 MOVL ;************************************************ ; Null Clock REV:1.0 by Jed ; www.xuan.idv.tw ;************************************************ INCLUDE P16F84A.INC LIST P=16F84A,R=Dec CONFIG _XT_OSC&_WDT_OFF

More information

AN579

AN579 深圳市英锐恩科技有限公司 单片机集成方案全方位解决服务商 优质智能电子产品 芯 方案解决商 Microchip 产品用户参考手册 深圳市英锐恩科技有限公司 ENROO-TECH(SHENZHEN)CO.,LTD 中国 深圳市福田区福华路嘉汇新城汇商中心 27 楼 2701 Enroo-Tech Technologies CO., Limited Light-Tech International Limited

More information

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor 1 4.1.1.1 (Load) 14 1.1 1 4.1.1.2 (Save) 14 1.1.1 1 4.1.2 (Buffer) 16 1.1.2 1 4.1.3 (Device) 16 1.1.3 1 4.1.3.1 (Select Device) 16 2 4.1.3.2 (Device Info) 16 2.1 2 4.1.3.3 (Adapter) 17 2.1.1 CD-ROM 2 4.1.4

More information

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha CYPOK CYPOK 1 UltraEdit Project-->Install Language Tool: Language Suite----->hi-tech picc Tool Name ---->PICC Compiler Executable ---->c:hi-picinpicc.exe ( Command-line Project-->New Project-->File Name--->myc

More information

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING 前言 - Andrew Payne 目录 1 2 Firefly Basics 3 COMPONENT TOOLBOX 目录 4 RESOURCES 致谢

More information

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0 SH79F6431 1. SH79F6431 1T 8051 FLASH SH79F JET51 Keil µ vision JTAG 1.1. SH79F6431 LQFP64 1.2. (Target Board) SH79F6431 1 V 1.0 1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F6431 1 2 1 B. 1(VCC/GND)

More information

目 录

目 录 1 Quick51...1 1.1 SmartSOPC Quick51...1 1.2 Quick51...1 1.3 Quick51...2 2 Keil C51 Quick51...4 2.1 Keil C51...4 2.2 Keil C51...4 2.3 1 Keil C51...4 2.4 Flash Magic...9 2.5 ISP...9 2.6...10 2.7 Keil C51...12

More information

目录

目录 ALTERA_CPLD... 3 11SY_03091... 3 12SY_03091...4....5 21 5 22...8 23..10 24..12 25..13..17 3 1EPM7128SLC.......17 3 2EPM7032SLC.......18 33HT46R47......19..20 41..20 42. 43..26..27 5151DEMO I/O...27 52A/D89C51...28

More information

33023A.book(31005A_cn.fm)

33023A.book(31005A_cn.fm) 第 5 章 CPU 和 ALU 目录 本章包括下面一些主要内容 : 5. 简介...5-2 5.2 指令的一般格式... 5-4 5.3 中央处理单元 (CPU)... 5-4 5.4 指令时钟... 5-4 5.5 算术逻辑单元 (ALU)... 5-5 5.6 状态寄存器... 5-6 5.7 OPTION_REG 寄存器... 5-8 5.8 电源控制寄存器... 5-9 5.9 设计技巧...

More information

EK-STM32F

EK-STM32F STMEVKIT-STM32F10xx8 软 件 开 发 入 门 指 南 目 录 1 EWARM 安 装... 1 1.1 第 一 步 : 在 线 注 册... 1 1.2 第 二 步 : 下 载 软 件... 2 1.3 第 三 步 : 安 装 EWARM... 3 2 基 于 STMEVKIT-STM32F10xx8 的 示 例 代 码 运 行... 6 2.1 GPIO Demo... 6 2.2

More information

1.ai

1.ai HDMI camera ARTRAY CO,. LTD Introduction Thank you for purchasing the ARTCAM HDMI camera series. This manual shows the direction how to use the viewer software. Please refer other instructions or contact

More information

Microsoft Word - MSP430 Launchpad 指导书.docx

Microsoft Word - MSP430 Launchpad 指导书.docx Contents 3... 9... 14 MSP430 LAUNCHPAD 指导书 3 第一部分第一个工程 New Project File > New > CCS Project Project name: ButtonLED Device>Family: MSP430 Variant: MSP430G2553 Project templates and examples : Empty Project

More information

1 TPIS TPIS 2 2

1 TPIS TPIS 2 2 1 1 TPIS TPIS 2 2 1. 2. 3. 4. 3 3 4 5 4 TPIS TPIS 6 5 350 Mark Coil F3/F6 350 M 150 M 25 M 7.12M 8 M F3 F6 F4 F7 F8 8M AA 7 350 28V 5V IC HCPL2731 0.5mA 6 8 (TPIS) TPIS 9 7 IC AT89C2051 AT89C2051 CMOS8

More information

untitled

untitled EDM12864-GR 1 24 1. ----------------------------------------------------3 2. ----------------------------------------------------3 3. ----------------------------------------------------3 4. -------------------------------------------------------6

More information

2 Keil µ vision 2.1 1) Keil µ vision2 V2.34 µ vision3 2) Sino_Keil.exe Keil c:\keil\ 3) JET51 USB PC C:\Keil\ USB PC 4) S-L

2 Keil µ vision 2.1 1) Keil µ vision2 V2.34 µ vision3 2) Sino_Keil.exe   Keil c:\keil\ 3) JET51 USB PC C:\Keil\ USB PC 4) S-L 1 SH88F516 8051 64K FLASH 1024 EEPROM SH88F516 JET51 S-Lab Keil µ vision ISP51 Keil µ vision ISP51 ISP51 PC RS232 MCU SH88F516 SH88F516 1.1 SH88F516 1.1 SH88F516 SH88Fxx: QFP44, DIP40 RAM Flash E2 ADC

More information

AL-M200 Series

AL-M200 Series NPD4754-00 TC ( ) Windows 7 1. [Start ( )] [Control Panel ()] [Network and Internet ( )] 2. [Network and Sharing Center ( )] 3. [Change adapter settings ( )] 4. 3 Windows XP 1. [Start ( )] [Control Panel

More information

ARM JTAG实时仿真器安装使用指南

ARM JTAG实时仿真器安装使用指南 ARM JTAG Version 1.31 2003. 11. 12 ARM JTAG ARM JTAG.3 ARM 2.1.4 2.2.4 ARM JTAG 3.1 18 3.2 18 3.2.1 Multi-ICE Server.18 3.2.2 ADS..21 ARM JTAG 4.1 Multi-ICE Server 33 4.1.1 Multi-ICE Server..... 33 4.1.2

More information

2 PIC PIC 1 / CPU PIC MCU PIC RC

2 PIC PIC 1 / CPU PIC MCU PIC RC 2 PIC PIC 1 /... 2-2 2... 2-3 3... 2-4 4... 2-4 5... 2-4 6 CPU... 2-5 7 PIC MCU... 2-6 8 PIC16... 2-6 9... 2-7 10... 2-7 11 RC... 2-7 12... 2-8 13... 2-8 14 NOP... 2-9 15 PMD... 2-9 16... 2-10 17 WDTWDT...

More information

Microsoft Word - S153B.doc

Microsoft Word - S153B.doc SAM8 P153B SAM8P153B 数据手册 14 引脚 8 位 I/O 型 OTP 单片机 盛明公司保留对以下所有产品在可靠性 功能和设计方面的改进作进一步说明的权利 盛明不承担由本手册所涉及的产品或电路的运用和使用所引起的任何责任, 盛明的产品不是专门设计来应用于外科植入 生命维持和任何盛明产品产生的故障会对个体造成伤害甚至死亡的领域 如果将盛明的产品用于上述领域, 即使这些是由盛明在产品设计和制造上的疏忽引起的,

More information

33023A.book(31006A_cn.fm)

33023A.book(31006A_cn.fm) 6 第 6 章存储器构成 存储器构成 目录 本章包括下面一些主要内容 : 6.1 简介...6-2 6.2 程序存储器构成... 6-2 6.3 数据存储器构成... 6-8 6.4 初始化... 6-14 6.5 设计技巧... 6-16 6.6 相关应用笔记... 6-17 6.7 版本历史... 6-18 2004 Microchip Technology Inc. DS31006A_CN 第

More information

ARM Cortex-M3 (STM32F) STMicroelectronics ( ST) STM32F103 Core: ARM 32-bit Cortex -M3 CPU 72 MHz, 90 DMIPS with 1.25 DMIPS/MHz Single-cycle multiplica

ARM Cortex-M3 (STM32F) STMicroelectronics ( ST) STM32F103 Core: ARM 32-bit Cortex -M3 CPU 72 MHz, 90 DMIPS with 1.25 DMIPS/MHz Single-cycle multiplica CP Chip Power ARM Cortex-M3 (STM32F) ARM Cortex-M3 (STM32F) STMicroelectronics ( ST) STM32F103 Core: ARM 32-bit Cortex -M3 CPU 72 MHz, 90 DMIPS with 1.25 DMIPS/MHz Single-cycle multiplication and hardware

More information

Bus Hound 5

Bus Hound 5 Bus Hound 5.0 ( 1.0) 21IC 2007 7 BusHound perisoft PC hound Bus Hound 6.0 5.0 5.0 Bus Hound, IDE SCSI USB 1394 DVD Windows9X,WindowsMe,NT4.0,2000,2003,XP XP IRP Html ZIP SCSI sense USB Bus Hound 1 Bus

More information

C语言的应用.PDF

C语言的应用.PDF AVR C 9 1 AVR C IAR C, *.HEX, C,,! C, > 9.1 AVR C MCU,, AVR?! IAR AVR / IAR 32 ALU 1KBytes - 8MBytes (SPM ) 16 MBytes C C *var1, *var2; *var1++ = *--var2; AVR C 9 2 LD R16,-X ST Z+,R16 Auto (local

More information

BC04 Module_antenna__ doc

BC04 Module_antenna__ doc http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 1 of 10 http://www.infobluetooth.com TEL:+86-23-68798999 Fax: +86-23-68889515 Page 2 of 10 http://www.infobluetooth.com TEL:+86-23-68798999

More information

DPJJX1.DOC

DPJJX1.DOC 8051 111 2K 1 2 3 ' ' 1 CPU RAM ROM / A/D D/A PC CPU 40 68 10 20 8 51 PIII 8051 2 MCS51 8051 8031 89C51 8051 8031 89C51? MCS51 INTEL INTEL 8031 8051 8751 8032 8052 8752 8051 8051 8051 MCS51 8031 8031

More information

Tel:010-62981668-2930 1

Tel:010-62981668-2930  1 Access 93C46 with SPI function V1.0.0 Jan. 31, 2005 http://www.sunplusmcu.com Tel:010-62981668-2930 http://www.sunplusmcu.com E-mail:mcu@sunplus.com.cn 1 0 0...2 1...3 2...4 2.1...4 2.2...5 3...6 3.1 AT93C46...6

More information

Guide to Install SATA Hard Disks

Guide to Install SATA Hard Disks SATA RAID 1. SATA. 2 1.1 SATA. 2 1.2 SATA 2 2. RAID (RAID 0 / RAID 1 / JBOD).. 4 2.1 RAID. 4 2.2 RAID 5 2.3 RAID 0 6 2.4 RAID 1.. 10 2.5 JBOD.. 16 3. Windows 2000 / Windows XP 20 1. SATA 1.1 SATA Serial

More information

Section1_16bit Arc.ppt

Section1_16bit Arc.ppt 16-bit Elite Program 2009 Summer Section-1 Microchip 16-bit 2005 Microchip Technology Incorporated. All Rights Reserved. Slide 1 MCU CPU (NOP),, (Data Memory), I/O CPU w. ALU/Working Reg. Data Mem. Data

More information

TX-NR3030_BAS_Cs_ indd

TX-NR3030_BAS_Cs_ indd TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5

More information

Windows XP

Windows XP Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE DEVELOPMENT PROGRAM OF THE PC MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE DEVELOPMENT PROGRAM OF THE PC 4.1 Converting Assembly Language Instructions to

More information

untitled

untitled CPU!! 00-11-8 Liping zhang, Tsinghua 1 : ADD(r1, r, r) CMPLEC(r, 5, r0) MUL(r1, r, r) SUB(r1, r, r5) ADD r, ( ) r CMP. CMP r.. t t + 1 t + t + t + t + 5 t + 6 IF( ) ADD CMP MUL SUB RF NOP ADD CMP MUL SUB

More information

Microsoft PowerPoint - STU_EC_Ch08.ppt

Microsoft PowerPoint - STU_EC_Ch08.ppt 樹德科技大學資訊工程系 Chapter 8: Counters Shi-Huang Chen Fall 2010 1 Outline Asynchronous Counter Operation Synchronous Counter Operation Up/Down Synchronous Counters Design of Synchronous Counters Cascaded Counters

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8 els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8 Yamaha ELS-0/0C..8 LCD ELS-0/0C v. typeu LCD ELS-0/0C typeu / -6 / [SEARCH] / - ZH ELS-0/0C.8 els0xu_zh_nf_v8.book Page Wednesday, June,

More information

audiogram3 Owners Manual

audiogram3 Owners Manual USB AUDIO INTERFACE ZH 2 AUDIOGRAM 3 ( ) * Yamaha USB Yamaha USB ( ) ( ) USB Yamaha (5)-10 1/2 AUDIOGRAM 3 3 MIC / INST (XLR ) (IEC60268 ): 1 2 (+) 3 (-) 2 1 3 Yamaha USB Yamaha Yamaha Steinberg Media

More information

1.1 ML_ONOFF = 1 Q 3 Q 8 C 0.3V M 2 L 1 ML_ONOFF = 0 Q 3 Q 8 C 1. + R31 VCC R21 10K ML_ONOFF R15 0:off 1:on 1K Green Light VCC=5V L1 Q VDD=12V C

1.1 ML_ONOFF = 1 Q 3 Q 8 C 0.3V M 2 L 1 ML_ONOFF = 0 Q 3 Q 8 C 1. + R31 VCC R21 10K ML_ONOFF R15 0:off 1:on 1K Green Light VCC=5V L1 Q VDD=12V C AUTOMATIC TROLLEY H K Hwang K K Chen J-S Lin S-C Wang M-L Li C-C Lin W-B Lin Dept. Of Electrical Engineering Far East College ABSTRACT This paper proposes an automatic trolley which can move automatically

More information

(Guangzhou) AIT Co, Ltd V 110V [ ]! 2

(Guangzhou) AIT Co, Ltd V 110V [ ]! 2 (Guangzhou) AIT Co, Ltd 020-84106666 020-84106688 http://wwwlenxcn Xi III Zebra XI III 1 (Guangzhou) AIT Co, Ltd 020-84106666 020-84106688 http://wwwlenxcn 230V 110V [ ]! 2 (Guangzhou) AIT Co, Ltd 020-84106666

More information

K7VT2_QIG_v3

K7VT2_QIG_v3 ............ 1 2 3 4 5 [R] : Enter Raid setup utility 6 Press[A]keytocreateRAID RAID Type: JBOD RAID 0 RAID 1: 2 7 RAID 0 Auto Create Manual Create: 2 RAID 0 Block Size: 16K 32K

More information

<4D F736F F F696E74202D B5A5C6ACBBFAD3EBB5E7D7D3CFB5CDB3C9E8BCC62E707074>

<4D F736F F F696E74202D B5A5C6ACBBFAD3EBB5E7D7D3CFB5CDB3C9E8BCC62E707074> 一. 高性能的 RISC 结构 CPU 1. 哈佛双总线结构程序总线和数据总线独立, 避免了瓶颈现象. 2. RISC 指令集 ( 精简指令集 ) 具有指令 33/35/58 条, 因此易学易用. 3. 指令周期大部分为单周期指令 ( 分支指令除外 ). 4. 执行速度大部分指令周期在 (200ns-1us) PIC17XX 是目前执行速度最快的 8 位单片机 5. 多级硬件堆栈可为 2 8 16

More information

Microsoft PowerPoint - ATF2015.ppt [相容模式]

Microsoft PowerPoint - ATF2015.ppt [相容模式] Improving the Video Totalized Method of Stopwatch Calibration Samuel C.K. Ko, Aaron Y.K. Yan and Henry C.K. Ma The Government of Hong Kong Special Administrative Region (SCL) 31 Oct 2015 1 Contents Introduction

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE DEVELOPMENT PROGRAM OF THE PC General instruction format for machine code 611 37100 微處理機原理與應用 Lecture 04-4 MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE

More information

CANVIO_AEROCAST_CS_EN.indd

CANVIO_AEROCAST_CS_EN.indd 简 体 中 文...2 English...4 SC5151-A0 简 体 中 文 步 骤 2: 了 解 您 的 CANVIO AeroCast CANVIO AeroCast 无 线 移 动 硬 盘 快 速 入 门 指 南 欢 迎 并 感 谢 您 选 择 TOSHIBA 产 品 有 关 您 的 TOSHIBA 产 品 的 详 情, 请 参 阅 包 含 更 多 信 息 的 用 户 手 册 () 安

More information

IP505SM_manual_cn.doc

IP505SM_manual_cn.doc IP505SM 1 Introduction 1...4...4...4...5 LAN...5...5...6...6...7 LED...7...7 2...9...9...9 3...11...11...12...12...12...14...18 LAN...19 DHCP...20...21 4 PC...22...22 Windows...22 TCP/IP -...22 TCP/IP

More information

2/80 2

2/80 2 2/80 2 3/80 3 DSP2400 is a high performance Digital Signal Processor (DSP) designed and developed by author s laboratory. It is designed for multimedia and wireless application. To develop application

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

学习MSP430单片机推荐参考书

学习MSP430单片机推荐参考书 MSP430 16 MSP430 C MSP430 C MSP430 FLASH 16 1 CPU 16 ALU 16 PC SP SR R4~R15 2 3 00-FFH 100-1FFH 4 5 1 2 51 24 27 6 1 2 3 4 5 6 4 12 SR SP SR CPU SR CPU C Z N GIE CPUOff CPU OscOff SCG0 SCG1 CPU EXIT SP

More information

68369 (ppp quickstart guide)

68369 (ppp quickstart guide) Printed in USA 04/02 P/N 68369 rev. B PresencePLUS Pro PC PresencePLUS Pro PresencePLUS Pro CD Pass/Fails page 2 1 1. C-PPCAM 2. PPC.. PPCAMPPCTL 3. DB9D.. STPX.. STP.. 01 Trigger Ready Power 02 03 TRIGGER

More information

P4V88+_BIOS_CN.p65

P4V88+_BIOS_CN.p65 1 Main H/W Monitor Boot Security Exit System Overview System Time System Date [ 17:00:09] [Wed 12/22/2004] BIOS Version : P4V88+ BIOS P1.00 Processor Type : Intel (R) Pentium (R) 4 CPU 2.40 GHz Processor

More information

51 C 51 isp 10 C PCB C C C C KEIL

51 C 51 isp 10   C   PCB C C C C KEIL http://wwwispdowncom 51 C " + + " 51 AT89S51 In-System-Programming ISP 10 io 244 CPLD ATMEL PIC CPLD/FPGA ARM9 ISP http://wwwispdowncom/showoneproductasp?productid=15 51 C C C C C ispdown http://wwwispdowncom

More information

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡 Tips of the Week 课 堂 上 的 英 语 习 语 教 学 ( 二 ) 2015-04-19 吴 倩 MarriottCHEI 大 家 好! 欢 迎 来 到 Tips of the Week! 这 周 我 想 和 老 师 们 分 享 另 外 两 个 课 堂 上 可 以 开 展 的 英 语 习 语 教 学 活 动 其 中 一 个 活 动 是 一 个 充 满 趣 味 的 游 戏, 另 外

More information

2 14 PORTC.1 PORTB.3 PORTA.2/T0 GND PORTB.2 PORTA.0 PORTC.3 PORB.0/OSCO PORTB.1/OSCI PORTC.0 PORTC.2 SH69P21 /SOP PORTA

2 14 PORTC.1 PORTB.3 PORTA.2/T0 GND PORTB.2 PORTA.0 PORTC.3 PORB.0/OSCO PORTB.1/OSCI PORTC.0 PORTC.2 SH69P21 /SOP PORTA 1K 4 SH6610C 4 OTP ROM 1K X 16 RAM 88 X 4-24 - 64 2.4V-5.5V - fosc = 30kHz - 4MHz, = 2.4V - 5.5V - fosc = 4MHz - 8MHz, = 4.5V - 5.5V 11 CMOS I/O 4 ( ) 8 / - 0 PORTA.0 ( / / ) - 0 - PORTB ( ) ( ) - 32.768kHz,

More information

P4VM800_BIOS_CN.p65

P4VM800_BIOS_CN.p65 1 Main H/W Monitor Boot Security Exit System Overview System Time System Date [ 17:00:09] [Fri 02/25/2005] BIOS Version : P4VM800 BIOS P1.00 Processor Type : Intel (R) Pentium (R) 4 CPU 2.40 GHz Processor

More information

bingdian001.com

bingdian001.com TSM12M TSM12 STM8L152C6, STM8L152R8 MSP430F5325 whym1987@126.com! /******************************************************************************* * : TSM12.c * : * : 2013/10/21 * : TSM12, STM8L f(sysclk)

More information

USB解决方案.ppt

USB解决方案.ppt USB USB? RS232 USB USB HID U modem ADSL cable modem IrDA Silabs USB CP210x USB UART USB RS-232 USB MCU 15 USB 12 FLASH MCU 3 USB MCU USB MCU C8051F32x 10 ADC 1.5%, Vref CPU 25MIPS 8051 16KB Flash -AMUX

More information

P3B-F Pentium III/II/Celeron TM

P3B-F Pentium III/II/Celeron TM P3B-F Pentium III/II/Celeron TM 1999 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 13 R PS2 KBMS USB COM1 COM2 JTPWR ATXPWR PWR_FAN CPU_FAN Row 0 1 2 3 4 5 6 7 DSW JP20

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt 8088/8086 MICROPROCSOR PROGRAMMING INTEGER INSTRUCTIONS AND COMPUTATIONS The MOVE The move (MOV) instruction is used to transfer a byte or a word of data from a source operand to a destination operand

More information

Ác Åé å Serial ATA ( Sil3132) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS RAID (4) SATA (5) SATA (a) S A T A ( S A T A R A I D ) (b) (c) Windows XP

Ác Åé å Serial ATA ( Sil3132) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS RAID (4) SATA (5) SATA (a) S A T A ( S A T A R A I D ) (b) (c) Windows XP Serial ATA ( Sil3132)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 6 (4) S A T A... 10 (5) S A T A... 12 Ác Åé å Serial ATA ( Sil3132) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS

More information

33023A.book(31001A_cn.fm)

33023A.book(31001A_cn.fm) 1 第 1 章 简 介 简 介 目 录 本 章 包 括 下 面 一 些 主 要 内 容 : 1.1 简 介...1-2 1.2 本 手 册 的 宗 旨... 1-3 1.3 器 件 结 构... 1-4 1.4 开 发 支 持... 1-6 1.5 器 件 种 类... 1-7 1.6 格 式 和 符 号 的 约 定... 1-12 1.7 相 关 文 档... 1-14 1.8 相 关 应 用 笔

More information

12232A LED LED LED EL EL CCFL EL CCF

12232A LED LED LED EL EL CCFL EL CCF 12232A 0 50-20 +70-30 +85 LED LED LED EL EL CCFL EL CCF 122 x 32 1/32Duty 1/5Bias 6:00 STN( ), EL LED EL/100VAC 400HZ LED/4.2VDC 1 / VDD-VSS 0 6.5 V Ta=25 LCD VDD-V0 0 12.0 V V1 0 VDD V VDD-VSS - 4.75

More information

穨control.PDF

穨control.PDF TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

1 CPU

1 CPU 2000 Tel 82316285 82317634 Mail liuxd@buaa.edu.cn 1 CPU 2 CPU 7 72 A B 85 15 3 1/2 M301 2~17 : 3/4 1/2 323 IBM PC 1. 2. 3. 1. 2. 3. 1.1 Hardware Software 1.2 M3 M2 M1 1.2 M3 M1 M2 M2 M1 M1 M1 1.2 M3 M1

More information

Microsoft PowerPoint - AWOL - Acrobat Windows Outlook.ppt [Compatibility Mode]

Microsoft PowerPoint - AWOL - Acrobat Windows Outlook.ppt [Compatibility Mode] AWOL Windows - Tips & Tricks Resolution, color depth & refresh rate Background color Service packs Disk cleanup (cleanmgr) Disk defragmentation AWOL Windows Resolution, Color Depth & Refresh Rate The main

More information

mdt1030

mdt1030 深圳市英锐恩科技有限公司 第 1 页 单片机集成方案全方位解决服务商 优质智能电子产品 芯 方案解决商 Micon MDT1030 产品用户参考手册 全球销售及服务联系信息 : 深圳市英锐恩科技有限公司 ENROO-TECH(SHENZHEN)CO.,LTD 中国 深圳市福田区福华路嘉汇新城汇商中心 27 楼 2701 室 Enroo-Tech Technologies CO., Limited Light-Tech

More information

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63> 2010 年 理 工 类 AB 级 阅 读 判 断 例 题 精 选 (2) Computer mouse How does the mouse work? We have to start at the bottom, so think upside down for now. It all starts with mouse ball. As the mouse ball in the bottom

More information

PIC16F87X基本指令說明

PIC16F87X基本指令說明 PIC16F87X 基本指令說明 ADDLW K 是 Add Literal and W 縮寫,ADDLW K 此指令是將 W 的內容與數值 K 相加, 並將加完結果存於 W 內 即 (W)+K (W) 例 :W=0X11,K=0X15, 執行 ADDLW K 之後, 結果為 W=0X26,K=0X15 ADDWF 是 Add W and f 縮寫,ADDWF F,d 此指令是將 W 之內容與 RAM(file)

More information

目录 1. 产品简介 功能特性 引脚图 引脚描述 中央处理器 (CPU) 程序存储器 (OTP ROM) 堆栈 数据存储器 (RAM) INDF 寄存器.

目录 1. 产品简介 功能特性 引脚图 引脚描述 中央处理器 (CPU) 程序存储器 (OTP ROM) 堆栈 数据存储器 (RAM) INDF 寄存器. SQ013L 数据手册 8 引脚 8 位 I/O 型 OTP 单片机 - 1 - 目录 1. 产品简介... 4 1.1 功能特性... 4 1.2 引脚图... 5 1.3 引脚描述... 5 2. 中央处理器 (CPU)... 6 2.1 程序存储器 (OTP ROM)... 6 2.2 堆栈... 6 2.3 数据存储器 (RAM)... 7 2.3.1 INDF 寄存器... 9 2.3.2

More information

DR2010.doc

DR2010.doc DR/2010 HACH 11-8-96-2 HACH. DR/2010, / UL E79852 CSA C22.223 LR 58275 VDE GS 1015-92 FCC"A" 15 : AMADOR CORP, HACH. EN50 011/CISPR 11 "B" (EMI)/89/336/EEC/EMC: AMADOR CORP, HACH.. EN50 082-1( )/89/226/EEC

More information

行业

行业 PCI-1710 1.1...2 1.1.1...2 1.1.2...2 1.1.3 FIFO( )...2 1.1.4...2 1.1.5...2 1.1.6 16 16...3 1.1.7...3 1.2...3 1.3...3 2.1...3 2.2...4 2.2.1...4 2.2.2...5 2.3...9 2.3.1...10 2.3.2... 11 2.3.3...12 2.3.4...12

More information

: WICE-PIC 1.1 WICE-PIC 1.2 WICE-PIC : WICE-PIC WICE-PIC 2.5 WICE-PIC 2.6 : : : : A. B.E.V.Board 1. Internet Internet WWW: http//

: WICE-PIC 1.1 WICE-PIC 1.2 WICE-PIC : WICE-PIC WICE-PIC 2.5 WICE-PIC 2.6 : : : : A. B.E.V.Board 1. Internet Internet WWW: http// : WICE-PIC 1.1 WICE-PIC 1.2 WICE-PIC : WICE-PIC 2.1 2.2 2.3 2.4 WICE-PIC 2.5 WICE-PIC 2.6 : : : : A. B.E.V.Board 1. Internet Internet WWW: http//www.leap.com.tw 2. : TEL: 886-2-7884800 FAX: 886-2-6512307

More information

行业

行业 PCL-1800 PCL-1800 1.1...2 1.1.1 1K FIFO...2 1.1.2...2 1.1.3 16...3 1.1.4...3 1.1.5...3 1.1.6...3 1.2...3 1.3...4 1.4...5 2.1...5 2.2...6 2.2.1...6 2.2.2...6 2.2.3 D/A...7 2.2.4...7 2.2.5 TRIG0 GATE0...8

More information

Gerotor Motors Series Dimensions A,B C T L L G1/2 M G1/ A 4 C H4 E

Gerotor Motors Series Dimensions A,B C T L L G1/2 M G1/ A 4 C H4 E Gerotor Motors Series Size CC-A Flange Options-B Shaft Options-C Ports Features 0 0 5 5 1 0 1 0 3 3 0 0 SAE A 2 Bolt - (2) 4 Bolt Magneto (4) 4 Bolt Square (H4) 1.0" Keyed (C) 25mm Keyed (A) 1.0' 6T Spline

More information

KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone,

KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone, KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone, respectively, and has been certified by the developer

More information

PowerPoint Presentation

PowerPoint Presentation TOEFL Practice Online User Guide Revised September 2009 In This Guide General Tips for Using TOEFL Practice Online Directions for New Users Directions for Returning Users 2 General Tips To use TOEFL Practice

More information

2_dvdr3380_97_CT_21221b.indd

2_dvdr3380_97_CT_21221b.indd 64 65 66 ALL 3 67 a STANDBY-ON 2 a b c d e f g h i j k l b TIMER c SYSTEM-MENU d e SELECT f REC g. > h TOP MENU i ANGLE j RETURN k SUBTITLE l REC MODE 68 m n REC SOURCE o DISC-MENU p OK q EDIT r PLAYÉ

More information

PROTEUS VSM

PROTEUS  VSM Proteus VSM-- 1/1 PROTEUS VSM Proteus VSM ISIS Prospice VSM Proteus PROSPICE ARM7 PIC AVR HC11 8051 CPU LCD RS232 LED IAR Keil Hitech C make 6000 SPICE SPICE DLL SPICE3F5 14 FM PROTEUS PCB LED/LCD / 300

More information

JTAG ICE PC JTAG ICE JTAG ISP... 5 IDE AVR STUDIO JTAGICE JTAGICE... 12

JTAG ICE PC JTAG ICE JTAG ISP... 5 IDE AVR STUDIO JTAGICE JTAGICE... 12 ... 3... 3... 3... 3... 4 1JTAG ICE PC... 4 2JTAG ICE... 4 3... 4 4... 4 5JTAG... 5 6ISP... 5 IDE... 6 1 AVR STUDIO... 6 2 JTAGICE... 6 3JTAGICE... 12 4.... 16 5.... 17 6. JTAG ICE... 19 ISP... 20 1PonyProg2000...

More information

WinMDI 28

WinMDI 28 WinMDI WinMDI 2 Region Gate Marker Quadrant Excel FACScan IBM-PC MO WinMDI WinMDI IBM-PC Dr. Joseph Trotter the Scripps Research Institute WinMDI HP PC WinMDI WinMDI PC MS WORD, PowerPoint, Excel, LOTUS

More information

Microsoft PowerPoint - CA_02 Chapter5 Part-I_Single _V2.ppt

Microsoft PowerPoint - CA_02 Chapter5 Part-I_Single _V2.ppt Chapter5- The Processor: Datapath and Control (Single-cycle implementation) 臺大電機系吳安宇教授 V. 3/27/27 V2. 3/29/27 For 27 DSD Course 臺大電機吳安宇教授 - 計算機結構 Outline 5. Introduction 5.2 Logic Design Conventions 5.3

More information

ebook140-8

ebook140-8 8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4

More information

DESCRIPTION

DESCRIPTION 8Bit CMOS OTP MCU 器件特性 RISC CPU: 仅需 35 条指令大部分指令仅需一个时钟周期存储器 1K x14 OTP ROM 48 Byte RAM 4 级堆栈时钟系统内置振荡 : Max: 4MHz ±2%.(3.3~5.5V) Max: 2MHz±2%.(2.4~3.3V) RC 振荡 : 外部晶体振荡 : IO 引脚配置输入输出双向 IO 口 : RA RC 单向输入引脚

More information

FM1935X智能非接触读写器芯片

FM1935X智能非接触读写器芯片 FM33A0xx MCU 2017. 05 2.0 1 (http://www.fmsh.com/) 2.0 2 ... 3 1... 4 1.1... 4 1.2... 4 1.3... 5 1.3.1... 5 1.3.2... 5 1.4... 8 1.4.1 LQFP100... 8 1.4.2 LQFP80... 9 1.4.3... 9 2... 15 2.1 LQFP100... 15

More information

行业

行业 PCI-1711/1711L 1.1...2 1.1.1...2 1.1.2...2 1.1.3 FIFO...2 1.1.4...2 1.1.5 16 16...3 1.2...3 2.1...3 2.2...3 2.2.1... 2.2.2...8 2.3...10 2.3.1...10 2.3.2... 11 2.3.3...12 2.3.4...13 2.4.5...14 3.1...16

More information

untitled

untitled niosii H:\DB2005\project\niosDK\Example\NiosSmall QuartusII4.2 File -> New Project Wizard Diectory,Name,Top-Level Entity Add Files EDA Tools Setting Finish, OK H:\DB2005\project\niosDK\Example\NiosSmall

More information

Gerolor Motors Series Dimensions A,B C T L L G1/2 M8 G1/ A 4 C H4 E

Gerolor Motors Series Dimensions A,B C T L L G1/2 M8 G1/ A 4 C H4 E Gerolor Motors Series Size CC-A Flange Options-B Shaft Options-C Ports Features 0 0 12 12 1 1 0 0 2 2 31 31 0 0 SAE A 2 Bolt - (2) 4 Bolt Magneto (4) 4 Bolt Square (H4) 1.0" Keyed (C) 2mm Keyed (A) 1.0'

More information

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I 2004 5 IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I Abstract The techniques of digital video processing, transferring

More information

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice 路 ESW 聯 USB Chapter 9 Applications For Windows Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice USB I/O USB / USB 3 料 2 1 3 路 USB / 列 料 料 料 LED

More information

33023A.book(31026A_cn.fm)

33023A.book(31026A_cn.fm) 26 第 26 章看门狗定时器与休眠模式 目录 看门狗定时器与休眠模式 本章包括下面一些主要内容 : 26.1 简介... 26-2 26.2 控制寄存器... 26-3 26.3 看门狗定时器 (WDT) 的操作... 26-4 26.4 休眠省电模式... 26-7 26.5 初始化... 26-9 26.6 设计技巧... 26-10 26.7 相关应用笔记... 26-11 26.8 版本历史...

More information

Microsoft Word doc

Microsoft Word doc 中 考 英 语 科 考 试 标 准 及 试 卷 结 构 技 术 指 标 构 想 1 王 后 雄 童 祥 林 ( 华 中 师 范 大 学 考 试 研 究 院, 武 汉,430079, 湖 北 ) 提 要 : 本 文 从 结 构 模 式 内 容 要 素 能 力 要 素 题 型 要 素 难 度 要 素 分 数 要 素 时 限 要 素 等 方 面 细 致 分 析 了 中 考 英 语 科 试 卷 结 构 的

More information

入學考試網上報名指南

入學考試網上報名指南 入 學 考 試 網 上 報 名 指 南 On-line Application Guide for Admission Examination 16/01/2015 University of Macau Table of Contents Table of Contents... 1 A. 新 申 請 網 上 登 記 帳 戶 /Register for New Account... 2 B. 填

More information