Intel 386 Uživatelský manuál Strana 492

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 691
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 491
16-13
INPUT/OUTPUT PORTS
{
/* Select pin values */
_SetEXRegByte(P1LTC, PortLtc1);
_SetEXRegByte(P2LTC, PortLtc2);
_SetEXRegByte(P3LTC, PortLtc3);
/* Select pin directions */
_SetEXRegByte(P1DIR, PortDir1);
_SetEXRegByte(P2DIR, PortDir2);
_SetEXRegByte(P3DIR, PortDir3);
/* Turn off weak resistors and select either I/O or peripheral mode */
_SetEXRegByte(P1CFG, Port1);
_SetEXRegByte(P2CFG, Port2);
_SetEXRegByte(P3CFG, Port3);
} /* Init_IOPorts */
Zobrazit stránku 491
1 2 ... 487 488 489 490 491 492 493 494 495 496 497 ... 690 691

Komentáře k této Příručce

Žádné komentáře