微算機原理與實驗 Principle of Microcomputer(UEE 2301/1071 )

Size: px
Start display at page:

Download "微算機原理與實驗 Principle of Microcomputer(UEE 2301/1071 )"

Transcription

1 微算機原理與實驗 (UEE 2301/1071 ) Chap 6. MCS-51 Instruction sets 宋開泰 Office:EE709 Phone: ( 校內分機 :31865) ktsong@mail.nctu.edu.tw URL: 1

2 Lab#3 5 x 7 單色點矩陣 LED(Dot Matrix) 實驗

3 原理說明 單色點矩陣就像是一個增強型的 7-segment 顯示器, 藉由排列成矩陣狀的 LED 之明暗, 來顯示文字或圖形 在程式撰寫時一樣是使用查表法來顯示 然而一次只能控制點矩陣顯示一排, 因此可以使用顯示 4 個 7 段顯示器時同樣的技巧, 利用視覺暫留的原理使得人眼看起來像是 5 排同時在顯示

4 範例 : 欲顯示 中

5 範例 :

6 範例 :

7 範例 :

8 範例 :

9 範例 :

10 DEMO 1. 請撰寫一個程式, 在點矩陣顯示器上顯示一個字或部首 2. 請撰寫一個程式, 在點矩陣顯示器上顯示一串文字跑馬燈或動畫 ( 至少有 3 個不同畫面 )

11 程式 1 流程 初始化 選擇其中一排 讀取 TABLE 並顯示 No Delay 選擇下一排 是否顯示完一個字? Yes

12 程式 2 流程 初始化 設定 TABLE 起始位置 讀取 TABLE 並重複顯示該字 No No 是否達到重複次數? Yes 移動 TABLE 起始位置 是否顯示完所有畫面? Yes

13 JMP START ORG 50H START: MOV DPTR,#TABLE RESET: MOV R0,#01H MOV R1,#00H LOOP: MOV A,R1 MOVC MOV P1,A INC R1 MOV A,R0 MOV P2,A RL A CALL DELAY MOV R0,A CJNE R0,# B,LOOP JMP RESET DELAY: MOV R2,#25 D1: MOV R3,#10 DJNZ R3,$ DJNZ R2,D1 RET TABLE: DB B DB B DB B DB B DB B DB B END 13

14 LAB #4 文字型 LCD 實驗

15 Intelligent Peripherals 1. Set its function through programming 2. Values in the registers determine operation modes 3. Flexible to use 8051 LCM LCD Module 15

16 實驗原理 本次實驗使用 16 2 的文字型 LCD 顯示器 目前所使用之 LCD 顯示器多半整合了控制電路以及驅動電路, 所以又可稱為 LCD 模組 (LCD Module, LCM) 因 LCM 與 8051 之執行速度有所差異, 程式當中必須加入適當的延遲, 或是透過檢查 LCM 的忙碌旗標來得知傳送下一筆指令或資料的時機

17 Busy Flag(BF) 讀取 BF( 當 RS=0,R/W=1 時 ) 指令碼 : DB7 DB6 DB0 BF=1 LCM 忙碌中, 無法接收微控器指令 BF=0 LCM 可接收資料或指令

18 LCD Module (LCM) Interface 14-pin LCD controller 1. Vss GND 2. Vdd +5V 3. Vee LCD drive supply, may be negative wrt GND 4. RS Register select 5. R/nW read/write 6. E Enable 7. DB0 Data bit 0 8. DB1 9. DB2 10. DB3 11. DB4 12. DB5 13. Db6 14. DB7 Data bit 7 18

19 Display Data RAM (DDRAM) 80 characters Display windows :16 (or 20) characters/ line x 2 lines DDRAM 40 characters x 2 lines 19

20 Character set Character Generator ROM (CGROM) 192 characters programmed 96 ASCII characters, accessed by ASCII codes 64 Japanese characters 32 Special characters Character Generator RAM (CGRAM) 8 user defined characters 20

21 LCD Controller Control operation Instructions Write to LCD module --For setting operation modes Status Read the status byte Instructions are sent to LCD controller by RS = L R/nW =L 21

22 Status Byte RS = L (control) R/nW = H (read) Bit pattern: BF AC6 AC5 AC4 AC3 AC2 AC1 AC0 BF =1 LCD controller is busy BF =0 otherwise, Controller can accept instructions AC0 ~ AC6, 7-bit address counter AC reports the current DDRAM address if operation on DDRAM 22

23 Instruction Sets No Instruction RS R/nW D7 D6 D5 D4 D3 D2 D1 D0 Action 1 2 Clear display Cursor home X 3 Mode I/nD S 4 5 Display & cursor on/off Shift cursor or display D C B S/nC R/nL X X 23

24 Instruction Sets (continued) No Instruction RS R/nW D7 D6 D5 D4 D3 D2 D1 D0 Action Function set CG RAM address DD RAM address DL N F X X AC5 AC4 AC3 AC2 AC1 AC AC6 AC5 AC4 AC3 AC2 AC1 AC0 9 Busy flag 0 1 BF Address 10 Write data 1 0 Data 11 Read data 1 1 Data 24

25 Instructions Initialization instruction Cursor instructions Display instruction CGRAM instruction Status inquiring Example: DL N F x x x x Data Length: 8-bit Two display lines 5x7 pixels 25

26 按照各自 LCM 上所顯示的腳位接線 (1~14), 不用接 14 1

27 Demo 項目 1) 撰寫一個程式, 使得 LCM 能夠分別在第一行與第二行顯示出 Hello!! 以及自己的學號 xxxxxxx 2) 撰寫一個程式, 使 LCM 顯示出 Microcomputer is very interesting!! 1. 當第一行滿格時即換行 2. 第二行滿格時, 讓 LCM 將舊資料往左移, 新資料顯示在最右邊的位置

28 (1) 第一行填滿時換行顯示 (2) 當第二行填滿時, 再輸入!, 輸出為 (3) 再次輸入!, 輸出為

29 程式流程圖

30

31 結報討論 如何指定文字顯示在 LCM 位置為 42H 的地方?( 寫設定的指令與說明即可 ) 當 LCM 資料已被寫滿, 又有新的資料輸入時, 應該如何設定才能讓 LCM 會將舊資料往左移, 新資料顯示在最右邊的位置? ( 寫出設定的指令與說明即可 )

32 MCS-51 指令簡介 instruction sets 共有 111 個指令 49 個 1-byte instruction 45 個 2-byte instruction 17 個 3-byte instruction 指令之種類 : 1. Data Transfer 2. Arithmetic Operation 3. Logic Operation 4. Boolean-Variable or Bit-variable operation 5. Program Branching 32

33 1. Data Transfer(1/3) MOV destination, source Ex: MOV A, R0 XCH destination, source Ex: XCH A, R0 Destination source A R0~R7 Data memory Stack DPTR A R0~R7 Data memory Program memory Immediate data stack 33

34 資料轉移指令之 Mnemonic(2/3) MOV MOVX MOVC PUSH POP XCH XCHD 例 1. XCHD if A=F3H, R1=40H A=FBH 40H RAM FBH 40H F3H 34

