Presentation is loading. Please wait.

Presentation is loading. Please wait.

PLC.ASM Example Addresses Machine Code in Hex :020000040000FA :020000000528D1 :08000800112800308C00831662 :1000100000308500F0308600831288308B0063004A.

Similar presentations


Presentation on theme: "PLC.ASM Example Addresses Machine Code in Hex :020000040000FA :020000000528D1 :08000800112800308C00831662 :1000100000308500F0308600831288308B0063004A."— Presentation transcript:

1

2

3

4 PLC.ASM Example

5

6 Addresses Machine Code in Hex :020000040000FA :020000000528D1 :08000800112800308C00831662 :1000100000308500F0308600831288308B0063004A :100020000F2800308D0006088E00F039031D2220B5 :1000300060300C05603A031925208D1928280E1A06 :100040002520282810308D04080008308D04080071 :0C0050000E088C000D0885000B10090044 :00000001FF plc.lst Listing file

7 From list file

8

9 00000000 W Register

10 00000000 TRISA Register Outputs 11110000 TRISB Register Inputs

11 10001000 INTCON Register

12

13 00000000 W Register

14 01010000 PortB 01010000 W Register

15 1111000001010000 Bitwise AND 01010000 W Register

16

17 0001000000010000 Put a 1 in 4 th bit of OUTPUT

18 0110000001000000 W Register Bitwise AND old_data 01100000 xorlw 00100000 Compare with 00000000 by checking Z bit

19

20 Simulation Create a new project Add the file plc.asm

21

22

23

24

25

26

27

28 Input


Download ppt "PLC.ASM Example Addresses Machine Code in Hex :020000040000FA :020000000528D1 :08000800112800308C00831662 :1000100000308500F0308600831288308B0063004A."

Similar presentations


Ads by Google