.


:




:

































 

 

 

 


. 1. , ,




1. , , .

2. .

3. .

5. (F7) STATUS, FSR PORTB.

6. , <RB3>.

7. , .

 

:

1. , , (F8), . , , (F7) 20000 .

2. DELAY_SCAN TMP0 TMP1 02h, .

3. MPLAB (). , 3.18. Asynchronous Stimulus Simulator Stimulus Debug. , . , , Assign Pin, , . , , RB3. ( ):

Pulse ;

Low ;

High ;

Toggle .

, , .

 

 

 

3.18

 

( Stopwatch Windows). . Cycles , Time , Processor Frequency . Zero , Clear On Reset .

 

 

3.19

 

4. : LAB- \ Lab_Digital \ Mps_2\ \ scan.asm.

 

3.6.5 :

1. , goto $-12 goto $-.12 org 0x40.

2. ?

3. ?


3.7 7 TMR0

- .

, (Fosc/4).

8- , .

8- , .

, OPTION_REG ( 3.20).

T0CS '0' (OPTION_REG<5>), TMR0 .

PSA (OPTION_REG<3>).

 





:


: 2016-11-02; !; : 365 |


:

:

, ,
==> ...

1645 - | 1566 -


© 2015-2024 lektsii.org - -

: 0.008 .