Lanner LEC-7900 Manual de usuario Pagina 32

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 36
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 31
31
//;Set GPO32 to 1
delay(50);
for(temp6=1; temp6<50; temp6++)
{
temp8 = (read_w83627UHG_reg(0x07, 0xE1) >> 6) & 0x01;
//;Read GPI36=?
delay(50);
if(temp8 == 1)
{
printf("Write OUT GPO32=1 then IN GPI36=%2X \n",temp8);
goto gpio30;
}
}
printf("GPIO set HI error\n");
gpio30:
write_w83627UHG_reg(0x07, 0xE1, read_w83627UHG_reg(0x07, 0xE1) & ~0x04);
//;Set GPIO32 to 0
delay(50);
for(temp6=1; temp6<50; temp6++)
{
temp8 = (read_w83627UHG_reg(0x07, 0xE1) >> 6) & 0x01;
//;Read GPIO36=?
delay(50);
if(temp8 == 0)
{
printf("Write OUT GPO32=0 tnen IN GPI36=%2X \n",temp8);
goto gpio41;
}
}
printf("GPIO set LO error\n");
//;*********************GPO33 and
GPI37*****************************************************
gpio41:
printf("GPO33(OUT) to GPI37(IN)...\n");
write_w83627UHG_reg(0x07, 0xE1, read_w83627UHG_reg(0x07, 0xE1) | 0x08);
//;Set GPO33 to 1
delay(50);
for(temp6=1; temp6<50; temp6++)
{
temp8 = (read_w83627UHG_reg(0x07, 0xE1) >> 7) & 0x01;
//;Read GPI37=?
delay(50);
if(temp8 == 1)
{
printf("Write OUT GPO33=1 then IN GPI37=%2X \n",temp8);
goto gpio40;
}
}
printf("GPIO set HI error\n");
gpio40:
write_w83627UHG_reg(0x07, 0xE1, read_w83627UHG_reg(0x07, 0xE1) & ~0x08);
//;Set GPIO33 to 0
delay(50);
for(temp6=1; temp6<50; temp6++)
{
temp8 = (read_w83627UHG_reg(0x07, 0xE1) >> 7) & 0x01;
//;Read GPIO37=?
delay(50);
if(temp8 == 0)
{
printf("Write OUT GPO33=0 tnen IN GPI37=%2X \n",temp8);
goto _end;
}
}
printf("GPIO set LO error\n");
_end:
printf("Finish!!\n");
Exit_Configuation();
Vista de pagina 31
1 2 ... 27 28 29 30 31 32 33 34 35 36

Comentarios a estos manuales

Sin comentarios