Cirrus Logic CDB6422 User Manual

Evaluation Board for the CS6422
CDB6422
Features
z Includes analog, digital (µ-law/a-law), and
POTS (Plain Old Telephone Service) network interfaces
z Variable gain (±20 dB) and user-defined
fixed-gain options for analog acoustic and network inputs and outputs
z Integrated DTMF generator and keypad
provide dialing function
z Operates from +5 V or +12 V power supply,
allowing for use in car
z Operates in stand-alone or PC-based
configuration
z On-board EEPROM stores CS6422
configuration settings
z On-board speaker driver capable of driving
1 Watt into a 4 load with less than 1% THD
AIN-MIC
AIN-RCA
AOUT-RCA
ACOUSTIC
INPUT/
OUTPUT
GAIN AND
FILTERING
CS6422
Description
The CDB6422 provides an easy platform to evaluate the performance of the CS6422 echo cancelling IC in a tar­get system. To facilitate evaluation, the board provides a wide selection of network interfacing options (analog telephone line, µ-law/a-law PCM data, or analog RCA jack). The analog interfaces support both fixed and va ri­able gain options to allow for level-matching with target hardware. The board includes a keypad and a DTMF generator to enable dialing on standard analog tele­phone systems.
The board can operate from a single +12V power supply and can be used in a stand-alone configuration allowing for easy testing in car cellular hands-free applications.
ORDERING INFO
CDB6422 Evaluation Board
+5V/+12VGND
VOLTAGE
KEYPAD
REGULATOR
DIP
SWITCH
MICRO-
CONTROLLER
µC
6422
RESET
RST
LOAD
RS­232
VOLDNVOL
RS-232 SERIAL
PORT
UP
http://www.cirrus.com
NIN-RCA
NOUT-RCA
SPKR+
SPKR-
NETWORK
INPUT/
OUTPUT
GAIN AND
FILTERING
1 WATT
SPEAKER
DRIVER
DTMF
TRANSCEIVER
PATCH AREA
Copyright © Cirrus Logic, Inc. 2006
(All Rights Reserved)
µ-LAW
CODEC
DAA
LEDs
DIGITAL
PCM
HEADER
ANALOG
PHONE
LINE
MAR ‘06
DS295DB2
CDB6422

TABLE OF CONTENTS