35 資料轉移指令之 Mnemonic(3/3) 例 2. MOV DPTR, #10F4H MOVX MOV R6, A INC DPTR MOVX MOV R7, A 10F5H 10F4H (R7)=? 34H 12H 35

36 5. Program Branching(1/6) ACALL LCALL RET RETI AJMP LJMP AJMP SJMP JMP (GENERIC Jump) (JUMP TABLES) JZ 若 (A)=0 則 Jump JNZ CJNE DJNZ NOP 36

37 5. Program Branching (2/6) MOV MOV RL (Index addressing) JMP JUMP_TABLE: AJMP CASE0 AJMP CASE1 AJMP CASE2 AJMP CASE3 DPTR, #JUMP_TABLE A, #INDEX_NUMBER Index-number is 0 ~ 3 Each entry in the jump table is a twobyte address, offset 變成 0~6 37

38 5. Program Branching (3/6) Suppose the jump table begins at code memory location 8100H Address content D E F0 A10 A9 A ) 2K Block of code memory 8000H to 87FFH 2) Case0 begins at address 80D8H 3) Case3 begins at address F 0 H AJMP A7 A0 38

39 5. Program Branching (4/6) Conditional Jump specify the destination address using relative addressing limited to a jump distance of 128~127 Bytes DJNZ (decrement and jump if not zero) loop control LOOP: MOV R7, #10 (begin loop) (end loop) DJNZ (continue) R7, LOOP 39

40 5. Program Branching (5/6) CJNE(compare and jump if not equal) SKIP: CJNE SJMP (continue) A, #03, SKIP TERMINATE In this example, there is a read into the accumulator from the serial port; the data obtained is : Control_C (03H) Jump is executed only if the two bytes are not equal. 如果是 Control_C 則 Terminate. 40

41 5. Program Branching (6/6) CJNE Actually, in execution of this instruction, if the first is less than the second, then the carry flag is set CJNE A, #20H, $+3 JNC BIG CJNE:3-byte instruction 不管何種狀況皆執行 JNC BIG 但 carry set 的話就不 jump BIG, A=20H 執行 JNC, C=0, jump to BIG A>20H, C=0, jump to BIG (PC) (PC)+3 IF (A) <> (direct) Then (PC) (PC)+relative address IF (A) < (direct) ( C ) 1 Else ( C ) 0 $: Address of the current instruction 41

42 2. Arithmetic Operation(1/11) ADD A, 7FH; Direct ADD Indirect ADD A, R7; Register ADD A, #35H; Immediate These instructions are 1 machine cycle. INC DPTR (2) MUL AB (4) DIV AB DEC ADDC add with carry SUBB subtract with borrow 42

43 2. Arithmetic Operation(2/11) Flags are effected: C, OV, AC ADD A, R C is not set OV is set ACC=63H=99 R3=23H=35 ACC=86H C AC RS1 RS0 OV -- P Unsigned number = Signed number = out of range PSW = = 05H 43

44 2. Arithmetic Operation(3/11) Unsigned addition CY=1 add the flag to another byte Signed addition -128 ~ CY=1 a carry from bit 6 OV=0 44

45 2. Arithmetic Operation(4/11) = -106 No carry from bit 7, CY=0, OV=1 A carry from bit = 120 No carry from bit 6 or 7, OV=0, CY=0 45

46 CY=1 2. Arithmetic Operation(5/11) A carry from bit = -80 OV= CY=1, no carry from bit 6 OV= = +116 OV=1 complement the sign =-12 46

47 Signed addition with OV set A general rule is that if the OV flag is set, then complement the sign. The OV flag also signals that the sum exceeds the largest positive or negative numbers thought to be needed in the program. 47

48 ADDC, add with carry The need to add the carry flag to higher order byte in signed or unsigned addition operations. ADDC A, #n ADDC A, R0 (A) (A) +(C)+(R0) 48

49 An example of adding two 16-bit integers MOV 78H, #34H MOV 79H, #12H MOV 7AH, #0EFH MOV 7BH, #12H ;Add X and Y, Place results in X MOV A, 78H ADD A, 7AH MOV 78H, A ;At this point, the carry flag is set, 78H holds 23H MOV A, 79H ADDC A, 7BH MOV 79H, A ;79H holds 25H 49

50 2. Arithmetic Operation(6/11) Subtraction( 將減數取 2 s complement 再加上被減數 ) Register A is the destination address for subtraction. The commands treat the carry flag as a borrow and always subtract the carry flag as part of the operation. It must be set to 0 if the programmer does not want the flag included in the subtraction. SUBB A, #n; Subtract immediate number n and the C flag from A, put the result in A. SUBB A, Rr SUBB A, addr SUBB 50

51 2. Arithmetic Operation(7/11) Unsigned subtraction 15 -) With a borrow C flag=1 OV=0 C flag clear = ) C flag=0 OV= =85 51

52 2. Arithmetic Operation(8/11) Signed subtraction 100 SUBB CY=1 OV= ~ -128 CY=0 before SUBB = SUBB =+55 CY=0 OV=0 52

53 2. Arithmetic Operation(9/11) SUBB =+57 CY=0 OV=1 -> -71d SUBB =-117 CY=1 OV=1 ->+11d The general rule is that if the OV flag is set to 1, then complement the sign bit. 53

54 Subtraction of two 16-bit integers MOV 78H, #34H MOV 79H, #12H MOV 7AH, #35H MOV 7BH, #11H CLR C ;Subtract Y from X, Place result in X MOV A, 78H SUBB A, 7AH MOV 78H, A ;At this point, the carry flag is set, 78H holds FFH MOV A, 79H SUBB A, 7BH MOV 79H, A ;79H holds 00H 54

55 2. Arithmetic Operation(10/11) Multiplication and Division 8-bit integer multiplication using A and B registers Unsigned MUL AB; Multiply A by B, put the low-order byte of the operation in A, put the high-order byte in B. OV is set if A x B > FFH CY=0 FFH x FFH FE01H see register B 55

56 Examples of MUL instruction ORG 8000H MOV A, #9 MOV B, #5 MUL AB ; B=0, A=2DH MOV A, #99 MOV B, #5 MUL AB ; B=1, A=EFH 56

57 2. Arithmetic Operation(11/11) DIV AB; Divide A by B, put the integer part of quotient in register A and the integer part of the remainder in B. OV flag is cleared to 0 unless B hold 00H before the DIV. Then OV is set to 1 to show division by 0. CY=0 Ex: (A) = 251 or 0FBH (B) = 18 or 12H DIV AB (A) 13 0r 0DH (B) 17 or 11H 57

58 Example of DIV instruction MOV A, #10 MOV B, #5 DIV AB ; B=0, A=2 MOV A, #99 MOV B, #5 DIV AB ; B=4, A=13H MOV A, #99 MOV B, #0 DIV AB ; OV=1 58

59 BCD addition BCD numbers Each nibble of a BCD number represents a decimal digit [ 0 9 ] Decimal numbers are represented by BCD form. 54d ( Decimal ) B ( Binary ) ( BCD ) = 64 MOV A, #23H ADD A, #41H MOV 40H, A 59

