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

AM85C30(1992) 查看數據表(PDF) - Advanced Micro Devices

零件编号
产品描述 (功能)
生产厂家
AM85C30
(Rev.:1992)
AMD
Advanced Micro Devices AMD
AM85C30 Datasheet PDF : 194 Pages
First Prev 191 192 193 194
AMD
SCC Application Notes
inportb(port);
outportb(port, 0x01);
temp = inportb(port);
while(count<300)
{
count++;
}
ef = temp & 0x80;
}
}
/*THIS ROUTINE LOADS THE LENGTH OF THE FILE TO BE RECEIVED*/
length()
{
unsigned int *iptr;
ptr++;
iptr = ptr;
/*assigns iptr as an address of a 16–bit
integer*/
num = *iptr;
}
/*THIS ROUTINE INITIALIZES THE 8530 FOR ASYNC. RECEIVE*/
asccinit()
{
unsigned char array[arraysiz], temp;
unsigned int =i=0;
array[0]=0x9;
array[1]=0xC0;
/*hardware reset*/
array[2]=0x4;
array[3]=0x44;
/*X16 clock, 1 stop bits*/
array[4]=0x3;
array[5]=0xE0;
/*8 bits/character*/
array[6]=0x5;
array[7]=0x60;
/*8 bits/character*/
array[8]=0xB;
array[9]=0x56;
/*RxC = BR gen, TxC = BR gen, TRxCout =
BR*/
array[10]=0xC;
array[11]=0x06; /*set BR gen for 19.2 kBaud*/
array[12]=0xD;
array[13]=0x00;
array[14]=0xE;
array[15]=0x03; /*set DTR/REQ, enable BR gen, PCLK = BR
source*/
array[16]=0x3;
array[17]=0xE1; /*enable receiver*/
temp = inportb(aport);
/*Read from RR0 to
set up state machine*/
while(i<arraysiz)
{
outportb(aport, array[i++]);
}
}
/*RECEIVE FILE ASYNCHRONOUSLY AT 19.2 kBaud*/
recfile()
{
unsigned char temp, rx;
unsigned int i, count;
rx = 0;
temp = 0;
7–44

Share Link: 

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