30006 Parallax Inc, 30006 Datasheet - Page 23

MODULE EMIC TTS SIP FEMALE

30006

Manufacturer Part Number
30006
Description
MODULE EMIC TTS SIP FEMALE
Manufacturer
Parallax Inc
Datasheet

Specifications of 30006

Module/board Type
Text-to-Speech SIP Module
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Parallax microcontroller
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
' -----[ Subroutines ]-----------------------------------------------------
' Reset Emic through serial connection
Soft_Reset:
' Check status of Emic TTS module
' -- wait until Busy line released by Emic
' -- code as written does not timeout
Check_Busy:
' Wait for okay message
' -- will timeout after 1 second
Wait_OK:
' Hard reset
' -- good when comm link is lost
Hard_Reset:
' Send text string to Emic
' -- put first char of EE string in eePntr
Parallax, Inc. • Emic Text-To-Speech Module (#30006) • 02/2005
GOSUB Check_Busy
SEROUT Tx, Baud, [Reset, EOM]
GOSUB Wait_OK
vol = 4
spd = 2
ptch = 1
RETURN
PAUSE 1
DO WHILE (Busy = Yes) : LOOP
RETURN
SERIN Rx, Baud, 1000, TO_Error, [WAIT(OK)]
RETURN
LOW Rst
PAUSE 0
INPUT Rst
GOSUB Wait_OK
vol = 4
spd = 2
ptch = 1
RETURN
' wait for busy to release
' send soft reset
' set pgm vars to defaults
' allow busy to activate
' wait until not busy
' reset to default values
' pull reset line low
' ~100 uS pause
' let reset float
' set pgm vars to defaults
23

Related parts for 30006