Maxim-integrated MAXQ Family Users Guide: MAXQ8913 Supplement Instrukcja Użytkownika Strona 40

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 114
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 39
MAXQ Family Users Guide:
MAXQ8913 Supplement
6-8
6.2 Port Pin Examples
6.2.1 Port Pin Example 1: Driving Outputs on Port 0
move PO0, #000h ; Set all outputs low
move PD0, #0FFh ; Set all P0 pins to output mode
6.2.2 Port Pin Example 2: Receiving Inputs on Port 0
move PO0, #0FFh ; Set weak pullups ON on all pins
move PD0, #000h ; Set all P0 pins to input mode
nop ; Wait for external source to drive P0 pins
move Acc, PI0 ; Get input values from P0 (will return FF if
; no other source drives the pins low)
Maxim Integrated
Przeglądanie stron 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 113 114

Komentarze do niniejszej Instrukcji

Brak uwag