Código de programación Cs
// Lo escribí según la tabla de datos.
//No hay chip y no se puede verificar.
//Vale, puntos.
//Si no está bien, por favor dímelo.
//El siguiente es el proceso
sbit _ cs
sbit scl
sbit sda
bool * VL [7];
bool * VR[7];
Carácter sin firmar VolLeft//Canal izquierdo, 0~255
Carácter sin firmar VolRight/ / Canal derecho, 0~255
void main()
{
_ cs = 0;
...
vl = & ampVolLeft
vr = & ampVolLeft;
_ cs = 1
SCL = 0;
p>
int j;
for(j = 0; j & lt=7;j++)
{
duérmenos(1);
SCL = 1;
sda = VR[7-j]
duerme(1); ;
}
for(j = 0;j & lt=7;j++)
{
duérmete(1) ;
SCL = 1;
sda = VL[7-j];
duérmete(1);
SCL = 0;
}
_ cs = 0;
...
}