Electronic Components Datasheet Search
  English  ▼

X  

AM8530 Datasheet(PDF) 192 Page - Advanced Micro Devices

Part # AM8530
Description  Serial Communications Controller
PDF  194 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  AMD [Advanced Micro Devices]
Direct Link  http://www.amd.com
Logo AMD - Advanced Micro Devices

AM8530 Datasheet(HTML) 192 Page - Advanced Micro Devices

Back Button AM8530 Datasheet HTML 186Page - Advanced Micro Devices AM8530 Datasheet HTML 187Page - Advanced Micro Devices AM8530 Datasheet HTML 188Page - Advanced Micro Devices AM8530 Datasheet HTML 189Page - Advanced Micro Devices AM8530 Datasheet HTML 190Page - Advanced Micro Devices AM8530 Datasheet HTML 191Page - Advanced Micro Devices AM8530 Datasheet HTML 192Page - Advanced Micro Devices AM8530 Datasheet HTML 193Page - Advanced Micro Devices AM8530 Datasheet HTML 194Page - Advanced Micro Devices  
Zoom Inzoom in Zoom Outzoom out
 192 / 194 page
background image
SCC Application Notes
AMD
7–43
unsigned int fd;
int num_wr;
ptr = ptr + 3;
/*deletes device address and length of
file before writing onto the disk*/
num = num – 3;
printf(“What shall I name the received file?”);
var_nam = scanf(“%s”, name);
fd = creat(name, BWRITE);
if(fd<0) abort(“\ncreat error occured\n”);
num_wr = write(fd, ptr, num);
printf(“Number of bytes written to file rec.dat =
%d\n”,num_wr);
close(fd);
}
/*THIS ROUTINE INITIALIZES THE DMA CONTROLLER FOR RECEIVE*/
dminit()
{
unsigned int lsb, temp, msb, latch, wrdh, wrd1, tmp1, start;
unsigned int bytn, byt, tmp2;
outportb(0x09, 0x01); /*clear all DMA requests on channel 1*/
outportb(0x0A, 0x05); /*mask channel 1 DMA request*/
outportb(0x0B, 0x45); /*mode register for single transfer mode,
read, auto init, address increment*/
lsb = adrr & 0xFF;
temp = adrr >> 0x08;
/*rotate ptr 8 bits to get msb*/
msb = temp & 0xFF;
temp = temp >> 0x08;
/*rotate 8 bits to get sector address*/
latch = temp & 0x0F;
outportb(0x81, latch);/*load sector address into DMA page
register*/
outportb(0x02, lsb);
/*lower byte of starting address*/
outportb(0x02, msb);
/*upper byte of starting address*/
start = adrr & 0xFFFF;
bytn = num;
wrd1 = bytn & 0xFF;
/*lower order byte of wordcount*/
tmp1 = bytn >> 0x08;
/*rotate wordcount 8 bits for masb*/
wrdh = tmp1 & 0xFF;
/*upper byte of wordcount*/
outportb(0x03, wrd1); /*this is the lower byte of # of bytes
that fit within the first sector*/
outportb(0x03, wrdh); /*upper byte of wordcount*/
outportb(0x0A, 0x01); /*enable DMA*/
outportb(port, 0x00);
outportb(port, 0x00); /*reset transmit underrun latch*/
}
/*THIS ROUTINE POLLS BIT D7 IN RR1 TO DETECT AN END–OF–MES-
SAGE*/
end()
{
unsigned char temp, ef;
unsigned int count;
ef = 0;
temp = 0
inportb(port);
outportb(port, 0x00);
outportb(port, 0x30);
while(ef==0)
{
count = 0;



Html Pages

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  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com