60 BCD overflow 2 3 H H 3 5 H H 1 8 H H 2 A H 7 C H 8 0 H + 6 H + 6 H + 6 H 3 0 H 8 2 H 8 6 H 60

61 DA A ORG 8000H MOV A, #12H MOV B, #29H ADD A, B ; 12H+29H=3BH not a BCD DA A ; 6 is added to the result, 3BH+6=41H, the correct result 61

62 BCD Carry MOV A, #55H MOV B, #66H ; 55H+66H=BBH not a BCD ADD A, B DA A ; 66H is added to the result ; BBH + 66H = 121H ; the accumulator holds 21 (BCD), and the carry flag is set 62

63 3. Logical Operations CLR CPL ANL AND logical ORL XRL Exclusive OR RL RLC RR RRC Rotate right with carry SWAP 63

64 3. Logical Operations(continued) ANL A, 55H ANL ANL A, R6 ANL A, #33H One machine cycle XRL P1, #0FFH Read-modify-write operation Read Port 1 8 bits Exclusive-Ored with 0FFH complement read byte The result is write back to Port 1. 64

65 ORL and ANL ORL ; or logic MOV A, #18H ; set bit 3 and 4 ORL PSW, A ; force bits 3 and 4 to high ANL ; and logic MOV A, #0E7H ; clear bit 3 and 4 ANL PSW, A ; force bits 3 and 4 to low 65

66 Rotate Instructions Rotate Instruction (on Accumulator) power of 2, 乘 2 或除 2, bit 0 is first cleared MOV A, #80H RR A ; 40H MOV A, #12H RL A ; 24H 66

67 Rotate with carry C carry flag C MOV A, #54H SETB C RLC ; C=0 ; A=A9H MOV A, #21 SETB C RRC A ; C=1, ; A=90H 67

68 RL and RLC 1. A = 0C5H RL A C5H BH (An+1) (An), n=0~6 (A0) (A 7 ) = = = 4 2. RLC A; A=0C5H,CY=0 A= , CY=1 (An+1) (An) (A0) ( C ) ( C ) (A7) n=0~6 68

69 RR and RRC 3. RR A A= =E2H 4. RRC A, CY=0 A= =62H, CY=1 RRC A C A A=80H 69

70 Unsigned divide - by - 2 Unsigned divide - by - 2 CLR RRC C A C 0 70

71 Multiply the content of A by 2 CLR RLC C A C 71

72 Signed DIVIDE-BY-2 C JB ACC.7 SET_CY CLR C SJMP ROTATE SET_CY : SETB C ROTATE : RRC A 72

73 Divide by 2: Examples C 例 (= 80H = ) C RRC (= C0H = ) (7EH = ) (3FH = ) (= 1FH = ) (= 00F = ) 73

74 INC ORG 8000H MOV 70H, #67H MOV 71H, #45H MOV 72H, #23H MOV 73H, #01H ;X= H MOV 78H, #0EFH MOV 79H, #0CDH MOV 7AH, #0ABH MOV 7BH, #089H ;Y=89ABCDEFH MOV R3, #4 74

75 MOV R0, #70H MOV R1, #78H INC CLR C LOOP: MOV ADDC A INC R0 INC R1 DJNZ R3, LOOP LJMP 0 75

76 4. Boolean Variable Operation Single bit operation CLR ORL JNB SETB MOV JBC CPL ANL JC JNC JB Bit address 00H ~ 7FH (128 locations) 80H ~ FFH (SFR) SETB P1.7 (97h) CLR P1.7 MOV C, FLAG MOV P1.0, C Any addressable bit of SFR or 128 locations at byte address 20H-2FH 其中一個必須是 C 76

77 Bit addressing Bit addressing to alter a single bit of a byte Internal RAM bit addresses 20H 21H 22H 23H 24H 25H 00 ~ 07H 08 ~ 0FH 10 ~ 17H 18 ~ 1FH 20 ~ 27H 28 ~ 2FH 77

78 Bit addressing of Internal RAM(Cont.) 26H 27H 28H 29H 2AH 2BH 2CH 2DH 2EH 2FH 30 ~ 37H 38 ~ 3FH 40 ~ 47H 48 ~ 4FH 50 ~ 57H 58 ~ 5FH 60 ~ 67H 68 ~ 6FH 70 ~ 77H 78 ~ 7FH 78

79 Bit Direct Addressing Mode 1. SETB 10H ; bit 0 of the internal RAM ; at location 22H ; 2 Bytes machine codes 2. SETB TRO ; set bit 4 of the TCON register TCON 7 0 TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 79

80 Bit Direct Addressing Mode 3. CLR PSW.7 ; clear the bit 7 (carry flag) of the program status word 4. JNB P1.3, not equal ; if bit 3 of port 1 is not equal to 1 80

81 SFR Bit Addresses SFR DIRECT Address Bit Addresses A 0E0 0E0-0E7 B 0F0 0F0-0F7 IE 0A8 0A8-0AF IP 0B8 0B8-0BF P P P2 0A0 0A0-0A7 P3 0B0 0B0-0B7 PSW 0D0 0D0-0D7 TCON F SCON F 81

82 Single-bit Operation -Instructions ANL C, b ANL C, /bit ; (C) (C) AND NOT (bit) ORL C, b ORL C, /b CPL C CPL b CLR C CLR b MOV C, b MOV b, C 82

83 Single-bit Operation -Examples SETB C ; 1 Byte SETB bit ; 2 Bytes SETB C ; (C) = 1 MOV 40H, C ; (bit 40H) = 1 ANL C, 40H ; (C) = 1 SETB C ; (C) = 1 MOV 41H, C ; (bit 41H) = 1 ANL C, /41H ; (C) = 0, (bit 41H) = 1 83

84 4. Boolean Variable Operation (continued) The carry bit in PSW is used as the single-bit accumulator of the Boolean processor. C 1) Carry Flag : CY, 0D7H bit address CLR C ;1-byte instruction CLR CY ;2-byte instruction 2) Bit_testing Bit testing, (relative addressing) Jump if the addressed bit is set JC JB JBC; Direct address of the specified Bit(CY) jump if bit set then clear bit. 84

85 4. Boolean Variable Operation (continued) Jump if the addressed bit is not set JNC JNB LOOP: MOV A, #10H MOV R0, A ADDA: ADD A, R0 JNC ADDA (continue) MOV A, #10H ADDR: ADD A, R0 JNB 0D7H, ADDR JBC 0D7H, LOOP 85

86 5. Directives Directive, 虛擬指令 課本 7.5 p.164 ORG 50H MOV A, R0 設定下一個指令之位址 EQU REG 設定常數值 MAX EQU 50H MOV 設定位址常數 DATA REG A, #MAX 20H MOV DATA, #12 MOV 20H, #12 86

87 5. Directives(continued) DB define Byte ORG DB 50H 12H, 13H, 14H 50H 51H 12H 13H 52H 14H DW define Word ORG 50H 50H 12H DS DW 1234H define storage 保留記憶體位址 ORG 50H 51H 52H 34H DS 5 87

88 5. Directives(continued) DBIT JMP END CALL MACRO ENDM INCLUDE PUBLIC EXTERN define bit last statement in the source file DELAY MACRO INCLUDE DELAY.ASM 定義公用標記提供 linker 使用 PUBLIC DELAY, INCHAR, 定義外部公用標記 88

