DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

EDE300 View Datasheet(PDF) - Unspecified

Part Name
Description
Manufacturer
EDE300 Datasheet PDF : 9 Pages
1 2 3 4 5 6 7 8 9
{
while(1)
{
data = inportb(0x3f8);
printf(“%d”,data);
if (data == 0) exit(0);
}
}
/* BEGIN INFINITE LOOP */
/* READ COM PORT #1 */
/* CAST ‘CHAR’ TO 'INT' TO VIEW ACTUAL VALUE */
/* IF INPUT IS ZERO, EXIT INFINITE LOOP */
NOTE: If your PC is not sending or receiving data properly in these examples, you may need to
enter the following at the command prompt:
MODE COM1 9600 N 8 1
This will set up the COM1 port correctly for use at 9600 BAUD as is used in the hardware examples
in this section.
Figure Two: Unidirectional Serial Reception from PC
The following code, written in ‘Turbo C’, illustrates a data write to the EDE300. It can be used in
conjunction with the hardware setup in Figure Two.
#include <stdio.h>
char data;
main()
{
data = 128;
outportb(0x3F8,data);
}
/* 8-BIT VARIABLE TO HOLD OUTGOING DATA */
/* VALUE TO BE WRITTEN TO EDE300 */
/* WRITE 'DATA' TO COM PORT #1 */
COPYRIGHT © 1996 E-Lab Digital Engineering, Inc. All Rights Reserved. Page # 3

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]