參數(shù)資料
型號: AM8530
廠商: Advanced Micro Devices, Inc.
英文描述: Serial Communications Controller
中文描述: 串行通信控制器
文件頁數(shù): 183/194頁
文件大?。?/td> 797K
代理商: AM8530
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁當(dāng)前第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁
SCC Application Notes
AMD
7–34
S OFT WARE ROUT INES
S oftware to T ransmit Data at 1 Mb/s Using DMA
#include “stdio.h”
#define arraysize 40
/*size of array for the 8530 sync. init*/
#define port 0x0382
/*I/O port address for the SCC channel A*/
#define aport 0x0380
/*I/O port address for 8530 channel B*/
#define aportd 0x0381
/*I/O data address for 8530 channel B*/
#define arraysiz 18
/*size of array for the 8530 async. init*/
unsigned char *ptr;
unsigned int segread();
struct(int scs, sss, sds, ses; ) rv;
unsigned long int data_segment;
unsigned long int data_seg;
unsigned int num;
unsigned long int adrr;
/*TRANSMIT ROUTINE*/
main()
{
unsigned char var_nam, string1[8], N, n;
unsigned int result, res;
do
{
/*This routine chooses between synchronous
and asynchronous data transfers*/
printf(“Do you want to print a file(Y/N) “);
var_nam = scanf(“%s”, string1);
result + strcmp(string1,”N”);
res = strcmp(string1,”n”);
if(result != 0 && res != 0)
{
/*Main routine for asynchronous data transfer*/
printf(“Asynch transmit\n”);
opnfile();
/*Read file from disk into system memory*/
asccinit();
/*Initialize the 8530 for asynchronous trans-
mit*/
trnum();
/*Transmit length of file*/
cont();
atrans();
/*Transmit the entire file*/
else
{
/*Main routine for synchronous data transfer*/
printf(“Synchronous transmit\n” );
opnfile();
sccinit();
dmainit();
cont();
dminit();
}
/*This allows the user to continue transmission of next
file*/
printf(“Do you want to transmit another file(Y/N) “);
var_nam = scanf(“%s”, string1);
result = strcmp(string1,”N”);
res = strcmp(string1,”n”);
}
while(result != 0 && != 0);
}
相關(guān)PDF資料
PDF描述
AM8530H Serial Communications Controller
AM85C30-10PC Enhanced Serial Communications Controller
Am85C30 Serial Communications Controller
AM85C30 Enhanced Serial Communications Controller
AM85C30-8PC Enhanced Serial Communications Controller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AM8530ADC 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Communications Controller
AM8530ADCB 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Communications Controller
AM8530AJC 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Communications Controller
AM8530APC 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Communications Controller
AM8530DC 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Communications Controller