89 5. Directives(continued) LOCAL 在巨集中宣告區域變數 DELAY MACRO LOCAL REPET REPET: MOV R2, #1 DJNZ R2, REPET ENDM 89

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into

More information

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

SSL VPN User Manual (SSL VPN 連線使用手冊 )

SSL VPN User Manual (SSL VPN 連線使用手冊 ) SSL VPN User Manual (SSL VPN 連線使用手冊 ) 目錄 前言 (Preface) 1. ACMICPC 2018 VPN 連線說明 -- Pulse Secure for Windows ( 中文版 ):... 2 2. ACMICPC 2018 VPN 連線說明 -- Pulse Secure for Linux ( 中文版 )... 7 3. ACMICPC 2018

More information

Programming of 8085 microprocessor and 8051 micro controller Study material

Programming of 8085 microprocessor and 8051 micro controller Study material 8085 Demo Programs Now, let us take a look at some program demonstrations using the above instructions Adding Two 8-bit Numbers Write a program to add data at 3005H & 3006H memory location and store the

More information

Chapter 7. Digital Arithmetic and Arithmetic Circuits. Signed/Unsigned Binary Numbers

Chapter 7. Digital Arithmetic and Arithmetic Circuits. Signed/Unsigned Binary Numbers Chapter 7 Digital Arithmetic and Arithmetic Circuits Signed/Unsigned Binary Numbers Signed Binary Number: A binary number of fixed length whose sign (+/ ) is represented by one bit (usually MSB) and its

More information

PC Link Mode. Terminate PC Link? Esc. [GO]/[Esc] - - [GO]/[Esc] 轉接座未放滿. Make auto accord with socket mounted? [GO]/[Esc] Copy to SSD E0000

PC Link Mode. Terminate PC Link? Esc. [GO]/[Esc] - - [GO]/[Esc] 轉接座未放滿. Make auto accord with socket mounted? [GO]/[Esc] Copy to SSD E0000 Start SU-6808 EMMC Programmer V.0bd7 [ ]Link PC / [ ]Menu [ ] >.Select project.make new project.engineer mode.reset counter 5.Link to PC [ ] PC disconnected PC connected Select project SEM0G9C_A.prj Terminate

More information

港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統.

港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統. 港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統. 港專單一登入網站網址 http://portal.hkct.edu.hk (HKCT 之教職員, 學生 ) http://portal.ctihe.edu.hk (CTIHE 之教職員,

More information

Chapter Addressing Modes

Chapter Addressing Modes Chapter 5 8051 Addressing Modes 1 Sections 5.1 Immediate and register addressing modes 5.2 Accessing memory using various address modes 2 Objective 程式中的資料可能是放在 Register 中, 或在 RAM 中某一位址上, 或在 ROM 一塊特殊區域放置資料,

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

2009 OB Workshop: Structural Equation Modeling. Changya Hu, Ph.D. NCCU 2009/07/ /07/03

2009 OB Workshop: Structural Equation Modeling. Changya Hu, Ph.D. NCCU 2009/07/ /07/03 Amos Introduction 2009 OB Workshop: Structural Equation Modeling Changya Hu, Ph.D. NCCU 2009/07/02- 2 Contents Amos Basic Functions Observed Variable Path Analysis Confirmatory Factor Analysis Full Model

More information

RENESAS BLE 實作課程 Jack Chen Victron Technology CO., LTD 2015 Renesas Electronics Corporation. All rights reserved.

RENESAS BLE 實作課程 Jack Chen Victron Technology CO., LTD 2015 Renesas Electronics Corporation. All rights reserved. RENESAS BLE 實作課程 2016-01-21 Jack Chen Jack.chen@victron.com.tw Victron Technology CO., LTD AGENDA CS+ & Renesas Flash Programmer 安裝 3 Renesas Flash Programmer 燒錄介紹 6 CS+ 介面介紹 11 CS+ 開啟 Project & 使用教學 14

More information

一般來說, 安裝 Ubuntu 到 USB 上, 不外乎兩種方式 : 1) 將電腦上的硬碟排線先予以排除, 將 USB 隨身碟插入主機, 以一般光碟安裝方式, 將 Ubuntu 安裝到 USB

一般來說, 安裝 Ubuntu 到 USB 上, 不外乎兩種方式 : 1) 將電腦上的硬碟排線先予以排除, 將 USB 隨身碟插入主機, 以一般光碟安裝方式, 將 Ubuntu 安裝到 USB Ubuntu 是新一代的 Linux 作業系統, 最重要的是, 它完全免費, 不光是作業系統, 連用軟體都不必錢 為什麼要裝在 USB 隨身碟上? 因為, 你可以把所有的軟體帶著走, 不必在每一台電腦上重新來一次, 不必每一套軟體裝在每一台電腦上都要再一次合法授權 以下安裝方式寫的是安裝完整的 Ubuntu- 企業雲端版本 V. 11.10 的安裝過程, 若是要安裝 Desktop 版本, 由於牽涉到

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

Microcontroller. Instruction set of 8051

Microcontroller. Instruction set of 8051 UNIT 2: Addressing Modes and Operations: Introduction, Addressing modes, External data Moves, Code Memory, Read Only Data Moves / Indexed Addressing mode, PUSH and POP Opcodes, Data exchanges, Example

More information

桌上電腦及筆記本電腦安裝 Acrobat Reader 應用程式

桌上電腦及筆記本電腦安裝 Acrobat Reader 應用程式 On a desktop or notebook computer Installing Acrobat Reader to read the course materials The Course Guide, study units and other course materials are provided in PDF format, but to read them you need a

More information

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

TUTORIAL Assembly Language programming (2)

TUTORIAL Assembly Language programming (2) 8051 Assembly Language programming (2) TUTORIAL 4 EEE3410 Microcontroller Applications 1. Write the instructions to move value 34h into register A and value 3Fh into register B, then add them together.

More information

Oxford isolution. 下載及安裝指南 Download and Installation Guide

