Figure 11. Flow Chart Dual Continuous Mode

Software Overview

Start

Initialize DSP

Wait States, AR Pointer, IRQ Table, Data Memory, Serial Port

Initialize SPI

Active Transmitter, Use Frame Sync,

Generate External Clock

SAVE_INTO_MEMORY = 1

SAVE_INTO_MEMORY = 0

Initialize DSP Memory For Storing Samples

AR7 Points to The First Store Location

AR0 Points to The Table End

ADCOUNT = Table Size (Number of Samples)

IME CALABRATION = 1 Manual background

IME CALABRATION = 0 Manual background

Calibrate Internal Midscale Error

SME CALABRATION = 1

 

Calibrate System Midscale Error

SME CALABRATION = 0

Initialize (Id) The Two ADC Registers

CR0 = CR0_SEND

CR1 = CR1_SEND

Increase I/O-Wait States to 7

Start Sampling

This Has Been Initialized

by The WR 1/0 Transmit

Wait 450 ns

Read Sample A

A = Port(ADC)

Wait 5(6) ADC Clock Cycles

tC(RD) = 800 ns (With 8 MHz ADC Clock)

Read Sample B

B = Port(ADC)

 

1

SEND_OUT_PARALLEL = 1

 

Copy Last Sample to Parallel DAC

SEND_OUT_PARALLEL = 0

SEND_OUT_SERIAL = 1

 

Copy Last Sample to Serial DAC

SEND_OUT_SERIAL = 0

if Send Register is Empty

 

 

SAVE_INTO_MEMORY = 0

SAVE_INTO_MEMORY = 1

Store Sample Into Memory

Save Sample to AR7 – Pointed Location

Table End Reached?

No

 

(AR7 = AR0 ?)

 

Ye

 

Reset Actual Memory Pointer

AR6/7= First Memory Store Location

AR7= Data_Loc_A; AR6 = Data_LOc_B

Wait 5(6) ADC Clock Cycles

Started at Time Stamp 1

tC(RD) = 800 ns (With 8 MHz ADC Clock)

Figure 11. Flow Chart Dual Continuous Mode

Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP

39

Page 45
Image 45
Texas Instruments TLV1562 manual Flow Chart Dual Continuous Mode, Software Overview