亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? building an 8-bit pc-based logic analyzer.htm

?? Builiding of 8 bit Logic Analyzer
?? HTM
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0060)http://et.nmsu.edu/~etti/winter97/computers/logic/logic.html -->
<!  REQUEST: REVIEWTITLE: Building an 8-bit PC-Based Logic AnalyzerAUTHOR: Kyle C. QuinnellEMAIL ADDRESS: kquinnel@nmsu.eduINDEX: ORGANIZATION:  New Mexico State University/!><HTML><HEAD><TITLE>Building an 8-bit PC-Based Logic Analyzer</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<CENTER>
<HR>

<H1>Building an 8-bit PC-Based Logic Analyzer</H1></CENTER>
<HR>

<CENTER>
<H4>by</H4>
<P><B>Kyle C. Quinnell<BR><I><A 
href="mailto:kquinnel@nmsu.edu">kquinnel@nmsu.edu</A></I><BR>Department of 
Engineering Technology<BR>New Mexico State University</B><BR></CENTER>
<P><B>
<CENTER>Abstract</CENTER></B>
<P><I>This paper presents a way of using a PC computer as a an 8-bit Logic 
Analyzer. The technique uses the capabilities of the PC computer's parallel port 
to provide an 8-bit input. The software that provides the interface was written 
using Turbo C++. The software and hardware requirement for developing the Logic 
Analyzer are discussed in detail.</I> 
<P><B>
<CENTER>I. Introduction</CENTER></B>
<P>The purpose of this project was to create a useful yet easy to build Logic 
Analyzer that would provide much of the functionality of a real Logic Analyzer. 
The biggest drawback that the computer has is its sampling rate. The program was 
written on a 75 MHz Pentium computer which provided accurate sampling rates up 
to 10 kHz. Although this doesn't match the speed of real Logic Analyzers, this 
should be sufficient speed to be useful for many projects. 
<P>The only requirements for the computer are a VGA display and a parallel port. 
There is no speed requirement for the computer but of course the higher the 
clock rate of the computer the higher the obtainable sampling rate will be. 
Also, if you are using Windows 95, the program must be run in DOS mode. 
<P><B>
<CENTER>II. Getting information into the computer</CENTER></B>
<P>As mentioned above, the parallel port is used to provide the interface for an 
8-bit input. The reason the parallel port was chosen was because virtually all 
PC compatible computers have at least one. 
<P>The base address for the parallel port(s) can be found by looking at memory 
location 0000:0408 (hexadecimal). This can be done by using the DEBUG program 
which is provided with DOS. The following shows how this can be done. <PRE>Run the program from the DOS prompt
C:\debug

Type in the following command
-D0000:0408