1. GENERAL DESCRIPTION ...............................................................................................................4
2. HARDWARE .....................................................................................................................................4
2.1 Powering the Board ...................................................................................................................4
2.2 Analog Configuration .................................................................................................................4
2.2.1 Acoustic Input ...............................................................................................................4
2.2.1.1 AIN1: ............................................................................................................4
2.2.1.2 MIC_BIAS: ...................................................................................................4
2.2.1.3 AIN2: ............................................................................................................4
2.2.1.4 AIN3, AIN4: ..................................................................................................4
2.2.1.5 AIN5: ............................................................................................................5
2.2.1.6 AIN6, AIN7: ..................................................................................................5
2.2.2 Acoustic Output ............................................................................................................5
2.2.2.1 AOUT1: ........................................................................................................5
2.2.2.2 AOUT2: ........................................................................................................5
2.2.2.3 AOUT3, AOUT4: .......................................................................................... 5
2.2.2.4 AOUT5: ........................................................................................................5
2.2.2.5 AOUT6: ........................................................................................................5
2.2.2.6 SPEAKER_GAIN: ........................................................................................5
2.2.3 Network Input ...............................................................................................................5
2.2.3.1 NIN1: ............................................................................................................5
2.2.3.2 NIN2, NIN3: ..................................................................................................5
2.2.3.3 NIN4: ............................................................................................................5
2.2.4 Network Output .............................................................................................................6
2.2.4.1 NOUT1: ........................................................................................................6
2.2.4.2 NOUT2: ........................................................................................................6
2.2.4.3 NOUT3, NOUT4: ..........................................................................................6
2.2.4.4 NOUT5: ........................................................................................................6
2.2.4.5 NOUT6: ........................................................................................................6
2.3 CODEC Configuration ...............................................................................................................6
2.4 DAA Configuration .....................................................................................................................6
2.5 Microcontroller Configuration .....................................................................................................6
2.5.1 PROGRAM/RUN: .........................................................................................................6
2.5.2 EXT/UC: .......................................................................................................................6
2.5.3 UC_RESET: .................................................................................................................6
2.6 Miscellaneous ............................................................................................................................6
2.6.1 HOOK SWITCH: ...........................................................................................................6
2.6.2 KEYPAD: ......................................................................................................................7
2.6.3 DIP SWITCH: ...............................................................................................................7
2.6.4 “6422_RST” PUSHBUTTON: .......................................................................................7
2.6.5 “LOAD” PUSHBUTTON: ...............................................................................................7
2.6.6 “VOL_DOWN” PUSHBUTTON: ....................................................................................8
2.6.7 “VOL_UP” PUSHBUTTON: ..........................................................................................8
3. COMMAND SERIAL PORT DESCRIPTION ..................................................................................... 8
3.1 Command List: ...........................................................................................................................8
3.2 Command Descriptions: ............................................................................................................9
3.2.1 ver - Output Code Version ...........................................................................................9
3.2.2 reset - Reset 8515 ........................................................................................................9
3.2.3 r - Reset CS6422 ..........................................................................................................9
3.2.4 wr [xxxb] - Write CS6422 Register ...............................................................................9
3.2.5 wrb [ab cd] - Write Bits in CS6422 Register .................................................................9
3.2.6 rd [x] - Read CS6422 Register .....................................................................................9
3.2.7 swd [1..9] - Switch Down ..............................................................................................9
3.2.8 swu [1..9] - Switch Up .................................................................................................10
3.2.9 swp - Poll Dip Switches ..............................................................................................10
3.2.10 off_hook - DAA Off Hook ......................................................................................... 10
3.2.11 on_hook - DAA On Hook .......................................................................................... 10
3.2.12 d_reset - DTMF Transceiver Reset ..........................................................................10
2 DS295DB2
CDB6422
3.2.13 doff - DTMF Transmit Off ......................................................................................... 10
3.2.14 dtmf [x] - DTMF Transmit On .................................................................................... 10
3.2.15 kd [0..e] - Keypad Down Event ................................................................................. 10
3.2.16 ku [0..e] - Keypad Up Event ..................................................................................... 10
3.2.17 st [x] - Single Tone Transmit On ............................................................................... 10
3.2.18 pd [1..4] - Push Button Down Event ......................................................................... 10
3.2.19 pu [1..4] - Push Button Up Event .............................................................................. 11
3.2.20 vol_up - CS6422 RVol Up ........................................................................................ 11
3.2.21 vol_down - CS6422 RVol Down ............................................................................... 11
3.2.22 mute - Mute ..............................................................................................................11
3.2.23 unmute - Unmute ...................................................................................................... 11
3.2.24 save [x] - Save Current CS6422 Configuration ........................................................ 11
3.2.25 recall [x] - Recall CS6422 Configuration ..................................................................11
3.2.26 ring - DAA Ring Event .............................................................................................. 11
3.2.27 mwr [abcd ef g] - Memory Write (8515) .................................................................... 11
3.2.28 uc - UC Jumper Set .................................................................................................. 11
3.2.29 ext - EXT Jumper Set ............................................................................................... 12
3.2.30 d {number} - Dial Phone Number ............................................................................. 12
3.2.31 ? - List Commands ................................................................................................... 12
4. USAGE EXAMPLES ....................................................................................................................... 12
4.1 CS6422 Usage Notes: .............................................................................................................12
4.2 Setting the Acoustic Coupling: ................................................................................................. 12
4.3 Jumper configuration: .............................................................................................................. 13
4.4 Usage Scenario #1: Analog Phone Call with Separated Speaker and Microphone ................ 14
4.5 Usage Scenario #2: Cellular Call through Analog Network Interface ..................................... 14
4.6 Usage Scenario #3: Cellular Call Through Digital Network Interface ..................................... 15
5. SCHEMATICS.................................................................................................................................. 17
6. REVISION HISTORY ....................................................................................................................... 29
LIST OF FIGURES
Figure 1. Power..................................................................................................................................... 17
Figure 2. Acoustic Input......................................................................................................................... 18
Figure 3. Acoustic Output...................................................................................................................... 19
Figure 4. Network Output...................................................................................................................... 20
Figure 5. Network Input......................................................................................................................... 21
Figure 6. u-Law Codec.......................................................................................................................... 22
Figure 7. DAA (POTS Interface)............................................................................................................ 23
Figure 8. DTMF Transceiver .................................................................................................................24
Figure 9. CS6422.................................................................................................................................. 25
Figure 10. RS-232 Interface.................................................................................................................. 26
Figure 11. Microcontroller...................................................................................................................... 27
Figure 12. Keypad and DIP Switch .......................................................................................................28
DS295DB2 3
CDB6422

