ADC 400F Spezifikationen Seite 8

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 26
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 7
4
B7 B6 B5 B4 B3 B2 B1 B7 B6 B5 B4 B3 B2 B1B0 B0
A14 A13 A12 A11 A10 A9 A8 A6 A5 A4 A3A7A15 A2 A1 A0
t
conv
I/O
CLOCK
DATA
IN
DATA
OUT
CS
EOC
( = 0) ( = 0)
( = 0) ( = 0)
Figure 5. TLC2543 to SPI Interface Timing
Software Flowcharts
Figures 6, 7, and 8 show the flow charts for the main program and subroutines used in the TLC2543 to TMS370C010
interface software shown in this application report. The same program structure also applies to the other three interfaces
included in this report.
Reads channel/mode data for TLC2543 into microcontroller via parallel I/O port.
(reformats channel/mode data if serial data is sent LSB first).
Puts channel/mode data into accessible register.
Derives destination address for STORE from channel data.
Provides CS high to low transition prior to conversion.
Provides serial I/O CLOCK to TLC2543.
Sends channel/mode data to TLC2543.
Receives MSbyte then LSbyte of previous A/D conversion.
Stores MSbyte in even address of selected RAM space.
Stores LSbyte in odd address of selected RAM space
(all addresses mapped to corresponding channel number).
Jump to start for next conversion
2
CALL
SUBROUTINE
DATAIN
3
CALL
SUBROUTINE
ADC
4
CALL
SUBROUTINE
STORE
5
JUMP TO
START
1
START
Figure 6. Flowchart for Main Program of TLC2543 to TMS370C010
Seitenansicht 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 25 26

Kommentare zu diesen Handbüchern

Keine Kommentare