The following data gets displayed on the screen
0000:0400                          78 03 00 00 00 00 00 00           x.......
0000:0410  63 D4 00 80 02 80 00 20-00 00 20 00 20 00 0D 1C   c...... .. . ...
0000:0420  65 12 62 30 75 16 67 22-0D 1C 64 20 30 0B 30 0B   e.b0u.g"..d 0.0.
0000:0430  30 0B 30 0B 3A 27 30 0B-34 05 30 0B 38 09 00 00   0.0.:'0.4.0.8...
0000:0440  00 00 C0 00 00 00 00 00-00 03 50 00 00 10 00 00   ..........P.....
0000:0450  00 0C 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
0000:0460  0E 0D 00 D4 03 29 30 03-00 00 C0 04 AA B6 0B 00   .....)0.........
0000:0470  00 00 00 00 00 01 00 00-14 14 14 3C 01 01 01 01   ...........&lt;....
0000:0480  1E 00 3E 00 18 10 00 60                           ..&gt;....`
-
</PRE>
<P>The first 2 byte number at address 0000:0408 corresponds to the base address 
of LPT1. The second 2 byte number corresponds to LPT2, and so on. The base 
address for LPT1 in this case turns out to be 0x378. 
<P>The parallel port is divided up into three 8-bit ports. The base address 
corresponds to the Data port. This port can be used to provide an 8-bit output. 
The address base+1 corresponds to the Status port. The address base+2 
corresponds to the Control Port. By combining the Status and Control Port along 
with some minor bit manipulation it's possible to obtain an 8-bit input from the 
parallel port. The following diagrams show the layout of each of the ports and 
the pin description of the DB25 connector on the back of the computer. 
<HR>

<CENTER><IMG src="Building an 8-bit PC-Based Logic Analyzer_files/kcqfig1.gif"> 
<HR>
<IMG src="Building an 8-bit PC-Based Logic Analyzer_files/kcqfig2.gif"></CENTER>
<HR>
For more information about interfacing to the printer port please see the 
excellent <A 
href="http://et.nmsu.edu/~etti/fall96/computer/printer/printer.html">article</A> 
written by Peter H. Anderson. 
<P><B>
<CENTER>III. Controlling the sampling rate</CENTER></B>
<P>The sampling rate is controlled by the 8253 or equivalent frequency divider 
that is built in to the computer. The input frequency to the 8253 is 
approximately 1.19Mhz. The 8253 has 3 frequency dividers/timers. Timer 0 is used 
to provide an 18Hz timing signal used for timing purposes. Timer 1 is used to 
provide the signal for the memory refresh. Timer 2 is used to control the 
internal speaker and other devices. Timer 0 is connected to IRQ0 of the 8259 PIC 
which in turn calls INT 08, which in turn calls INT 1c. Normally, the computer 
uses interrupt 08 to keep track of the time. By reprogramming the 8253 timer and 
writing a new INT 1c it is possible to control the sampling rate. 
<P>The code used to program the 8253 timer follows: 
<P><PRE>void set_rate(void)
{
	int number;
	int ratehi;
	int ratelo;

	number=65536/(sample_rate/18.2);
	ratehi=number&amp;0xff00;
	ratehi=ratehi/256;
	ratelo=number&amp;0x00ff;

	outportb(0x43,0x36);                    
	outportb(0x40,ratelo);                          
	outportb(0x40,ratehi);
}
</PRE>
<P>
<P>First INT 1c is rewritten to sample the port and plot each of the 8-bits on 
the screen. Next, the 8253 timer is reprogrammed to "tick" at the desired 
sampling rate. When these two things have been done, INT 1c is called for each 
tick of the 8253. The frequency of the 8253 can be set anywhere from 18 Hz to 
approximately 65 kHz. However, the program limits the sampling rate from 100 Hz 
to 10 kHz. 
<P>The new interrupt 1c used in the program follows: 
<P><PRE>// New interrupt 0x1c
void interrupt sample()
{
	static int x=35;
	int y;
	int offset=0;
	char temp;
	int mask=1;                             // Start with LSB at top of screen

	ticks++;                                // Keep track of ticks
	if (sample_on) {

		if(index==0)
			x=35;

		if(x==639) {                    // Reset X coordinate
			x=35;
			cleartraces();
		}
		temp=readport();

		if (compare(stop_trigger_mask)==1)
			sample_on=0;

		for(y=429;y&gt;=79;y-=50) {
			if (((int)temp&amp;mask)&gt;0)
				offset=25;
			else
				offset=0;

			mask=mask&lt;&lt;1;
			writedot(x,y-offset);
		}
			data[index%100000]=temp;
			index++;

		x++;

	}
}
</PRE><B>
<CENTER>IV. Building the interface</CENTER></B>
<P>All that is required to build the interface is an ordinary printer cable and 
a 74LS245 buffer to provide protection for the port. Below are the necessary 
diagrams to build the interface. 
<P>
<HR>

<CENTER><B>Pin layout of a Centronics connector.</B> 
<P><IMG src="Building an 8-bit PC-Based Logic Analyzer_files/kcqfig3.gif"> 
<HR>
<B>Pin layout of a 74LS245 buffer.</B> 
<P><IMG src="Building an 8-bit PC-Based Logic Analyzer_files/kcqfig4.gif"> 
<HR>
<B>Connections to the 74LS245.</B> 
<P><IMG src="Building an 8-bit PC-Based Logic Analyzer_files/kcqfig5.gif"> 
<HR>

<P><B>V. Using the Program</B></CENTER>
<P>The first screen shown will be the main menu. Below is a picture of the main 
menu. 
<HR>

<CENTER><IMG 
src="Building an 8-bit PC-Based Logic Analyzer_files/kcqfig6.gif"></CENTER>
<HR>

<P>Features include: 
<P><B>Start Trigger Pattern:</B> An 8-bit number that will start the sampling 
when it is encountered by the computer. 
<P><B>Stop Trigger Pattern:</B> An 8-bit number that will stop the sampling when 
it is encountered by the computer. 
<P><I><B>NOTE:</B></I> For both of the above options all 8 digits of the number 
must be entered. Valid characters are 1,0, or X. 
<P><B>Clear Trigger Patterns:</B> Clears the Start and Stop Trigger patterns. 
<P><B>Sample Rate:</B> Sample rate can be adjusted from 100 Hz to 10 kHz using 
the up and down arrow keys. 
<P><B>Go To Sample Menu:</B> Takes you to the menu where the actual sampling 
takes place. 
<P><B>View Sample Traces:</B> Takes you to the View Traces Screen 
<P><B>Load and Save Trace:</B> Allows you to Load or Save the sampled data to a 
disk file. 
<P><B>Clear Buffer:</B> Clears all sampled data that is in buffer. Below is a 
picture of the View Traces Screen. 
<HR>

<CENTER><IMG 
src="Building an 8-bit PC-Based Logic Analyzer_files/kcqfig7.gif"></CENTER>
<HR>

<P>Features Include: 
<P><B>Cursor1 &amp; Cursor2:</B> Can be used to measure time or change in time. 
<P><B>Zoom In &amp; Zoom Out:</B> Used to change magnification of traces. 
<P><B>Pan Left &amp; Pan Right:</B> Used to scroll the traces left and right. 
<P>Another nice feature used in the program is the keyboard repeat rate is sped 
up to its maximum rate to improve the cursor speed on the View Traces screen. 
<P>The code used to speed up the repeat rate follows: 
<P><PRE>// Set keyboard repeat rate
void setrepeatrate(char x)
{
	asm {mov ah,3
	     mov al,5
	     mov bh,0
	     mov bl,x
	     int 0x16
	}
}
</PRE>
<HR>

<P>To download the executable file along with the C source code click <A 
href="http://et.nmsu.edu/~etti/winter97/computers/logic/logic.zip">here</A> 
<HR>

<P>
<CENTER><B>VI. References</B></CENTER>
<P>Brey, Barry B. <U>The Intel Microprocessors 8086/8088, 80186, 80286, 80386, 
80486.</U> Macmillan Publishing Company. 
<P>Johnson, Jeffrey Hirst. <U>Build Your Own Low-Cost Data Acquisition and 
Display Devices.</U> TAB Books, 1994. 
<P>Bergsman, Paul. <U>Controlling the World with your PC.</U> HighText, 1994. 
<P>Anderson, Peter H. 
http://et.nmsu.edu/~etti/fall96/computer/printer/printer.html <!--#exec cmd="perl -pi -e '$_++' ../../counters/logic_counter"--></P></BODY></HTML>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久影院午夜论| 欧美系列在线观看| 亚洲欧美一区二区三区国产精品| 欧美日韩一区二区三区四区五区 | 国产欧美精品在线观看| 日本韩国视频一区二区| 97se亚洲国产综合自在线| 天天色 色综合| 亚洲欧洲性图库| 国产亚洲综合av| 日韩一本二本av| 欧美熟乱第一页| 91在线你懂得| 国产传媒欧美日韩成人| 男人的天堂亚洲一区| 久久精品国产99久久6| 亚洲视频在线一区观看| 26uuu色噜噜精品一区二区| 欧美日韩高清影院| 色婷婷精品久久二区二区蜜臂av | 奇米影视在线99精品| 亚洲另类春色国产| 国产精品国产三级国产三级人妇 | 欧美一区二区三区思思人| 色婷婷久久综合| caoporm超碰国产精品| 国产精品18久久久久久vr | 国产乱码精品一区二区三区av| 亚欧色一区w666天堂| 一区二区三区蜜桃网| 国产精品萝li| 国产精品免费视频网站| 欧美激情一区二区三区在线| 日韩精品一区二区三区中文精品| 这里只有精品视频在线观看| 欧美在线不卡一区| 在线亚洲一区观看| 色88888久久久久久影院野外| 波多野结衣视频一区| 成人免费观看男女羞羞视频| 国产成人免费9x9x人网站视频| 激情偷乱视频一区二区三区| 九九精品视频在线看| 精品影院一区二区久久久| 美国精品在线观看| 狠狠色丁香婷婷综合| 国产一区二区视频在线| 国产精品一区二区男女羞羞无遮挡| 久久国产精品72免费观看| 黄页视频在线91| 国产麻豆视频精品| 欧美日韩国产一级二级| 欧美日韩美少妇| 日韩视频123| 久久一二三国产| 亚洲国产精品ⅴa在线观看| 中国色在线观看另类| 亚洲欧美另类小说| 亚洲第一在线综合网站| 蜜桃av一区二区三区| 国产一区二区在线视频| caoporn国产精品| 欧美日韩电影一区| 欧美成人伊人久久综合网| 久久久www成人免费无遮挡大片| 国产日韩欧美制服另类| 亚洲男人的天堂在线观看| 亚洲亚洲人成综合网络| 久久97超碰色| 99精品久久只有精品| 在线亚洲一区观看| 欧美刺激午夜性久久久久久久| 久久―日本道色综合久久| 中文字幕制服丝袜一区二区三区 | 日韩欧美久久久| 久久午夜电影网| 亚洲精品视频在线观看免费| 天天色综合天天| 国产一区三区三区| 在线观看91视频| 日韩美女在线视频| 椎名由奈av一区二区三区| 亚洲18女电影在线观看| 成人黄色av电影| 欧美视频在线不卡| 精品国产精品网麻豆系列| 中文字幕亚洲精品在线观看| 视频一区二区三区在线| 国产999精品久久久久久绿帽| 色国产精品一区在线观看| 精品乱码亚洲一区二区不卡| 中文字幕一区二区5566日韩| 日韩精品一二三四| 久久亚洲欧美国产精品乐播| 亚洲欧美日韩国产成人精品影院| 奇米影视7777精品一区二区| 99久久久无码国产精品| 欧美一级片在线观看| 中文字幕色av一区二区三区| 免费美女久久99| 色婷婷久久久久swag精品 | eeuss鲁片一区二区三区在线观看| 欧美高清精品3d| 日韩毛片在线免费观看| 极品瑜伽女神91| 欧美日韩一区不卡| 中文字幕一区二区在线观看| 久久99国内精品| 欧美日韩国产一二三| 最新国产成人在线观看| 国产精品乡下勾搭老头1| 欧美一级xxx| 亚洲午夜精品17c| 91玉足脚交白嫩脚丫在线播放| 日韩精品一区在线观看| 亚洲18色成人| 在线亚洲高清视频| 亚洲视频在线观看三级| 国产成人一区在线| www日韩大片| 久久国产乱子精品免费女| 日韩免费电影网站| 国产精品久久久久一区二区三区共| 免费日本视频一区| 91麻豆精品久久久久蜜臀| 一区二区三区不卡视频在线观看| 成人网男人的天堂| 日韩不卡一区二区| 欧美久久久久免费| 日韩毛片高清在线播放| 大陆成人av片| 欧美韩国日本一区| 国产成人精品一区二| 精品日韩99亚洲| 精品一区二区三区在线播放视频 | 国产精品69久久久久水密桃| 91精品国产综合久久香蕉麻豆| 亚洲制服丝袜av| 91麻豆123| 亚洲精品日韩综合观看成人91| 不卡一区二区三区四区| 国产精品欧美精品| 成人福利在线看| 亚洲视频在线一区观看| 91在线精品秘密一区二区| 日韩伦理电影网| 色哦色哦哦色天天综合| 亚洲国产精品人人做人人爽| 欧美色综合影院| 无吗不卡中文字幕| 日韩三级视频在线观看| 激情综合网最新| 欧美韩国日本一区| 91免费看视频| 亚洲自拍与偷拍| 制服.丝袜.亚洲.另类.中文| 美女在线一区二区| 国产亚洲精品bt天堂精选| 成人免费av资源| 一区二区三区四区视频精品免费 | 久久综合五月天婷婷伊人| 国产乱色国产精品免费视频| 欧美激情中文字幕| 色琪琪一区二区三区亚洲区| 亚洲福利国产精品| 日韩欧美国产不卡| 成人国产在线观看| 亚洲一区免费在线观看| 日韩欧美激情一区| 成人一级视频在线观看| 亚洲午夜三级在线| 日韩欧美一级精品久久| 国产1区2区3区精品美女| 亚洲老妇xxxxxx| 日韩欧美二区三区| 成人av影视在线观看| 亚洲第一av色| 久久久99免费| 欧美丝袜丝交足nylons图片| 激情五月婷婷综合网| 亚洲另类春色校园小说| 精品乱人伦一区二区三区| 色综合色综合色综合色综合色综合 | 91香蕉国产在线观看软件| 亚洲成va人在线观看| 国产亚洲欧洲997久久综合| 91网站在线观看视频| 日本色综合中文字幕| 综合欧美一区二区三区| 日韩欧美国产精品一区| 色婷婷激情久久| 国产成人免费视频精品含羞草妖精| 亚洲资源在线观看| 中文幕一区二区三区久久蜜桃| 欧美日韩亚洲另类| 国产999精品久久久久久绿帽| 午夜精品影院在线观看| 国产精品久久影院| 欧美成人伊人久久综合网| 欧美视频完全免费看|