1. GENERAL DESCRIPTION

The CDB6422 provides an easy interface to evalu­ate the performance of the CS6422 echo cancelling IC in a target system. To facilitate evaluation, the board provides a wide selection of network inter­facing options (analog telephone line, µ-law/a-law PCM data, or analog RCA jack). The analog inter­faces support a varitey of fixed and variable gain options to allow for easy level-matching with target hardware. The board includes a keypad and a DTMF generator that enable dialing on standard analog telephone systems.
Furthermore, the board can operate from a single +12V power supply and can be operated in a stand­alone configuration allowing for easy testing in cel­lular car hands-free applications.
For more information regarding the configuration of the CS6422 device, please refer to the CS6422 data sheet.
board is powered from a +5V supply, the +10VD LED will not be lit (or will be quite dim).

2.2 Analog Configuration

At first glance the analog section of the board (the left-most quarter) might appear dauntingly com­plex. The jumpers select, for the most part, a series of fixed or adjustable gains in the APO, AO, NI, and NO signal paths. Actual system implementa­tion is not this complex. The following text de­scribes the jumper settings in signal path order.

2.2.1 Acoustic Input

2.2.1.1 AIN1:
The acoustic input of the CDB6422 can be derived from an 1/8" mic jack (AIN_MIC) or a standard RCA jack (AIN_RCA). The header AIN1 selects the input source.
2.2.1.2 MIC_BIAS:

2. HARDWARE

2.1 Powering the Board

The CDB6422 board can operate from either a +12V supply or a +5V supply. When operating from a +5V supply, the µ-law/a-law codec (MC145503) is unavailable. The board comes shipped from the factory configured for a +12V power supply. The power supply must be able to supply at least 500mA of current.
For operation from a +12V supply, the on-board voltage regulators must be selected by installing jumpers in the appropriate places marked '+12V'. These jumpers are labeled PWR_SEL1 through PWR_SEL4 and are located near the bulky 3-ter­minal voltage regulators.
If operating from a +5V supply, the jumpers should be installed in the '+5V' setting.
When the board is properly powered, at least 4 green LEDs should be lit. These LEDs are labeled +5VA, +5VD, +5VSPKR, and +10VD. If the
If the acoustic input source is a standard electret microphone, the board can supply a bias current to power it. The mic bias is enabled by installing the jumper on the "ENABLED" setting of the header called MIC_BIAS. There is a fixed 2.2k series re­sistance (R1) between the op-amp supplying the bias voltage and the mic input. The value of the mic bias voltage can be adjusted by tuning the pot labeled "BIAS" (R6).
2.2.1.3 AIN2:
AIN2 selects between the ACTIVE acoustic input circuitry (op-amps) and a PASSIVE RC-network.
2.2.1.4 AIN3, AIN4:
AIN3 and AIN4 select the type and amount of gain for the acoustic input circuitry. For fixed gains (AIN4 = “0dB”, “+20dB”, or “USER”), AIN3 should be set to "FIXED". For variable gain (­20dB to +20dB) AIN3 should be set to "VARI­ABLE" and AIN4 should be set to "-20dB to
4 DS295DB2
CDB6422
+20dB". The pot labeled "AIN_GAIN" (R2) con­trols the variable gain.
2.2.1.5 AIN5:
AIN5 selects the acoustic input source from the fol­lowing options: “ACTIVE” (the previous gain sources), “PASSIVE” (the RC-network), and “DT­MF” (the DTMF transceiver, used for testing pur­poses).
2.2.1.6 AIN6, AIN7:
AIN6 and AIN7 are configured based on the state of the internal MIC preamp on the CS6422. If the internal mic preamp is enabled (Mic = '1'), then AIN6 and AIN7 should be configured to the "ON" position. If the internal mic preamp is disabled (Mic = '0'), then AIN6 and AIN7 should be config­ured to the "OFF" position.

2.2.2 Acoustic Output

2.2.2.1 AOUT1:
AOUT1 selects between the “ACTIVE” drive out­put circuitry (op-amps) and the “PASSIVE” cir­cuitry (simple RC-network). To take advantage of the supplied filters and gain stages, set AOUT1 to the “ACTIVE” state.
2.2.2.2 AOUT2:
AOUT2 selects the order of the Butterworth filter following AO at either "1-POLE" or "3-POLES".
2.2.2.4 AOUT5:
AOUT5 selects the source of the acoustic output RCA jack (“0dB” before gain stage, “GAINED” after gain stage, or “PASSIVE” RC-network).
2.2.2.5 AOUT6:
AOUT6 selects the type of output (“AC”-coupled or ”DC”-coupled) at the AOUT_RCA jack.
2.2.2.6 SPEAKER_GAIN:
SPEAKER_GAIN selects the gain of the on-board differential BTL speaker driver to “0dB”, “+6dB”, “+9dB”, or “USER”. The “+9dB” setting should not be used, as it will result in clipping at the speak­er driver outputs.