Oxford isolution. 下載及安裝指南 Download and Installation Guide Oxford isolution 下載及安裝指南 Download and Installation Guide 系統要求 個人電腦 Microsoft Windows 10 (Mobile 除外 ) Microsoft Windows 8 (RT 除外 ) 或 Microsoft Windows 7 (SP1 或更新版本 ) ( 網上下載 : http://eresources.oupchina.com.hk/oxfordisolution/download/index.html)

More information

購票流程說明 How To purchase The Ticket?

購票流程說明 How To purchase The Ticket? 購票流程說明 How To purchase The Ticket? 步驟 1: 點選 登入 Click 登入 Login (You have to login before purchasing.) 步驟 2: 若已是會員請填寫會員帳號 密碼, 點選 登入 若非會員請點選 註冊 If you are the member of PB+, Please login. If not, please register.

More information

Dodatak. Skup instrukcija

Dodatak. Skup instrukcija Dodatak Skup instrukcija Arithmetic Operations [@Ri] implies contents of memory location pointed to by R0 or R1 Rn refers to registers R0-R7 of the currently selected register bank 2 ADD A,

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory

More information

Figure 1 Microsoft Visio

Figure 1 Microsoft Visio Pattern-Oriented Software Design (Fall 2013) Homework #1 (Due: 09/25/2013) 1. Introduction Entity relation (ER) diagrams are graphical representations of data models of relation databases. In the Unified

More information

Contents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP DB805C-FSM 805 Microcontroller FSM Finite State Machine General Description The Digital Blocks DB805C-FSM IP Core contains Digital Blocks compact DB805C CPU Core & GPIO

More information

Frame Relay 訊框中繼 FRSW S0/0 S0/1

Frame Relay 訊框中繼 FRSW S0/0 S0/1 Frame Relay 訊框中繼 將路由器設定為訊框中繼交換器以進行 frame relay 實驗 : 首先練習設定兩個埠的 frame relay switch FRSW S0/0 S0/1 介面 S0/0 介面 S0/1 102 201 DLI 102 DLI 201 Router(config)# hostname FRSW FRSW(config)# frame-relay switching

More information

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MICROCONTROLLERS AND APPLICATIONS 1 Module 2 Module-2 Contents: Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MEMORY

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP 805 Microcontroller General Description The Digital Blocks Microcontroller Verilog IP Core is complaint with the MCS 5 Instruction Set and contains standard 805 MCU peripherals,

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP 805 SFR Bus Digital Blocks Semiconductor IP 805 Microcontroller Configurable Peripherals General Description The Digital Blocks (Configurable Peripherals) Microcontroller Verilog IP Core is complaint with

More information

Q. Classify the instruction set of 8051 and list out the instructions in each type.

Q. Classify the instruction set of 8051 and list out the instructions in each type. INTRODUCTION Here is a list of the operands and their meanings: A - accumulator; Rn - is one of working registers (R0-R7) in the currently active RAM memory bank; Direct - is any 8-bit address register

More information

CLAD 考前準備 與 LabVIEW 小技巧

CLAD 考前準備 與 LabVIEW 小技巧 CLAD 考前準備 與 LabVIEW 小技巧 NI 技術行銷工程師 柯璟銘 (Jimmy Ko) jimmy.ko@ni.com LabVIEW 認證 Certified LabVIEW Associate Developer (LabVIEW 基礎認證 ) Certified LabVIEW Associate Developer LabVIEW 全球認證 40 題 (37 題單選,3 題複選

More information

Chapter 7. Signed/Unsigned Binary Numbers. Digital Arithmetic and Arithmetic Circuits. Unsigned Binary Arithmetic. Basic Rules (Unsigned)

Chapter 7. Signed/Unsigned Binary Numbers. Digital Arithmetic and Arithmetic Circuits. Unsigned Binary Arithmetic. Basic Rules (Unsigned) Chapter 7 Digital rithmetic and rithmetic Circuits igned/unsigned inary Numbers igned inary Number: binary number of fixed length whose sign (+/ ) is represented by one bit (usually M) and its magnitude

More information

Twin API Guide. How to use Twin

Twin API Guide. How to use Twin Twin API Guide How to use Twin 1 目錄 一 Cycle Job------------------------------------------------------------------------------------P3 二 Twin Action Table-----------------------------------------------------------------------P4-5

More information

DR bit RISC Microcontroller. Instructions set details ver 3.10

DR bit RISC Microcontroller. Instructions set details ver 3.10 DR80390 8-bit RISC Microcontroller Instructions set details ver 3.10 DR80390 Instructions set details - 2 - Contents 1. Overview 7 1.1. Document structure. 7 2. Instructions set brief 7 2.1. Instruction

More information

購票流程說明 How To purchase The Ticket?

購票流程說明 How To purchase The Ticket? 購票流程說明 How To purchase The Ticket? 步驟 1: 已是會員請點選 登入, 選擇 2016 WTA 臺灣公開賽 Taiwan Open tickets Step1:If You are the member, please Click 登入 Click to the column: 2016 WTA 臺灣公開賽 Taiwan Open tickets Click 登入

More information

Module Contents of the Module Hours COs

Module Contents of the Module Hours COs Microcontrollers (EE45): Syllabus: Module Contents of the Module Hours COs 1 8051 MICROCONTROLLER ARCHITECTURE: Introduction to Microprocessors and Microcontrollers, the 8051 Architecture, 08 1 and pin

More information

Instruction Set Of 8051

Instruction Set Of 8051 Instruction Set Of 8051 By Darshan Patel M.Tech (Power Electronics & Drives) Assistant Professor, Electrical Department Sankalchand Patel college of Engineering-Visnagar Introduction The process of writing

More information

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Principle and Interface Techniques of Microcontroller

Principle and Interface Techniques of Microcontroller Principle and Interface Techniques of Microcontroller --8051 Microcontroller and Embedded Systems Using Assembly and C LI, Guang ( 李光 ) Prof. PhD, DIC, MIET WANG, You ( 王酉 ) PhD, MIET 杭州 浙江大学 2011 Chapter

More information

Dragonchip. Instruction Set Manual

Dragonchip. Instruction Set Manual Dragonchip Instruction Set Manual Version 3.1 July 2004 The Objective of this document is to provide the user a detail description to the each instruction set used in Dragonchip s MCU family. There are

More information

Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP)

Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP) Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP) 陳瑞奇 (J.C. Chen) 亞洲大學資訊工程學系 Adapted from class notes by Prof. M.J. Irwin, PSU and Prof. D. Patterson, UCB 4.10 Instruction-Level

More information

UAK1-C01 USB Interface Data Encryption Lock USB 資料加密鎖. Specifications for Approval

UAK1-C01 USB Interface Data Encryption Lock USB 資料加密鎖. Specifications for Approval Product Definition C-MING Product Semi-finished Product OEM/ODM Product Component USB Interface Data Encryption Lock USB 資料加密鎖 Specifications for Approval Approval Manager Issued By Revision History Revision

More information

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote Programming Book1 8051 Microcontroller Kit Rev 3.0 January, 016 016 Wichit Sirichote 1 Contents Overview...3 SAFTY INFORMATION...3 Tools...3 Experiment 1 Blinking LED...4 Experiment Binary number counting...9

More information

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS EXAMINATION FOR 159.233 COMPUTER SYSTEMS Semester One June 2008 Time allowed: THREE (3) hours This exam contains THREE (3) questions ANSWER ALL THREE (3) QUESTIONS

More information

The notice regarding Participation Ways of our global distributor video conference on Feb. 5.

The notice regarding Participation Ways of our global distributor video conference on Feb. 5. The notice regarding Participation Ways of our global distributor video conference on Feb. 5. On Feb.5, 2010 Los Angeles time, between 5:00 PM - 7:00 PM, we will convene an important global distributor

More information

8051 Programming: Arithmetic and Logic

8051 Programming: Arithmetic and Logic 8051 Programming: Arithmetic and Logic EE4380 Fall 2002 Class 4 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Topics Signed and Unsigned arithmetic Binary

More information

Assembly Language programming (2)

Assembly Language programming (2) EEE3410 Microcontroller Applications LABORATORY Experiment 2 Assembly Language programming (2) Name Class Date Class No. Marks Arithmetic, Logic and Jump instructions Objectives To learn and practice the

