English
Language : 

CD2481 Datasheet, PDF (73/222 Pages) Intel Corporation – Programmable Four-Channel Communications Controller
Programmable Four-Channel Communications Controller — CD2481
/* Once aux. instruction registers are loaded, execute store sequence. */
while (fgets(buffer,sizeof(buffer),ifp)) {
adrptr = strtok(buffer, " \t");
adrptr = strtok(NULL, " \t");
sscanf(adrptr,"%1x%2x%2x",&code1,&code2,&code3);
outportb(airl, code3%256);/* extract code into aux. */
outportb(airm, code2%256);/* instruction registers */
outportb(airh, code1%256);
outportb(btcr, 0x03);/* single step to store in RAM */
i++;
}
return(i);
}
void dl_start( );
{
outportb(airl, 0xff);/* set jump 0x3fff instruction for restart */
outportb(airm, 0x3f);
outportb(airh, 03);
outportb(mtcr, 0x01);/* select auxilary instruction */
outportb(btcr, 0x03);/* do single step twice */
outportb(btcr, 0x03);
outportb(mtcr, 0x03);/* execute from external RAM */
/* enable clock, begin executing from RAM code store */
outportb(btcr,0x0);
}
main(argc, argv)
int argc;
char*argv[ ];
{
switch (argc) {
Datasheet
73