2 command descriptions, 1 ver - output code version, 2 reset - reset 8515 – Cirrus Logic CDB6422 User Manual
Page 9: 3 r - reset cs6422, 4 wr [xxxb] - write cs6422 register, 5 wrb [ab cd] - write bits in cs6422 register, 6 rd [x] - read cs6422 register, 7 swd [1 ] - switch down, Cdb6422

CDB6422
DS295DB2
9
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. 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
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'
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: