| Electronic Components Datasheet Search |
|
AM8530 Datasheet(PDF) 187 Page - Advanced Micro Devices |
|
|
|||||||||||||||||||||||||||||
AM8530 Datasheet(HTML) 187 Page - Advanced Micro Devices |
|
187 / 194 page ![]() SCC Application Notes AMD 7–38 { unsigned long int count; count = 0; while(count<35550) { count++; } } /*THIS ROUTINE INITIALIZES THE 8530 FOR ASYN- CHRONOUS TRANSMIT*/ asccinit() { unsigned char array[arraysiz], temp; unsigned int i=0; array[0]=0x09; array[1]=0xC0; /*hardware reset*/ array[2]=0x4; array[3]=0x44; /*X16 clock, 1 stop bits*/ array[4]=0x3; array[5]=0xC0; /*8 bits/char.*/ array[6]=0x5; array[7]=0x60; /*8 bits/char.*/ array[8]=0xB; array[9]=0x56; /*RxC=BR gen, TxC=BR, 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]=0x07; /*set DTR/REQ, enable BR gen, PCLK = BR source*/ array[16]=0x5; array[17]=0x68; /*Enable transmitter*/ /*BEGIN ASYNCHRONOUS ROUTINE*/ temp = inportb(aport);/*read from RR0 to set up state machine*/ while(i<arraysiz) { outportb)aport, array[i++]); } } /*TRANSMIT FILE ASYNCHRONOUSLY AT 19.2 kBaud*/ atrans() { unsigned int temp, tmp, tx; unsigned int i, count; temp = 0; num = num + 1; for (i=0; i<num; i++) /*process the loop until all chars. are transmitted*/ { tx = 0; while(tx==0) { temp = inportb(aport); /*load RR0 to check Tx buffer empty bit*/ tx = temp & 0x04; } |
|
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 |
| 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 |