C-3
Converting DSK+ Software for the AD50-EVM
.title ”AC01 Initialization Program”
.mmregs
***************************************************************************
* Certain AC01 registers can be initialized using a conditional assembly
* constant. By setting the constant REGISTER to the appropriate value, the
* assembler will either include initialization for certain registers or
* ignore register initialization.
*
* The constant REGISTER should be set to include the following AC01 register:
*
* REGISTER (binary) =
*
* 0000 0000 0000 0001 –> initialize Register 1 (A Register)
* 0000 0000 0000 0010 –> initialize Register 2 (B Register)
* 0000 0000 0000 0100 –> initialize Register 3 (A’ Register)
* 0000 0000 0000 1000 –> initialize Register 4 (Amplifier Gain–Select)
* 0000 0000 0001 0000 –> initialize Register 5 (Analog Configuration)
* 0000 0000 0010 0000 –> initialize Register 6 (Digital Configuration)
* 0000 0000 0100 0000 –> initialize Register 7 (Frame–Sync Delay)
* 0000 0000 1000 0000 –> initialize Register 8 (Fram–Sync number)
*
* For AD50–EVM
* 0000 0000 0000 0001 –> initialize Register 1
* 0000 0000 0000 0010 –> initialize Register 2
* 0000 0000 0000 0100 –> initialize Register 3
* 0000 0000 0000 1000 –> initialize Register 4
*
*
Any combination of registers can be initialized by adding the binary
* number to the REGISTER constant. For example to initialize Registers 4
* and 5, REGISTER = 18h. Upon assembly, only code for register 4 & 5
* initialization is included in the AC01INIT module. When called the
* module will load the REG4 and REG5 values into internal AC01 registers.
*
;;
REGISTER .set
09h
; Powerup default values:
;;
REG1 .set 120h
;*A=32 112h
;;
REG2 .set 212h
;
212h
;;
REG3 .set 300h
;
300h
;;
REG4 .set 409h
;*
405h
;;
REG5 .set 501h
;
501h
;;
REG6 .set 600h
;
600h
;;
REG7 .set 700h
;
700h
;;
REG8 .set 801h
;
801h
;For AD50–EVM:
REGISTER .set
1000b
; just program reg 4
REG1
.set
0000000100000000b
; default
REG2
.set
0000001000010000b
; select 16–bit ADC mode
REG3
.set
0000001100000000b
; default (no slaves)
REG4
.set
0000010010010000b
; 20ksa/s with 10.24MHz MCLK
; Note that once 16–bit DAC mode has been selected in reg 1, bit 0, other
; registers can only be configured by using FC to request secondary comms. On the
Содержание SLAU039
Страница 6: ...vi ...
Страница 16: ...1 6 ...
Страница 26: ...2 10 ...
Страница 34: ...3 8 ...
Страница 40: ...4 6 ...
Страница 47: ...Circuit Diagrams A 7 Installing the AD50 EVM A 4 Circuit Diagrams ...
Страница 48: ...A 8 ...
Страница 49: ...A 9 Installing the AD50 EVM ...
Страница 50: ...A 10 ...
Страница 51: ...PCB Diagrams A 11 Installing the AD50 EVM A 5 PCB Diagrams Top Side Silkscreen ...
Страница 52: ...A 12 1 Top Side Tracks Top Side Tracks ...
Страница 53: ...A 13 Installing the AD50 EVM Bottom Side Tracks ...
Страница 54: ...A 14 Ground plane ...
Страница 55: ...A 15 Installing the AD50 EVM Power plane ...
Страница 56: ...A 16 ...