More information

外薦交換生線上申請系統操作說明 Instruction on Exchange Student Online Application System. [ 中文版 ] [English Version]

外薦交換生線上申請系統操作說明 Instruction on Exchange Student Online Application System. [ 中文版 ] [English Version] 外薦交換生線上申請系統操作說明 Instruction on Exchange Student Online Application System [ 中文版 ] [English Version] 線上申請流程說明 申請系統網址 : http://schwebap.nccu.edu.tw/zeweb/exgstdapply/ 1. 建立新帳號 : 請輸入姓名 生日 email 做為未來登入系統用

More information

ET355 Microprocessors Thursday 6:00 pm 10:20 pm

ET355 Microprocessors Thursday 6:00 pm 10:20 pm ITT Technical Institute ET355 Microprocessors Thursday 6:00 pm 10:20 pm Unit 4 Chapter 6, pp. 139-174 Chapter 7, pp. 181-188 Unit 4 Objectives Lecture: BCD Programming Examples of the 805x Microprocessor

More information

VB 拼圖應用 圖形式按鈕屬性 資科系 林偉川

VB 拼圖應用 圖形式按鈕屬性 資科系 林偉川 VB 拼圖應用 資科系 林偉川 圖形式按鈕屬性 Style 屬性 0 ( 標準外觀 ),1( 圖片外觀 ) Picture 屬性 圖形檔案 (VB6) image 屬性 圖形檔案 (VB.NET) Left=Top=0 Width=2052,Height=2052 共有九張圖 1.jpg 9.jpg Form1 執行時視窗為最大化 Windowstate 設為 2 2 1 執行結果 3 path$

More information

第九章結構化查詢語言 SQL - 資料定義語言 (DDL) 資料庫系統設計理論李紹綸著

第九章結構化查詢語言 SQL - 資料定義語言 (DDL) 資料庫系統設計理論李紹綸著 第九章結構化查詢語言 SQL - 資料定義語言 (DDL) 資料庫系統設計理論李紹綸著 SQL 的資料定義語言 本章內容 建立資料表 修改資料表 刪除資料表 FOREIGN KEY 外鍵條件約束與資料表關聯性 2 資料定義語言可分為下列三種 : SQL 的資料定義語言 CREATE TABLE 指令 : 用來建立一個基底關聯表, 和設定關聯表相關的完整性限制 CREATE VIEW 指令 : 用來建立一個視界,

More information

ELEG3923 Microprocessor Ch.6 Arithmetic and Logics

ELEG3923 Microprocessor Ch.6 Arithmetic and Logics Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.6 Arithmetic and Logics Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Arithmetic instructions Signed number operations Logic

More information

C B A B B C C C C A B B A B C D A D D A A B D C C D D A B D A D C D B D A C A B

C B A B B C C C C A B B A B C D A D D A A B D C C D D A B D A D C D B D A C A B 高雄市立右昌國中 106 學年度第二學期第二次段考三年級考科答案 國文科 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. C B D C A C B A D B 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. D C B A D C A B D B 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. C B D C B B C

More information

Version Control with Subversion

Version Control with Subversion Version Control with Subversion 指導教授郭忠義 邱茂森 95598051 1 Table of contents (1) Basic concepts of subversion (1)What is Subversion (2)Version Control System (3)Branching and tagging (4) Repository and Working

More information

INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO.

INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO. INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO. ADD A,Rn Add register to 28..2F 1 12 X X X accumulator ADD A,direct Add direct byte 25 2 12 X X X to accumulator ADD A,@Ri Add indirect RAM 26..27

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 15, 2016 8051 INSTRUCTIONS JUMP, LOOP AND CALL INSTRUCTIONS 8051 INSTRUCTIONS Repeating a sequence of instructions

More information

MCS -51 Programmer s Guide and Instruction Set

MCS -51 Programmer s Guide and Instruction Set MCS -51 Programmer s Guide and Instruction Set November 1992 Order Number 270249-003 COPYRIGHT INTEL CORPORATION 1996 MCS -51 PROGRAMMER S GUIDE AND INSTRUCTION SET CONTENTS PAGE MEMORY ORGANIZATION 1

More information

C51 Family. Architectural Overview of the C51 Family. Summary

C51 Family. Architectural Overview of the C51 Family. Summary Architectural Overview of the C51 Family C51 Family Summary 1. Introduction............................................................ I.1. 1.1. TSC80C51/80C51/80C31.................................................................

More information

Mid-term EXAM. 11/14/2009