2.2.3 Network Input

2.2.3.1 NIN1:
NIN1 selects between the “ACTIVE” network in­put circuitry (op-amps) and a “PASSIVE” RC-net­work.
2.2.3.2 NIN2, NIN3:
NIN2 and NIN3 select the type and amount of gain for the network input circuitry. For fixed gains (NIN3 = “0dB” or ”USER”), NIN2 should be set to "FIXED". For variable gain (-20dB to +20dB) NIN2 should be set to "VARIABLE" and NIN3 should be set to "-20dB to +20dB". The pot labeled "NIN_GAIN" (R5) controls the variable gain.
2.2.2.3 AOUT3, AOUT4:
AOUT3 and AOUT4 select the type and amount of gain for the acoustic output circuitry. For fixed gains (AOUT4 = “0dB” or “USER”), AOUT3 should be set to "FIXED". For variable gain (­20dB to +20dB) AOUT3 should be set to "VARI­ABLE" and AOUT4 should be set to "-20dB to +20dB". The pot labeled "AOUT_GAIN" (R3) controls the variable gain.
DS295DB2 5
2.2.3.3 NIN4:
NIN4 selects the network input source from the fol­lowing options: “ACTIVE” (the previous gain sources), “PASSIVE” (the RC-network), “POTS(DAA)” (the analog telephone line), “CO­DEC” (the µ-law codec), or “DTMF” (the DTMF transceiver, used for testing purposes).
CDB6422

2.2.4 Network Output

2.2.4.1 NOUT1:
NOUT1 selects between the “ACTIVE” drive out­put circuitry (op-amps) and the “PASSIVE” cir­cuitry (simple RC-network). To take advantage of the supplied filters and gain stages, set NOUT1 to the “ACTIVE” state.
2.2.4.2 NOUT2:
NOUT2 selects the order of the Butterworth filter following NO at either "1-POLE" or "3-POLES".
2.2.4.3 NOUT3, NOUT4:
NOUT3 and NOUT4 select the type and amount of gain for the network output circuitry. For fixed gains (NOUT4 = “0dB” or “USER”), NOUT3 should be set to "FIXED". For variable gain (­20dB to +20dB) NOUT3 should be set to "VARI­ABLE" and NOUT4 should be set to "-20dB to +20dB". The pot labeled "NOUT_GAIN" (R4) controls the variable gain.
2.2.4.4 NOUT5:
NOUT5 selects the source of the network output RCA jack (“0dB” before gain stage, “GAINED” after gain stage, or ”PASSIVE” RC-network).
2.2.4.5 NOUT6:
NOUT6 selects the type of output (“AC”-coupled or “DC”-coupled) at the NOUT_RCA jack.

2.3 CODEC Configuration

The codec is accessible only if the board is operat­ing from a +12V power supply.
The CDB6422 has a µ-law/a-law PCM interface that is accessible through the PCM header (HDR49). HDR27 enables optional signal inver­sions for PCM_IN (RDI), PCM_OUT (TDI), CLK (CI), and SYNC (SI). To enable the inverter, install the header next to the appropriate label.
To select "a-law" data, install HDR53 (A-LAW).
To power down the codec, install HDR54 (PDI).

2.4 DAA Configuration

To enable DTMF tones to be transmitted to the an­alog telephone network, HDR86 (DTMF_TX) must be installed.

2.5 Microcontroller Configuration

2.5.1 PROGRAM/RUN:

The microcontroller is shipped preprogrammed from the factory. The configuration jumper should be loaded on HDR94 "RUN". To program the mi­crocontroller with new software, the configuration jumper should be moved to HDR91 "PROGRAM" when the programming software prompts to do so.

2.5.2 EXT/UC:

By default, the microcontroller writes configura­tion information to the CS6422 through the CS6422 uC interface. The microcontroller outputs can be disabled by moving the jumper from HDR90 (uC) to HDR89 (EXT) to allow an external source to configure the CS6422 through the "6422 EXT INTERFACE" header (HDR21).

2.5.3 UC_RESET:

The UC_RESET pushbutton initiates a hardware microcontroller reset. The microcontroller pro­grams Configuration 0 to the default CS6422 regis­ter state. It leaves the other Configuration sets alone. Furthermore, the UC_RESET initiates a CS6422 reset which performs a hardware reset and downloads Configuration 0 to the CS6422.

2.6 Miscellaneous

2.6.1 HOOK SWITCH:

Sliding the HOOK SWITCH to “OFF_HOOK” will cause the DAA to move to the OFF HOOK state (pick up the phone). Sliding the switch to “ON-HOOK” will cause the DAA to hang up (after about a 1 second delay). The uC software automat­ically answers the phone after 3 rings. To hang up
6 DS295DB2
CDB6422
the phone after this occurs, slide the HOOK SWITCH first to the "OFF_HOOK" position and then back to the "ON_HOOK" position.

2.6.2 KEYPAD:

The default state of the keypad is to generate DTMF tones when the keys are pressed to enable dialing through the analog phone network. The keypad also allows for manual CS6422 register en­try and CS6422 register configuration storage and recall in association with the LOAD pushbutton (SW5). See the description of the LOAD pushbut­ton for more information.

2.6.3 DIP SWITCH:

SW1 contains and 8-position DIP switch which en­ables access to some commonly-used CS6422 reg­ister parameters. The operation of the DIP switch is such that if the DIP switch is moved from the OPEN state to the CLOSED state, the specified register is written with the stated contents. For ex­ample, if switch 1 “MIC=0” is moved from the OPEN state to the CLOSED state, then the value of the MIC parameter is set to '0'. When the switch is moved from the CLOSED state to the OPEN state, the previous value of the parameter is restored. In the above example, if Mic were initially '1' when switch 1 was CLOSED, it would be restored to '1' when the switch was OPENed.
If the Mic parameter were initially '0' at the time switch 1 was CLOSED, it would remain '0' when switch 1 was switched from CLOSED back to OPEN.

2.6.4 “6422_RST” PUSHBUTTON:

The "6422_RST" pushbutton initiates a COLD hardware reset on the CS6422 device and down­loads the register set stored in Configuration 0 to the CS6422.

2.6.5 “LOAD” PUSHBUTTON:

The “LOAD” button changes the state of the KEY­PAD to enable direct programming of the CS6422 registers and to allow access to the Configuration sets. Both of these features are particularly useful when using the CDB6422 in a "stand-alone" envi­ronment, that is, when the board is not connected to a PC.
Pressing the “LOAD” button once places the KEY­PAD in the “LOAD” state (LEDs in status bar turn off). The 4 following KEYPAD presses encode a hexadecimal (0000 to ffff) number which the mi­crocontroller interprets as a CS6422 register write. Each KEYPAD press causes a pair of LEDs in the status bar to light. After the fourth keypress, the hex value is transmitted to the CS6422's uC inter­face. See the “Register Definition” section of the CS6422 data sheet.
If the register write is valid (last digit is ‘0’, ‘2’, ‘4’, ‘6’, ‘8’, or ‘a’), then the local copy of the CS6422 registers is updated in the microcontroller. If the register write is invalid, the register contents are transmitted to the CS6422, but the microcontrol­ler's local copy remains unchanged.
After the last digit has been entered, the write takes effect and the KEYPAD returns to its normal DTMF state. Furthermore, the LEDs in the status bar return to display Receive Volume information.
Pressing the “LOAD” button twice in a row places the KEYPAD in “Configuration Recall” state (2 LEDs in status bar light). The next KEYPAD press selects a CS6422 register Configuration (0-9) to re­call. Once selected, the configuration set (all 6 reg­isters) is transmitted to the CS6422. The KEYPAD and status LEDs return to their normal states after the Configuration number has been selected.
Pressing the “LOAD” button three times in a row places the KEYPAD in “Configuration Save” state (4 LEDs in status bar light). The next KEYPAD press stores the current CS6422 register configura­tion in the selected Configuration location (0-9).
DS295DB2 7
CDB6422
The KEYPAD and status LEDs return to their nor­mal states after the Configuration number has been selected.
Because the Configuration sets are stored in EE­PROM, they will survive a power-off event. How­ever, Configuration 0 is special for two reasons: 1) it is reset to the CS6422 default register state on power-up or on microcontroller reset, and 2) it is automatically downloaded to the CS6422 when the “6422_RST” pushbutton is pressed (or the 'r' com­mand is sent from a terminal).
Thus, if you wish to test a RESET configuration state and you will be testing the board from power­off (for example, if you set up your configuration registers in the lab and want to perform testing in a car), you must store the configuration to be tested in Configuration space (1..9). Once the board has been powered for testing in the target environment (the car), you can RECALL the saved configura­tion and STORE it in Configuration 0. Pressing the “6422_RST” button will reset the CS6422 and download the Configuration 0 information to the device for testing.

2.6.6 “VOL_DOWN” PUSHBUTTON:

Pressing the "VOL_DOWN" pushbutton decreases the receive (speaker) volume by 3dB per button press until RVol = 'mute'. The current receive vol­ume is reflected in the status LED bar with the fol­lowing mapping:
# LEDs on RVol Value
0mute 1 -12 to 0 dB 2 +3 to +6 dB 3 +9 to +12 dB 4 +15 to +18 dB (default) 5 +21 dB 6 +24 dB 7 +27 dB 8 +30 dB (maximum)

2.6.7 “VOL_UP” PUSHBUTTON:

Pressing the "VOL_UP" pushbutton increases the re­ceive (speaker) volume by 3dB per button press until RVol = '+30dB'. The receive volume is reflected in the status LED bar with the mapping described in the “VOL_DOWN” Pushbutton description.

3. COMMAND SERIAL PORT DESCRIPTION

The CDB6422 can operate connected to a PC or in a stand-alone configuration. If connected to a PC, the board can be controlled by supplied Windows-based software or through a simple terminal program. The board communicates at 19.2kbps, 8 data bits, 1 stop bit, and no parity or handshaking of any kind. All commands and responses are standard ASCII text with no special characters or binary data.
This section describes the commands and response primitives that the board accepts and provides through the serial connection. This can be thought of as a "command list" for "terminal" mode.

3.1 Command List:

The following is a listing of commands and messag­es that the CDB6422 (Rev. A) evaluation board ac­cepts and transmits through the serial connection.
ver reset
rwr
wrb rd swd swu swp off_hook
on_hook d_reset
doff dtmf
kd ku
st pd
pu vol_up
vol_down mute
unmute save
recall ring
mwr uc
ext d
?
8 DS295DB2
CDB6422

3.2 Command Descriptions:

3.2.1 ver - Output Code Version

A. Writes current code and EEPROM ver­sions to the UART
B. No arguments accepted C. No MSG Stack pushes

3.2.2 reset - Reset 8515

A. Resets microcontroller just as with hard-
ware reset
B. Description:
1. Initializes all hardware (ports, timers, UART, RAM spaces, external inter­rupts)
2. Writes MSG jump table into EEPROM and the CS6422 default reset configura­tion into Configuration 0
3. Polls dip switches for custom configura­tion

3.2.4 wr [xxxb] - Write CS6422 Register

A. Writes 16-bit value $xxxb to CS6422 (b/2 designates register address)
B. No MSG Stack pushes C. Description:
1. Writes register value to Current register copy in EEPROM (if write is valid)
2. Echoes register value to UART
3. Implements CS6422 uC write timing

3.2.5 wrb [ab cd] - Write Bits in CS6422 Register

A. Writes 'c' number of bits with the value of 'd' to bits beginning at bit number 'b' in 6422 register 'a'
3. Initializes MSG Stack
4. Pushes 'ver' command onto MSG Stack
5. Pushes 'd_reset' command onto MSG Stack
6. Pushes 'r' command onto MSG Stack
7. Pushes 'mwr 00c9 ff r' command onto MSG Stack - initializes polling input, DIP switches, pushbuttons, uC/EXT header)

3.2.3 r - Reset CS6422

A. Resets CS6422 with register set from Configuration 0
B. No arguments accepted C. Description:
1. Implements CS6422 reset sequence (see CS6422 datasheet)
2. Pushes 'recall 0' onto MSG Stack - con­figures CS6422 with register set in Configuration 0
B. Description:
1. Decodes the arguments and uses Current register copy to obtain 2 byte value $xxxb for writing to CS6422
2. Pushes “wr xxxb” onto MSG Stack

3.2.6 rd [x] - Read CS6422 Register

A. Prints the value for the 6422 register 'x' stored in the Current register copy in the EEPROM of the microcontroller. If no pa­rameter is specified, all 6 CS6422 registers are displayed.
B. No MSG Stack pushes

3.2.7 swd [1..9] - Switch Down

A. Notifies microcontroller that DIP switch(es) 1..9 have been switched down (handles multiple switches)
B. No MSG Stack pushes C. Description:
DS295DB2 9
Loading...
+ 21 hidden pages