8253 master chip timer counter functions and programming work /.

1) 8253A six test work program 00_test ~ 05_test stored in experiments 4.2 project subfolders in the test. 3 embodiment, for example, test procedure 03_test, whose function is to generate a periodic square wave at the output terminal OUT0 8253A chip cycle CLK width of N cycles (N is a count initial value of the program is set).

 

 

 

2) compile programming, automatically executing the program. 03_test.asm, ends A and B to observe the waveform A virtual oscilloscope display.

 

 

 

3) 00test.asm work is 0 8253A test program, different from the embodiment 3, the mode 0 is generated transitions on a disposable. Compilation, programming, automatic operation 00test source, observe the virtual oscilloscope waveform display.

4) compiled, programming and automatic operation 01test, 04test 05test source and observe the above-described program running in a virtual oscilloscope waveform display contrast 8253A working mode 0 and mode 1, and how the results of run 4 and 5.

 

 

 

Guess you like

Origin www.cnblogs.com/mutudou/p/11858638.html