0% found this document useful (0 votes)
17 views10 pages

HM 2007

HM2007 is a single-chip CMOS voice recognition LSI circuit capable of recognizing up to 40 isolated words with a maximum recognition time of 1.92 seconds. It supports both manual and CPU control modes, allowing for various operations such as training and recognition of voice patterns. The device can be integrated with external components like microphones and SRAM for enhanced functionality.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views10 pages

HM 2007

HM2007 is a single-chip CMOS voice recognition LSI circuit capable of recognizing up to 40 isolated words with a maximum recognition time of 1.92 seconds. It supports both manual and CPU control modes, allowing for various operations such as training and recognition of voice patterns. The device can be integrated with external components like microphones and SRAM for enhanced functionality.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 10

HM2007:

General Description:

HM2007 is a single chip CMOS voice recognition LSI circuit with the on-chip analog front end,
voice analysis, recognition process and system control functions. A 40 isolated word voice
recognition system can be composed of external microphone, keyboard, 64K SRAM and some
other components. An intelligent recognition system can be built when it is combined with the
microprocessor.

Features:

 Single chip voice recognition CMOS LSI.


 Speaker dependent isolates word recognition system.
 External 64K SRAM can be connected directly
 Maximum 40 words can be recognized for one chip
 Maximum 1.92 sec of word can be recognized.
 Multiple-chip configuration is possible.
 A microphone can be connected directly.
 Two control mode is supported: Manual mode and CPU mode.
 Response time: less than 300ms.
 5V single power supply
 48-pin PDIP, 52 pin PLCC, 48 pad bare chip
Pin descriptions:
Pin name Pin number I/O Function
Vref 44 I The voltage reference input of internal ADC. Supply
the reference voltage of the internal A/D converter.
LINE 45 O For testing only
MICIN 46 I Microphone connect pin. A microphone should be
connected via a coupling capacitor and resistor.
Vdd 47 Positive power supply
AGND 48 52 Analog ground
GND 1 I Negative power supply
X2,X1 2,3 I Crystal connect pin. A 3.58 MHz crystal is connected
to this pin
S1,S2,S3 4,5,6 I/O Keypad scanning pin for manual mode and the
read/write control pins in the CPU mode
RDY 7 O Voice input ready indicator. Active low output. When
HM2007 is ready for the voice input in training or
recognition mode, a low signal is sent. If the chip is
busy, a high signal is sent.
K1,K2,K3,K4 8-11 I/O The keypad input pin in the manual mode and the
bidirectional data bus (K-bus) in the CPU mode. In the
manual mode, the four pins combined with S1 to S3
form the keypad scanning circuit. Maximum 12 keys
can be scanned. In the CPU mode, the data bus
direction is determined by the S2 and S3. A high level
signal that appears in the pin S2 will place the content
of internal register onto to the data bus. (K-bus).
The data may be come from the status register or the
output buffer which is selected by the pin S1. If S1 is
high, output buffer is selected, otherwise, the status
register is selected. A high level signal that appears in
the pin S3 will place the content of K-bus into the
input register. Note that the user cannot place high
level signal on S2 and S3 simultaneously.
TEST 12 I “H”:test mode. “L”:Normal mode.
WLEN 13 I Word length select pin.
Selecting the voice length to be recognized. When set
to high, 1.92 sec is selected. Internally pull low for
0.9sec is selected. Note that when 1.92 sec is selected,
only 20 words maximum can be recognized if 8K-byte
memory is used.
CPUM 14 I CPU mode select pin.
Internally pull low for manual mode.
When set to high, CPU mode is selected.
WAIT 15 I Waiting control input. Active low input. When this pin
is set to “L” and manual mode is selected, HM2007
will enter the waiting state and do no accept voice
input until this pin back to “H”. For CPU mode, when
HM2007 is ready to get voice input, if this pin is set to
“L”, HM2007 will skip the voice input process and
enter the get-command process.
DEN 16 O Data enable signal. When the recognition or training
process is complete, the chip will place its response on
the data bus D0 to D7 and which can be latched onto
external devices by this pin.
SA0,SA1 17-24 S O External memory address bus. The bus is used as an
SA2-SA7 external memory address when ME pin is active.
SA8-SA12 27-31
Vdd 25 Positive power supply
GND 26 Negative power supply
NC 32,33
ME 34 O Memory enable pin. Active low output. This pin will
send the memory enable signal to the external SRAM.
This pin can be connected directly to the CE pin of
6264 SRAM.
MR/MW 35 O Memory read/write select pin.
Read/write control signal of the external SRAM. This
pin can be connected directly to the R/W pin of 6264
SRAM.
D0-D6 36-42 I/O External memory data bus (D- bus).
D7 43 The bus is used as an external memory I/O bus when
ME pin is active and used as output response bus when
DEN pin is active.
Function Descriptions
There are two operation mode which are provided by HM2007.
A) Manual Mode
In this operation mode, a keypad, a SRAM and other components may be connected to
HM2007 to build a simple recognition system. The type of SRAM can be used is a 8K-byte
memory.

a) Power on
When the power is on, HM2007 will start its initialization process. If WAIT pin is “L”,
HM2007 will do the memory check to see whether the external 8K byte SRAM is perfect or
not.
If WAIT pin is “H”, HM2007 will skip the memory check process. After the initial process is
done, HM2007 will then move into recognition mode.

