An118 – Cirrus Logic AN118 User Manual
Page 22

AN118
22
AN118REV2
write_to_register(0x03,0x00,0x00,0x00); /* Clear RS Bit */
} while (temp != 0x40);
break;
/**********************/
/* Read Output Latch Pins */
/**********************/
case 0x5F:
temp = A1;
temp = temp<<1;
temp = temp |A0;
TXSER(temp);
COMM = 0x00; /* Turn on LED */
Delay();
COMM = 0x01; /* Turn off LED */
break;
/********************/
/* Arbitrary Read
*/
/********************/
case 0xEF:
temp= RXSER(); /* How many byte to return to PC*/ if(mode == 1) P1 = 0x04; TXSER(temp1); } /* END for loop */ /********************/ */ /********************/ temp = RXSER(); /* How many bytes to write to A/D */ if(mode == 1) P1 = 0x04;
for(j=0;j
temp1 = receive_byte();
if(mode == 1) P1 = 0x05;
COMM = 0x00; /* Turn LED on */
Delay();
COMM = 0x01; /* Turn LED off */
break;
/* Arbitrary Write
case 0xFF:
COMM = 0x00; /* Turn on LED */
Delay();
COMM = 0x01; /* Turn off LED */
transfer_byte(temp);
if(mode == 1) P1 = 0x05;
break;
- CobraNet (147 pages)
- CS4961xx (54 pages)
- CS150x (8 pages)
- CS1501 (16 pages)
- CS1601 (2 pages)
- CS1601 (16 pages)
- CS1610 (16 pages)
- CRD1610-8W (24 pages)
- CRD1611-8W (25 pages)
- CDB1610-8W (21 pages)
- CS1610A (18 pages)
- CDB1611-8W (21 pages)
- CDB1610A-8W (21 pages)
- CDB1611A-8W (21 pages)
- CRD1610A-8W (24 pages)
- CRD1611A-8W (25 pages)
- CS1615 (16 pages)
- AN403 (15 pages)
- AN401 (14 pages)
- AN400 (15 pages)
- AN375 (27 pages)
- AN376 (9 pages)
- CRD1615-8W (22 pages)
- CRD1616-8W (23 pages)
- AN402 (14 pages)
- AN404 (15 pages)
- CRD1615A-8W (21 pages)
- CS1615A (16 pages)
- CS1630 (56 pages)
- AN374 (35 pages)
- AN368 (80 pages)
- CRD1630-10W (24 pages)
- CRD1631-10W (25 pages)
- CS1680 (16 pages)
- AN405 (13 pages)
- AN379 (31 pages)
- CRD1680-7W (31 pages)
- AN335 (10 pages)
- AN334 (6 pages)
- AN312 (14 pages)
- AN Integrating CobraNet into Audio Products (16 pages)
- CobraNet Audio Routing Primer (9 pages)
- Bundle Assignments in CobraNet Systems (3 pages)
- CS2300-01 (3 pages)
- CS2000-CP (38 pages)