Mid-term EXAM. 11/14/2009 Mid-term EXAM. 11/14/2009 1. (15%) Data Compression a) Encode the following characters using Huffman coding with the given frequencies: A(12), B(8), C(9), D(20), E(31), F(14), G(8) (-1 point if theree

More information

全面強化電路設計與模擬驗證. Addi Lin / Graser 2 / Sep / 2016

全面強化電路設計與模擬驗證. Addi Lin / Graser 2 / Sep / 2016 全面強化電路設計與模擬驗證 Addi Lin / Graser 2 / Sep / 2016 Agenda OrCAD Design Solution OrCAD Capture 功能應用 OrCAD Capture CIS 介紹 OrCAD PSpice 模擬與驗證 OrCAD Design Solution Powerful and Widely Used Design Solution Front-to-Back

More information

ENE 334 Microprocessors

ENE 334 Microprocessors Page 1 ENE 334 Microprocessors Lecture 10: MCS-51: Logical and Arithmetic : Dejwoot KHAWPARISUTH http://webstaff.kmutt.ac.th/~dejwoot.kha/ ENE 334 MCS-51 Logical & Arithmetic Page 2 Logical: Objectives

More information

Increase Productivity and Quality by New Layout Flow

Increase Productivity and Quality by New Layout Flow Increase Productivity and Quality by New Layout Flow Jonathan / Graser 16 / Oct / 2015 Design Process Introduction CONSTRAINTS PLACEMENT FANOUT BREAKOUT ROUTING DELAY (ATE) NET-GROUP Topology & Delay Physical

More information

Preamble Ethernet packet Data FCS

Preamble Ethernet packet Data FCS Preamble Ethernet. packet Data FCS Destination Address Source Address EtherType Data ::: Preamble. bytes. Destination Address. bytes. The address(es) are specified for a unicast, multicast (subgroup),

More information

Chapter 7 Pointers ( 指標 )

Chapter 7 Pointers ( 指標 ) Chapter Pointers ( 指標 ) Outline.1 Introduction.2 Pointer Variable Definitions and Initialization.3 Pointer Operators.4 Calling Functions by Reference.5 Using the const Qualifier with Pointers.6 Bubble

More information

80C51 family programmer s guide and instruction set. 80C51 Family. PROGRAMMER S GUIDE AND INSTRUCTION SET Memory Organization. Philips Semiconductors

80C51 family programmer s guide and instruction set. 80C51 Family. PROGRAMMER S GUIDE AND INSTRUCTION SET Memory Organization. Philips Semiconductors PROGRAMMER S GUIDE AND INSTRUCTION SET Memory Organization Program Memory The 80C51 has separate address spaces for program and data memory. The Program memory can be up to 64k bytes long. The lower 4k

More information

JAVA Programming Language Homework V: Overall Review

JAVA Programming Language Homework V: Overall Review JAVA Programming Language Homework V: Overall Review ID: Name: 1. Given the following Java code: [5 points] 1. public class SimpleCalc { 2. public int value; 3. public void calculate(){ value = value +

More information

Embedded Controller Programming

Embedded Controller Programming Embedded Controller Programming Counters, Timers and I/O in Assembly Language Ken Arnold Copyright 2000-2004 Ken Arnold 1 Outline Timer/Counters Serial Port More 8051 Instructions Examples Copyright 2000-2004

More information

4Affirma Analog Artist Design Flow

4Affirma Analog Artist Design Flow 4Affirma Analog Artist Design Flow Getting Started 1. 登入工作站 : Username : trainaxx Password : train0xx 其中 XX 代表工作站名字的號碼, 例如工作站名字叫做 traina01 的話,XX 就是 01 2. 先確定是否進入 Solaris 作業系統的 Common Desktop Environment(CDE)

More information

SPI 功能使用方法 Application Note

SPI 功能使用方法 Application Note 1 適用產品 :SM59R16A2 / SM59R08A2 2 SPI 使用概述 : SPI 通信使用 4 個引腳, 分別為 SPI_: 當 master 時資料輸出 ; 當 slave 時資料輸入 SPI_: 當 master 時資料輸入 ; 當 slave 時資料輸出 SPI_SCK: SPI 的時脈信號由 master 主控產生 ; 資料 ( 輸出及輸入 ) 和時脈同步 SPI_SS: 此引腳功能唯有當作

More information

Digital imaging & free fall of immersed sphere with wall effects

Digital imaging & free fall of immersed sphere with wall effects 量測原理與機工實驗 ( 下 ) 熱流實驗 ( 一 ) Digital imaging & free fall of immersed sphere with wall effects May 14-18, 2012 Objective: This week s lab work has two parts: (1) how to record digital video and convert it

More information

使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8

使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8 使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8 Python 設計 Model import tensorflow as tf from tensorflow.python.tools import freeze_graph from tensorflow.python.tools import optimize_for_inference_lib

More information

8051 Core Specification

8051 Core Specification 8051 Core Specification Authors: Jaka Simsic Simon Teran jakas@opencores.org simont@opencores.org Rev. 0.1 August 14, 2001 First Draft www.opencores.org Rev 0.1 First Draft 1 of 26 Revision History Rev.

More information

Arithmetic and Logic

Arithmetic and Logic 8051 - Arithmetic and Logic EE4380 Fall 2001 Class 8 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Signed Arithmetic - Concepts Representation of the sign

More information

步驟 1: 首頁以 facebook 或 google 帳號登入, 並點選節目 Step 1:Log in with your facebook/google account, then click the show banner.

步驟 1: 首頁以 facebook 或 google 帳號登入, 並點選節目 Step 1:Log in with your facebook/google account, then click the show banner. 步驟 1: 首頁以 facebook 或 google 帳號登入, 並點選節目 Step 1:Log in with your facebook/google account, then click the show banner. 步驟 2: 填寫會員資料 Step 2:Fill out the membership form. Name ID No. Male/female Foreigner

More information

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000,

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000, 8051 TUTORIAL Donal Heffernan University of Limerick May-2002 8051 Tutorial D.Heffernan 2000, 2001 1 Blank 8051 Tutorial D.Heffernan 2000, 2001 2 Some reference material: Test books + MacKenzie Scott.

More information

Quick Installation Guide for Connectivity Adapter Cable CA-42

Quick Installation Guide for Connectivity Adapter Cable CA-42 9235663_CA42_1_en.fm Page 1 Monday, September 13, 2004 11:26 AM Quick Installation Guide for Connectivity Adapter Cable CA-42 9235645 Issue 1 Nokia, Nokia Connecting People and Pop-Port are registered

More information

Application Brief D-005

Application Brief D-005 Interfacing the Avago HDSP-2xxx LED Alphanumeric Displays with the Intel 8751H Microcontroller Application Brief D-005 Introduction The HDSP-21xx/-25xx series of products is ideal for applications where

More information

Simulation of SDN/OpenFlow Operations. EstiNet Technologies, Inc.

Simulation of SDN/OpenFlow Operations. EstiNet Technologies, Inc. Simulation of SDN/OpenFlow Operations EstiNet Technologies, Inc. Agenda: (1) 模擬器簡介 (2) 模擬器的基本操作 (3) 如何建置一個 SDN Topology (5) 如何下達指令並觀察 Flow Table, Group Table 與 Meter Table (5) 如何用 SDN 下達 QoS 指令並觀察結果 (6)

More information

English G H. Package Contents. Hardware Requirements. Technical Specifications. Device Overview. MSI DS502 GAMING HEADSET User Guide

English G H. Package Contents. Hardware Requirements. Technical Specifications. Device Overview. MSI DS502 GAMING HEADSET User Guide Package Contents MSI DS502 GAMING HEADSET User Guide Hardware Requirements PC with USB port Windows 8.1/8/7/XP English Technical Specifications Headphones * Drivers : Ø40mm * Sensitivity (S.P.L) : 105

More information

Java 程式設計基礎班 (7) 莊坤達台大電信所網路資料庫研究室. Java I/O. Class 7 1. Class 7 2

Java 程式設計基礎班 (7) 莊坤達台大電信所網路資料庫研究室. Java I/O.   Class 7 1. Class 7 2 Java 程式設計基礎班 (7) 莊坤達台大電信所網路資料庫研究室 Email: doug@arbor.ee.ntu.edu.tw Class 7 1 回顧 Java I/O Class 7 2 Java Data Structure 動態資料結構 Grow and shrink at execution time Several types Linked lists Stacks Queues Binary

More information

微軟商務用 Skype 雲端視訊會議及與所需頻寬介紹

微軟商務用 Skype 雲端視訊會議及與所需頻寬介紹 微軟商務用 Skype 雲端視訊會議及與所需頻寬介紹 傳統視訊會議 : 視訊會議解決方案 以硬體設備為主, 內建專屬視訊會議軟體, 要增加連線數量就必須加購昂貴的 MCU Server, 整套設備的價格多在數百萬之譜 軟體式視訊會議 : 在現有的基礎設備上, 強化整合通訊功能 (UC), 再結合視訊會議功能 (VC, Video Conference), 對於公司的網路系統或是通訊系統做更有效率的運用

More information

8051 Microcontroller Logical Operations. Prepared by : A. B. Modi Target Audience : 5 th Semester Students

8051 Microcontroller Logical Operations. Prepared by : A. B. Modi Target Audience : 5 th Semester Students 8051 Microcontroller Logical Operations Prepared by : A. B. Modi Target Audience : 5 th Semester Students Learning Objectives After learning this chapter, Students should be able to: Describe and Use byte-level

More information

8051 Programming using Assembly

8051 Programming using Assembly 8051 Programming using Assembly The Instruction Addressing Modes dest,source ; dest = source A,#72H ;A=72H A, # r ;A= r OR 72H R4,#62H ;R4=62H B,0F9H ;B=the content of F9 th byte of RAM DPTR,#7634H DPL,#34H

More information

虛擬機 - 惡意程式攻防的新戰場. 講師簡介王大寶, 小時候大家叫他王小寶, 長大後就稱王大寶, 目前隸屬一神祕單位. 雖然佯稱興趣在看書與聽音樂, 但是其實晚上都在打 Game. 長期於系統最底層打滾, 熟悉 ASM,C/C++,

虛擬機 - 惡意程式攻防的新戰場. 講師簡介王大寶, 小時候大家叫他王小寶, 長大後就稱王大寶, 目前隸屬一神祕單位. 雖然佯稱興趣在看書與聽音樂, 但是其實晚上都在打 Game. 長期於系統最底層打滾, 熟悉 ASM,C/C++, 王大寶, PK 虛擬機 - 惡意程式攻防的新戰場 講師簡介王大寶, 小時候大家叫他王小寶, 長大後就稱王大寶, 目前隸屬一神祕單位. 雖然佯稱興趣在看書與聽音樂, 但是其實晚上都在打 Game. 長期於系統最底層打滾, 熟悉 ASM,C/C++, 對於資安毫無任何興趣, 也無經驗, 純粹是被某壞人騙上台, 可以說是不可多得的素人講師!! 議程大綱 : 現今的 CPU 都支援虛擬化專用指令集, 讓 VM

More information

NAME as31 - An Intel 8031/8051 assembler. SYNOPSIS as31 [-h] [-l] [-s] [-v] [-Aarg] [-Ffmt] [-Ofile] infile.asm

NAME as31 - An Intel 8031/8051 assembler. SYNOPSIS as31 [-h] [-l] [-s] [-v] [-Aarg] [-Ffmt] [-Ofile] infile.asm NAME as31 - An Intel 8031/8051 assembler SYNOPSIS as31 [-h] [-l] [-s] [-v] [-Aarg] [-Ffmt] [-Ofile] infile.asm DESCRIPTION As31 assembles infile.asm into one of several different output formats. The output

More information

UNIX Basics + shell commands. Michael Tsai 2017/03/06

UNIX Basics + shell commands. Michael Tsai 2017/03/06 UNIX Basics + shell commands Michael Tsai 2017/03/06 Reading: http://www.faqs.org/docs/artu/ch02s01.html Where UNIX started Ken Thompson & Dennis Ritchie Multics OS project (1960s) @ Bell Labs UNIX on

More information

Multimedia Service Support and Session Management 鍾國麟

Multimedia Service Support and Session Management 鍾國麟 Multimedia Service Support and Session Management 鍾國麟 2003-9-31 1 1 Agenda Introduction What is Session? Definition Functions Why need Session Management 2G,Internet,3G SIP Basic Operation User Location

More information

Lecture 5. EEE3410 Microcontroller Applications Department of Electrical Engineering Assembly Language Programming (1)

Lecture 5. EEE3410 Microcontroller Applications Department of Electrical Engineering Assembly Language Programming (1) Department of Electrical Engineering Lecture 5 8051 Assembly Language Programming (1) 1 In this Lecture 8051 programming model Assembly language syntax Operation codes and operands Machine instructions

More information

InTANK ir2771-s3 ir2772-s3. User Manual

InTANK ir2771-s3 ir2772-s3. User Manual InTANK ir2771-s3 ir2772-s3 User Manual » InTANK...1» InTANK ir2771-s3 & ir2772-s3 產品使用說明... 10 V1.1 Introduction Thank you for purchasing RAIDON products. This manual will introduce the InTANK ir2771-s3

More information

MH-3621-U3 Clone Dual SATA HDD Docking System

MH-3621-U3 Clone Dual SATA HDD Docking System MH-3621-U3 Clone CONTENTS ABOUT THE DOCKING SYSTEM... 2 HARD DRIVE INSTALLATION GUIDE... 5 CLONE OPERATION GUIDE... 6 NOTE... 8 LIMITED WARRANTY... 10 1 Thank you for purchasing MH-3621-U3 from archgon.

More information

Department of Computer Science and Engineering National Sun Yat-sen University Data Structures - Final Exam., Jan. 9, 2017

Department of Computer Science and Engineering National Sun Yat-sen University Data Structures - Final Exam., Jan. 9, 2017 Department of Computer Science and Engineering National Sun Yat-sen University Data Structures - Final Exam., Jan. 9, 2017 1. Multiple choices (There may be zero or more correct answers. If there is no

More information

Understanding IO patterns of SSDs

Understanding IO patterns of SSDs 固态硬盘 I/O 特性测试 周大 众所周知, 固态硬盘是一种由闪存作为存储介质的数据库存储设备 由于闪存和磁盘之间物理特性的巨大差异, 现有的各种软件系统无法直接使用闪存芯片 为了提供对现有软件系统的支持, 往往在闪存之上添加一个闪存转换层来实现此目的 固态硬盘就是在闪存上附加了闪存转换层从而提供和磁盘相同的访问接口的存储设备 一方面, 闪存本身具有独特的访问特性 另外一方面, 闪存转换层内置大量的算法来实现闪存和磁盘访问接口之间的转换

More information

InTANK ir2622 User Manual

InTANK ir2622 User Manual InTANK ir2622 User Manual » InTANK...1» InTANK ir2622 產品使用說明... 12 V1.2 » InTANK Introduction Thank you for purchasing RAIDON products. This manual will introduce the InTANK ir2622 Series. Before using

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

Highlights. FP51 (FPGA based 1T 8051 core)

Highlights. FP51 (FPGA based 1T 8051 core) Copyright 2017 PulseRain Technology, LLC. FP51 (FPGA based 1T 8051 core) 10555 Scripps Trl, San Diego, CA 92131 858-877-3485 858-408-9550 http://www.pulserain.com Highlights 1T 8051 Core Intel MCS-51 Compatible

More information

C51 Family. C51 Family Programmer s Guide and Instruction Set. Summary

C51 Family. C51 Family Programmer s Guide and Instruction Set. Summary C51 Family Programmer s Guide and Instruction Set Summary 1. Memory Organization.................................................... I.3.2 1.1. Program Memory.......................................................................

More information

多元化資料中心 的保護策略 技術顧問 陳力維

多元化資料中心 的保護策略 技術顧問 陳力維 多元化資料中心 的保護策略 技術顧問 陳力維 現代化的資料保護架構 使用者自助服務 任何儲存設備 影響低 多種還原點選擇 (RPO) Application Server 完整全面的雲端整合 Network Disk Target 容易操作與深入各層的報表能力 管理快照與複製能力 Primary Storage 快速 可靠的還原 (RTO) 完整的磁帶 & 複製管理 單一整合的解決方案 企業級的擴充性

More information

Android + TIBBO + Socket 建國科技大學資管系 饒瑞佶

Android + TIBBO + Socket 建國科技大學資管系 饒瑞佶 Android + TIBBO + Socket 建國科技大學資管系 饒瑞佶 Socket Socket 開始前 TIBBO 需要設定 Socket on_sock_data_arrival() ' 接收外界來的 SOCKET 資訊 sub on_sock_data_arrival() Dim command_data as string ' 完整控制命令 command_data = "" ' 初始化控制命令

More information