b) Recognition mode
i) WAIT pin “H”
In this mode, the RDY is set to low and HM2007 is ready to accept the voice input to be
recognized. When the voice input is detected, the RDY will return to high and HM2007
begins its recognition process. It is recommended that user train the word pattern before the
beginning of the recognition operation, otherwise the result will be unpredictable. After the
recognition process is completed, the result will appear on the D-bus with the pin DEN
active.

The below table shows the list of the output content. The data on the data bus is a decimal
code in binary format.
Note 1: A is the binary code in the range 0-4 and B is the binary code in the range 0 to 9.
Note 2: If WLEN is high, the maximum word length is 1.92 sec.

ii) WAIT pin “L”


In this mode, no voice input is accepted until WAIT pin back to “H” state.

c) Training or clearing one pattern


Two operations are included during this time
1) Clearing trained pattern
2) Training new pattern

To clear or train the voice pattern, one must select the word number to process first. The
number of word is composed of two digits. The two digits are entered into HM2007 through
keypad one digit at a time. If more than two digits are entered, only the last two digits are
valid. When number key is pressed, the number of key will be echoed to the D-bus.

When the word key is entered, press the function key to choose the operation function. If
function key CLR is pressed, the corresponding word pattern will be cleared and then
HM2007 will return its recognition mode. If the function key TRN is pressed, HM2007 will
begin its training process. At the beginning of training process, if WAIT pin is “H”, HM2007
will send a low level signal to RDY to indicate that HM2007 is ready to accept the voice
input.

If WAIT pin is “L”, no voice input will be detected until WAIT pin back to “H”. After
available voice input to HM2007, HM2007 will return to its recognition mode and send a low
level signal to RDY to indicate that HM2007 is ready for voice input to do the recognition
process.
For example
2 4 TRN -> training the 24th pattern
0 1 CLR -> clearing the first pattern
1 3 2 6 TRN -> training the 26th pattern
d) Clear all pattern
If the number key 99 is entered and the CLR is pressed, all the patterns in the memory will be
cleared by HM2007.

B) CPU control mode


The CPU mode provides several functions: RECOG, TRAIN, RESULT, UPLOAD,
DOWNLOAD, RESET. In this mode, the K-bus is used as a bidirectional data bus between
the external controller and HM2007 and S1 to S3 as the R/W control pins.

The table given below is the summary of the CPU command. The command contains two
parts
1) The command code and
2) The number of the word to be processed if needed.

There are three registers in HM2007, one input buffer register, one status register and one
output buffer register. The first is a write-only register and the last two are read-only
registers. If S1 pin is high, the data read from the K-bus will come from the output buffer
register. If S1 pin is low, the data read from the K-bus will come from the status register. S2
and S2 are R/W control signals. If S2 is high, it is in a read cycle and the external controller
can read data from the K-bus. If S3 is high, it is in a write cycle and external controller can
write data into the input buffer. It should be noted that S2 and S3 cannot be high
simultaneously and the state of S1 will be ignored during a write cycle.

The status register reflect the current status of HM2007 for the CPU control mode.
a)Power on
When power is on, the chip will perform its initialization process, the same as manual mode and
then make the status register to be (10) to wait the external command.

b) Recognition
When HM2007 receives the command RECOG, the chip will begin its recognition process. The
external device can be polling the status flag to monitor the operation state of HM2007. When
the operation state is changed to (01) and WAIT pin is “L”, HM2007 will back to the operation
state (10) and then ready to receive another command. When the operation state is changed to
(01) and WAIT pin is “H”, it is ready to get voice input and then do the recognition process.
When the operation state is changed back to (10) again, then the recognition process is
completed and HM2007 is ready to get another command

c) Resulting
After recognition, the recognition result is ready in the buffer. The external device can send the
RESULT command to obtain the recognition result. When the data in the buffer has been read,
the operation state will be turned back (10) and waiting for another command.

When the RESULT command is sent, four continuous read actions must be done by the external
device to get the result sent by HM2007. The result contains two parts, each part needs two read
actions. The first part is the word number (B5-B0) and the second part is the matching score (V7-
V0).
The table below shows the output format of the result and the programming control flow chart.

d)Training pattern
When HM2007 receives the command code TRAIN, the chip needs two more words to specify
the number of pattern to be trained. The first word is the low 4 bit of the word number and the
second word is the high 2bits of the word number.

If the number of the pattern is valid and WAIT pin is “H”, HM2007 will begin its training
process for the corresponding word. If WAIT is “L”, HM2007 will skip the training process.
After the training process, the operation state will change back to (10) and wait for next
command.

e)Upload pattern
When HM2007 receives the command code UPLOAD, the chip needs two more words to
specify the number of pattern to be uploaded. The first word is the low 4 bits of the word number
and the second word is the high 2 bits of the word number.

In the uploading process, HM2007 will send the pattern length first in two words (low 4 bits
first, then high 4 bits) and then the data of the pattern frame by frame and each frame is consisted
of eight words (4 bits). It should be noted that when the external device get the data which is sent
by HM2007, it is the user responsibility to designate a memory space to save them, otherwise the
data will be lost and no use of this command.

f)Download pattern
The download pattern process is same as the upload pattern process except that the direction of
the data flow is reversed. After receiving the DOWNLOAD command and the word number,
HM2007 begin to read date from external device. The first two words of the data will be treated
as the pattern length and the following data will be stored as pattern frame by frame.

g)Reset
When Reset command is received by HM2007, the chip will clear all the patterns in the memory.

You might also like