.


:




:

































 

 

 

 


dspic33f




1 [1] dsPIC33F ASM30 .

2 , ASM30. MPLAB IDE MPLAB SIM.

 

1 [1] dsPIC33F.

2 [1] ASM30.

3 , (. 6 ).

4 MPLAB IDE, MPLAB IDE 8 ( ) .

5 .

 

1 dsPIC33F? .

2 dsPIC33F: mov #20, W0; mov W0, W1; mov #0x4301, W5; mov W0, [W1]; add W2, #6, [W1]; and W0, W1, W2.

3 ASM30 :

- ;

- .

4 ASM30 ?

5 , .

6 ?

7 - ?

,

 

1 .

2 .

3 MPLAB IDE. .

4 dsPIC33F.

 

1 .

2 .

3 () - .

4 .

5 (25 + 13) × (18 9). . . MPLAB IDE, .

5. 1 MPLAB IDE. Project → Project Wizard ( 18.1).

 

 

18.1

 

5. 2 ( 18.2).

 

 

18.2

 

5. 3 dsPIC33fj32mc204

( 18.3) .

 

 

18.3

 

5. 4 (Active Toolsuite) Microchip C30 Toolsuite, Assembler ASM30 ( 18.4) .

 

18.4

 

5. 5 Browse ( 18.5).

 

 

18.5

 

5. 6 : \ D\Lan\DSPIC33\TE111\Ivanov\LR18\.

, , 18.

: LR18. . ( 18.5) Create New Project File : D:\Lan\DSPIC33\TE111\Ivanov\LR18\LR18. .

5. 7 ( 18.6) : +C\+Program Files (x86)\+Microchip\+MPLAB ASM30 Suite\+bin. pic30-as.exe , Add. .

 

18.6

 

5. 8 , ( 18.7).

 

 

18.7

 

5. 9 . File → New. ( 18.8) (25 + 13) × (18 9), .

1 (, __reset:) __ , () ( ) .

2 . .

 

18.8

5. 10 File → Save As , : main.s, .s ( 18.9) .

 

 

18.9

 

5. 11 LR18.mw Source Files Add Files ( 18.10).

 

 

18.10

5. 12 Add Files to Project main.s ( 18.11). 18.12.

 

 

18.11

 

 

18.12

5. 13 . Project → Build All ( 18.13).

 

 

18.13

 

. . BUILD SUCCEEDED ( 18.14).

 

18.14

 

5. 14 MPLAB IDE , . , , .

, Debugger → Select Tool MPLAB SIM ( 18.15).

Debugger " Run. MPLAB SIM . View → Special Function Registers ( 18.16).

 

18.15 MPLAB SIM

 

 

18.16

 

, , .

, , , Watch. View → Watch. . Add SFR, Symbol Name ( 18.17).

 

18.17 Watch

6 ( 18.1).

 

18.1

 

1, 2   9, 10  
3, 4   11, 12  
5, 6   13, 14  
7,8  

 

6. 1 ASM30, MPLAB SIM, .

1. 15. 25 . 20 h , 21 h .

2. 4836 2454. 2. 30 h , 32 h .

3. 0 h 0E h. Ȼ W0 09 h.

4. 236 59. 8 . .

5. W7 023 h. W7 + 32. , , .

6. (81 + 64) × (112 - 25) OR 10011010 b, .

7. 4801 209. RA. .

6. 2 LR18_X, . 5. 1 5. 14.

7 MPLAB IDE .

8 .

 

1 , .

2 .

3 .

4 .

 

 

1 () dsPIC33F?

2 ?

3 ASM30? .

4 __reset:.

5 ?





:


: 2016-12-06; !; : 915 |


:

:

, .
==> ...

1515 - | 1285 -


© 2015-2024 lektsii.org - -

: 0.035 .