·' ' . ..,.. ... !c ~ IM_! ~ISIONS DISCllll1"10N ---·- --··-·-· ·---- -- "' CHI- 1~ Rev. B Deellllber 30, 1980 - Rewrite ~ P. Mclaughlin r""" iu Rev. t -!"i'er 18, 1981 " Update by L. Dav1doff ' rl- ' ·- ' SP-OZS6 Design Objective Speci f i cation (lntel'ft&l Use Version not for Circulation} ~ - LSHUT l I I I I I I l l l l L.....,.-I I I I I I I 1 I I I L-IT I I I I I I I I I I I [L.AIT•IV I l 1 l 1 l l l 1 l l ........._ ~l MICROELECTIIONICS GllOUP OSST'llltllUTIOlll UIT .......T .........., .,, .. TITU jSP-OZS6 Design Objective Specification MOOUU Qlll'l.,.ATION I I-,.,.,.I-ao •• ••v 1l . . HT1 •• ~ ~Iii I I I I :JSNC.NO. __,;1 11-11-•tl I I I } SP-OZS6 c I 1 = , PRODUCT PURPOSE The SP 0256 speech. procossor 1s an N-Channel Mota! ·i;..i. LSI devico that 1s Intended for product applications whare synthetic speech. .or ' complex sounds are required. The SP dev1c• serves as a fixed repertoire speech and sound synthesizer wllich. 1s capab.le of reproducing up to ZS& discrete sound sequences . Each sequence nay be called by loading fts 8 bit address fnto the COCT111lnd reghtor of tha device. The sequenco d&t& is located in nask programnable ROM, which enables the user to specify tha speech or sound pattern desired. For applicat- ions requir1ng a larger yocabulary than can be acc0111110d1ted fn the 16K bits of on board ROM, uternal ROM ma.y be used to extend the devices capabilities. Through. tha addition of uternal ROMS the system my lie expanded to dinctly address 4ilK b.fts of ....,ry, and up to 3825 sequences (usually "'°rds or phrases} •• wh.fch. •Y be called "directly frau tha input part using a double byte load • uocument control #0380·20 ,,. GENERAL DEVICE FUNCTION The intern1l organiution of SP , enab.les a large quantity of. speech, or sound to be specified in a lllOdest amount of pattern ROM. In addition, the flaxible 1rchitactu,.. of the on-board controller allows the user to partition the availlble storage space fnto as many sequences as dasfred. From a functional standpoi nt, the device can be divided i nto two major sections, the controller, and the vocal tract ll'Qdel lVTM). The VTM is a parunetrfc sound and voice snythesfzer wl\fch produces complex waveforms under the control of 17 slowly ti .. varying paruneters. The controller executes i ts internal ROM instructions and ll'Qdfffes the appropri1te paramters of the VTM to create the desired sound sequence. Tba interface bet>oeen the controller and .the VTM 1s accomplished through the par&1111ter registers and related t i ming signals . Since the nuaiiar of eytes of data used per second of speeclt fs variable, the user 1s ab.le to trade off speech quality for vocabulary size when ft 1s dasfrab.le to do so. ~lgh quality continuous spffch requires ab.out 2000 bf ts per second, ..itfle lower quality understandable speech can be coded at cons i der- ably lower b.it rates. • GDllJIM. INSml.JMINT COIVORATION llllCM)ILICT'l!ONICI QROUP -- IHHT SPQ256 2 RIV ...- --·-:-- ~ Document Contn> I 10380-~U O[VICE OPERATION SP VTM. Fil te_r .s.tructu.-... The SR da"tca..lllldelS •Sl'ffclt-(and· oth..- ·SOUnds}· US1ng & Hr1as .of s1x var1abla 2J!1 order resonators exc1ted ti)' a1thar a pseudo no1se source, or a par1od1c 111111ulsa source. The VTM 1s 1mplamantld using totally digital techniques. Th1s approach &llows one 2J!1 order sect1on to serve as s'lx sect1ons througtl tba use of 111Jltiplexing and tnfcmat1on 1 tn1 p1pa11n1ng. The uct1on that fs tmpl_,,ted is tl11 2J!1 ordar l.nffnfta lmpulu rupcnu (J!lll dfg1tal f11tar shown in Ffgu.-. 1. Thts ftltar staga has tile tnnsfar funet1on: H(z.):: 1 - ~ F... r' -a--.z-a. c· Tharafora tt can be shown that ttle pcles of the tnnsfer funct1on occur at: and-. -1<~0 and., t!la: poles wfll be pl&Cld fn a complex pair, fom1ng a resonator w1th th• ~nd­ w1dth. given by : -Fs Lit (8~) . (1) B.W. • - .. "1T where Fs 1s the ump! tng frequency in HZ. and th• can tar frequency tFk) g1 ven by: (.2) Fs co~-{~] Fk z rr SP0256 lllV 3 ,., As an be seen from equations 1 and 2 abcvtl, the modification cf the B coefficient cllangu beth tha frequency and the bandwidth. cf thA r-escnator. The modification cf the F coefficient, N>wever changes cnly tha conttlr fr.quency, and has nc •ffect en th• corrupcndfng bandwidth.. Since spffcil signals (in particulu· vowel sounds) convey fnformatfcn through the shfftfng cf' r-esonant peaks tn tlla spectl"llll, ft fs desfrablo to be able to change centar frequenci.u cf' the 2!!l!. order stages independently cf th.air respect- ive bandwidth. Httfngs. tn addition it fs import.Int that tM parametOM of tne indiyfdual stagu (.correspcndfng to particular r-esonancosl an be modified In- dependently. The use cf cascade 2!!l!. order stages supports thes. futures, giving th.is conft.gurat1cn a d1stinct advantage ever ether fil tar sections currently in usa fer sp...:h. synthufs, such. as th.e Lattice section, and th.a direct fom irn- pl..,,tati.cn . Tha instruction sat cf the SI! "c:ontral lor •ecttcn.1.s : design~ , to uplcft tha ability cf th.a VTM parameters to tie updated selectivoly to achieve a gruter pack.fog dansi.ty ln th.e ROM. In addition, this pel'!llits th.a user to trade,-off bat:ween quality and quantity cf spHCh. ..mples possible within the ROM ~ac:& ava t1 alll a. lf i.t i.s desired to place resonances at a frequency cf zero, these rul axis pclu an ba accanodated directly. E4ch 2!!l!. order stage may be used to place e.o real axis pclas cf variaale bandwidilt. tf x1 is the real axis lccaticn cf the fi n t pc 11, and x tile second: 2 and: with tho tiandwidths of each given by: Sw1 • -ZFs LN x1 BWz • -ZFs LN Xz. GINllU.L INSTIIUMDIT C:CIU'CIRATICN SP0256 RIV Mta!OILICT'l!QNICS GllCU' 4 ,- OUTPUT OI AtiRAM OE' SINGLE CASCAOE STA6E rr 00= I N L-Z FT :-:1 - ~T :~; (VALi 0 BE.TWEEN fMPULSES) FIGURE 1 T!Tl.E SP0256 Sheet 5 ~ ~·~ ', '"'" -•~< ~· ~'""'~b ""'~ L ·JbO u ... 393 - . 767578 oz -39? - . ?r.;:591 . - . 7b320J •3 -•01 - . ~i.ll1• .4 -405 •S -409 - . 7981.il •• -•13 - . Bl•O•U • ., -417 - . 81~53 - . lt!ZZ•O •i' •8 ·10 -4Zi -425 -427 - 830078 ... . 833984 71 -42.. - . 61~7891 72 -•31 - . 841797 73 -433 - . 845703 74 -4.JS - . 849009 ?S -437 - . 85351• 76 -439 - . BS7422 71 -4•J. - . 801329 7'8 -•43 - . at.5234 19 -445 - ' 609141 80 .......... , - . 9731)47 ;Ji -449 - . B709";3 aa -451 - . aeo.,59 jJ ..... 53 - . 884700 84 -455 - . a1aa 1 2 a~ -457 - . 8.,2578:. ao -4S9 - . 896.484 - . ~00391 87 -4Ct1 ,, ,. 90 ......, -'4ti3 ..... , - . 91•297 - . 908203 - . 912109 91 -4•9 - . 916oDU 92 -471 . - . 91992Z 93 -•73 - . 923828 - . 927734 ~· 9~ -·~ -477 - . ~310"'1 96 ..... , , - . 9'35'347 97 ..... litJ. - . '7)9 .. 53 , ,. -4'3;? - . 94141)0 99 -48J - . 9&3359 100 -•84 - . 9•5313 !01 -•85 - . 94726• 102 -4GO - . 9•11?,H9 103 -467 - . 9511.72 104 -•18 - . "3125 10s -489 ... . 955078 to• -490 - . 9S7031 107 ..... 1 - . 958984 101 -492 - . 9•0~38 1119 -•9l - . 9•2S9t 1!0 -49• - . '1•4ti•• 111 -49S - . •••791 112 -4•• - . 9•GISO ul -:.91 - . ~7J703 11• -4t• - . q7~osc. us ..... .,. .. - . 9746'0• 111i -soo - . 976~~3 a:" -iiU ... . ~?G'i:.o :..i& -!O.? - . 910409 ..... -------- ·-- --------- ....,. SP0256 8 J . --·-----------· ---- - -· ·--·- - ·- ·- , I ~I 512 ,. tr;' 'tUu -5114 - . "•<~<< - . 99<4J7S 10?0 121 -sos - . IJS&J:?B 122 -~Ob - . 988281 123 -Sil? - . 9'PG234 -soa - . 9'a11a 12• t°'S 12• -s.•• -uo - . tt4-1 41 - - ""094 -SU - . 991047 127 129 121' •• O·- . 017S78 130 17 . OJ3il03 131 ZS ·. 048821 132 33 . OM-453 133 41 . 080071 13< 49 . 095/03 us 57 . 111328 . ile.953 •S ... 130 1J? 73 . 1•2571 138 81 . 158.;?03 140 •• 97. . 17380?8 . 119453 141 us . 205078 142 . U3 . :U.0 7 03 143 121 . 23b328 1.. 12• . 2!1953 1•5 1J? . 2617'5?8 1. . 145 . 213 . 9C320l . ~i:?10Y . 9Ull:.O . ~! Y'10i:? . 92;;a2a az 41S . 927'/3 ... ~:.?3 i,!24 .,. •77 . 'i'~U14't. . 935 ·~47 . 939453 t:.:?S 22• • •1 482 . 9•1 •0• ...••• 2;:1 4&3 ·. 9'4335-f 228 :2i ••• 4~'5 . 9•'5.Sil . f-'?:?e.• 230 . 9 49219 1 •o• 50 7 . 988281 . 9~v.?l4 2$2 SOB . '92139 Z'>l 509 . 'i''i'•:. ... 1 .?S4 S10 . .,e, i,;94 ::~i SU . ~98(1•7 Im -- . .UT SP0256 11 -- ·:;:- Docurnent Centro 1 f03S0-20 lEVICE AR0ITTECitJRE VIM Source Timins ni. VIM operates UDder central of the 17 parameter TeKistm listed in Table l. ni. clifration and pitth of the sounds produced by the SP device are controlled by the R and P re&isters respectively . P specifies the number of sample periods in one pitch period. Expressed in terms of the pitth (j'o) and the sampling frequency (FS) l~P~ZSS The pitch source injects Ullit ~es. spaced P sample periods apart. The R resister (repeat o:nmt) is the m.mber of pitch cycles executed before a resister update occurs. ~ . llhml P is a.ssi~ a zero value, the pitth source is replaced by a :ere mean, pseudo noise source. This mode of operation is refernd to a.s unvciced mode. In this mode the srs.t10D requesu a repster update after 64 times R samples. The amplitude of the source is c:cnttolled by the A TeKister. It is coded as 5 bi ts of mantissa and 3 biu of exponent (.i.e. binary shift). At the ccmpletion of the pitch period, the value stored in the AI r"iister ·is added .t o the A T"i:ister cantenu, imd sUnilarly the PI repster is added to the P T"i:ister. This allows the pitch and ampli ti.Ide of the frum of speech to be smoothly interpol - ated bet,,.een updates. -- IHllT SP0256 12 EXTERNAL ROM CONTROL SOURCE AMO INTERPOLATION - (5 REGISTERS) ALU 1Z HOLDI NG REGISTERS DATA lCOEFF!CIENTS) DATA 8 BITS VOCAL TRACT MODEL ZK x 8 BIT _(12 POLE DIGITAL RQ4 FILTER) 7 BITS DI A CONVERTER 0 DATA READY DATA REQUEST 8- BIT DATA BUS OR SWITCHES SP OZ56 BLOCK DIAGRAM FlguN 2 TITLE SP0256 Sheet 13 ----- - -- - - - - TABLE 1 - VTM PARAMETER REGISTERS ________ ~!2!4.!..f2~~!J!!~!!.2!.l!!£!L~!!12!!!L __________ _ ~------.!U•.!.t} A 8 bits Source Ampl ftude P 8 bits P1tcll Period (IUaller of Samp_ling Periods) 81 8 bf ts B Coefficient of Ffl tar Stage 1 Fl 8 bfts F Coefficient of Filter Stage 1 BZ 8 bits B Cocffici.,t of Fil tar Stage Z F2 8 bits F Coefficient of Filter Stage Z 83 8 bits B Coefficient of Fil tar Stage 3 F3 8 bits F Coefficient of Filter Stage J B4 a. bits B Coefficient of Fil tar Stage 4 F4 8 bits F Coefficient of Fil tar Stage 4 as 8 bits B Coefficient of Fil tar Stage 5 FS 8 bits F Coeff1c1 ent of Fil tar Stage 5 116 8 bits B Coefficient of Filter Stage 6 F6 8 bits F Coeff1ci ent of Fil tar Stage 6 Al 8 bits Alllp11tude Interpolation Delta f" Pl a llits P1tc:h Period Interpolation Delta RC:.11111. Sl'-Q256 lllV IHIST 14 Document Control OJSQ-20 ...... . (" ~ SP Controller The SP Cantrol l er fs a sequential processor wb.iclt fetchas lnstl'Uctions and dat& fl'Oll RIJI, and 1s capable of altering the contints of the 17 pa..-ter reg1"sters control11ng tlla SP VTM. Tlia controller bas 1& executable instructions, and supports 1 leHl of suliroutine nesting. The instruction set is designed specifically to allow selective upcl&tu of the parameter registers to be performed. In additlon,tlle JMP and JSR instru_ctf"ons allow chaining of s-ents, and sharing of code sequencas to eliminate redundancy. The SP instruction set consists of two grcups of instructions, register modification instructions, and branclt control Instructions . -- ...UT SP025& 15" Document Contra 1 #0380-20 PROGRA»!ABILITY R!gister Modification Insnuctions The purpose of the SP resister modification instructions is .t o update the VIM parameters. The R and P rejisters detetmine how many sample periods of a particular SOUDd are oottpUt by the VIM before amttol of the parameter repsters is returned to the conttoller. The amttoller waits until the canpletion of the last of R pitch periods (or 64 X R samples in unvoiced mcde) Defore executins the next register modification inst.ruc4Cian. Each of the 12 repster modification insnuctions, with the exception of llC!I, consists of a 4 bit op code followed by 4 bits of data which are loaded into the lower 4 bits of r91ister R. llC!I is a l byte instruction which loads the upper 2 bits of the Repeat resister (i.e . Resister R), the Precision Select Bit CJ'l, and the rl.l ter Order Select Bit 00. f' llC!I passes amttol to the next instruction followini execution. llC!I will net cause an ilmDediate tnnsfer of contTOl to the VIM. The Precision Select Bit determines which of the two bit pncision maps stored in the SP0256 is to be used in updatins the parameter resisters. When the P Bit is set hiib. & Jre&ter JILlllber of bits are used to represent the parameters which renders the hipst quality speech.. Settins the P Bit low selects . 11 bit precision map which c&lls for fewer bits to specify the parameters, offerlna a bit s&ViniS at & slight speech quality loss, which. is often imperceptible. The Filter Ordft Select Bit CM Bitl selects be~ a lloyed for Del ta loads . In all cases , the Qel ta load instructions require less bits than their absolute equivalents. All parameter mod1f1cat1on data 1s expressed 1n twos complenent fonn. -- ..UT SP025& 17 Ooc....,nt Control #0380-20 REGISTER MJDIFICAT!ctl INSTROCT!It6 INSTROCTictl COIE N3N2N1No•Lcwwr 4 Bits of R REGisnRS Klll!FIED 0 0 O 1 MP NS N4 R, (N5 ,N4 are upper 2 bits of R) · R,A,P ,84,F4,85,FS, B6,F6 mo-s1,F1 ,s2,F2, 83,F3,AI,PI FRL a o 1 1 R;RzRi.Ra R,A,P ,Bl ,Fl ,82 ,F2, B3,F3,B4,F4,BS , FS, B6,F6 mo-AI,PI . FRL(API) a 1 o o R;RzRi.Ra R,A,P ,Bl , Fl,82,FZ, ~ B3,F3,B4,F4,BS,f5 B6,F6,AI,PI m a 1 o 1 13¥i.1a R,A,fl,F2,F3 mo-AI.PI FFtl 0 1 1 0 R;RzRi.Ra Rr~.F4,f5,F6 mo-AI,PI PCT 0 1 1 .1 131nRa R,A,P, zmi-.lj,PI FPL (.AP!) 1 0 0 0 ll;R;1i,R0 R,A,P ,Bl , Fl,82,FZ, -113 ,F3 ,B4,F4,BS ,FS B6, F6 ,AI ,PI (All par:imeters with the exception of R are loaded with full 8 bit precision for this instruction only) 13¥i.1a -- DFRL 1 0 0 1 FRL 1nstnlet1on .wfth J:l:'~:;! except R; SP0256, ] lllV ..UT 18 c ,....J REGISTER MODIFlCATIO!! !NSTRUCTIOHS !MSTRUCTION COOE N N N,N • Lower 4 Bits of R REGISTERS MODIFIED 3 2 0 R,A,.P,F1 ,F2,F3 Zero__.,,,! ,Pl FFL with Pitch DPRI. · De1ta coded PRI. Instl'Ucti on FFL(API) R,A,F1 ,F2,F3,Al,PI SIL R ,.. Z1ro.-.P,A,AI,PI . -JllO. SP-0256 9411T 19 Doc.-nt Control f 0380-20 BRANCH CONTROL INSTRUCTIONS IljS!lWCTictl COOE t Of BY'!ES REGI~ ~DDIFIED JSR 1 1 0 l As Ag_AioA11 PC - RB •Ao thl'IJ Ai_ 5 -PC , Renmt Flq °'a Ai ~ °'J A4 A5 A5 "-, Set 00000000 If Renmt Flq Set Rll-PC,Renmt fl&i Reset Set IS-PC ·a-1s !SF Reset JMP l 1 1 0 As Ag AioA11 Ao thru ~s-PC Ao ~ Az At4 As A6 ,.,, PAG o o o o "12"13°'14Ais.. en ExeClrtion of next JSR or JMP ins=-t- ion Ai5A14A1t12 -Pc (Al z thl'IJ Al S l!USt be greater thin zero) -- .. UT SP025' 20 Document Contra 1 10380-20 HIGH PRECISION !P • 1 l BIT MAP ~ aIT PLACEMENT ABSOLUTE .SIT PLACEMENT OELTA F1 DDDDODXX XXDDDDXX Bl XDDDDDDX XlXDODDX FZ DDDDDDXX XXDDDDXX BZ XODODDDX XXXDODOl Fl DDDDODXX XXDDDDXX B3 XDODDODX XXXDDOOX F4 OOODOOOX XXODODOX l!o4 XODDOOOX XXXOODDX FS DDDDOOOD XXXDDDDD BS DDDOOOOD XXXODDOO F6 DDDDOODD XXXDDDOD B6 00000000 xxxooooo 00000000 xxxooooo A OODOOOXX XXODOOXX PI XXXDDDDO XXXDDDOO Al XXXOOOOD x x ~ 0 0 0 o. 0 lD INDICATES PLACEMENT OF DATA BITS IN 8 BIT WORD} -- 91UT SPOZ56 21 Oocim.nt Control #0380-20 ,,.... .LOii PRECISION (P • 0) BIT HAP ~ lIT PLACEMENT ABSOLUTE BIT PLACEMENT OELTA Fl DDDDDXXX xxoooxxx Bl xoooxxxx xoooxxxx FZ DDDOOXXX xxoooxxx B2 xoooxxxx xoooxxxx F3 DDDODXXX xxoooxxx 83 XDDDXXXX xoooxxxx F4 DDOOOOXX xxooooxx 84 XDDDOXXX xxoooxxx FS DDDDOOXX xxooooxx BS DDDDOOOX x x xoooox ..,... F6 00000000 XXXOOOOO B6 DODOOOOO XXXOOOOO 00000000 XXXOODOO A ODOOOOXX XXDOOOX)C PI XXXOODDO xxxooooo Al xxxooooo xxxooooo (0 INDICATES Pl.ACEMEHT OF DATA BITS IN 8 BIT WORD} -- ..UT SP0256 22 Document Contra l #0380-20 Instruction Chaining In tho caso who,.. JIWlro than ono rog1stor modification instruction is required to upd&to tho p&rlNtor reg1stors, yot it 1s not desired to 111rlonn a full updato (FRL), 2 or ..,,.. instructi ons may be c:hai nod togethor. This fHtu,.. is also useful for initializing tho reg1stors before a JHP, JSR, or ,..turn instruct- ion, without causing tho VTl4 to start a sound sequonce. If an instruction 1s to be chained with one or ..,,.. othor instructions, tho lower 4 bits of its' instruction byte a,.. sot to zoro. The last instruction in a sorios of ch&inod instruction bytes, 1s the only one with a non-zoro lowor 4 bits . The lower 4 bits of the .last instruction b,yto in a chained seriu is load- ed into tho lower 4 bi ts of tha R registor . Whon chaining 1nstruct1ons, tho data b,ytos appoar aftor tha lut instruction. The ardor of the data bytes 1s given by Tablo 3. C--- For oxamplo. if it was desired to c:hain an FFU witlt an FFL instructi on, tha following reg1stors would be updatod: FFU Modifios F4, FS. F6. R, A FFL Modifiu Fl, FZ, F3, R, A ilaforring to Table 3, 1t can bo Sffn that tho propor sequence for the above data 1s : A, Fl, FZ, Fl, F4, FS, F6 If we assume that low precision llWlde· has previously been selected, the proper b1t string to oxecuto tho anti,.. sequoneo would bo: -- SHUT SP0256 23 Document Control #0380-ZO ; TABLE 3 DATA am LOAD SEQUENCE FOR CHAINED INSTRUCTIONS l.a&dad Ft rst ·· A . z 3 Bl 4 Fl BZ FZ B3 8 F3 84 10 F4 11 BS ' 1Z F5 13 B6 14 F6 15 AI Loaded L&st 16 PI --- 81DT SPOZ56 24 uocumen1. \..u111..1·u1 ,...,J a a ~ .).. ~ : ,,... < -i ~;t::r F'FU .CL . O.. - ·' f.<" " ' F1'L a a ~-Rz R1 Ra _ ~ , . ,- A D D 0 D D D D D D D o \ " ' Lr 1° , F1 FZ D D D D D ' . .!--•" Fl D D D D D F4 D D D D D D \ D D D FS F6 D D D D 'c) (D REPRESE!ITS DATA BITS CORRESPOllDill& TD PARAMETER) Whel"I R3Rz it, Ra 1"91)1"1Sent the le>Mr 4 b1ts of the repeat f'991Ster ~l. Since tlle 1nstl'llc:t1ons an both absolute load 1nstruc:t1ons tbe data w111 be read fl'OD the RlJ4 us1ng the b1t plac:_,t absolute .. p. As c:an be seen fl'OD the allove, th1s c:ha1ned sequenc:e requ1res 57 bits of ROM storage. Th• f1rst bit of the next 1nstruc:t1on would be the RlJ4 b1~ follow1ng the abOve b1t stnm. Note tbat th• beg1nn1ng and end of an 1nstruc:t1on sequence my occ:ur anywh•l"I w1th1n a byte boundary. - - SP-0256 9tHT 25 A'>.S.V"'C" ~-- l) ....T"A S.-Glvc..ic.- clll PllGV .;5. A~u"''° A ::rvM~ .%'1£TllU4'"TIOtJ F"'-'-" uJ .S , ~ F'" tll\I PP.<.¥.o!;> "TWa ~"Tl'- "'10 t1I. J) &.- J'IS ,..""'- • ...:i.s : . .f'F.IJ 01\0oOCO . !"~~... oi "o .. ,-~ ·!!. · ~.~. - . !>).. · ·~~ A~A;.A, :A: - - fl l',..F.~F.~F,, l'lo l"a. ~ F... Ii.. ii. ,.-..., . r our: . .?Z> - 7 } l r ,l!JGJ+r. :::ru ... f' ":'11£TILVC:..TIONS r' C4MF O,.T." . .f'IS&. F\ls"T'" . • ~\.<. . 1>~ ;\llJQ QT+l.,it. ==~~"T"AVC:"T°'ONS C..~E OvT I.~&.. _ ~A.S"T'.. - . - sP-o~.51o ltlV . .UT ;ISP. c. Oocl.r.ll!nt Contro 1 i0380-20 '("' Branch Control ln•tructlons The SP Branch Control instruction• differ from the register modification Instructions In that they do not modify aey of the VTH parameter registers. The sole purpose of these instructions Is to detennine the location in the ROM from which the next instruction will be fetched. The JSR tJU11111 to Subroutine) Instruction stores the present address tie. the contents of the PC register) in the return buffer (.RBl register. The PC register is loaded with the 12 bit address specified by the last 4 bit of tho instruction byte and the following c!Ata byte. In addition, an Internal return flag 1s set to Indicate that the RS register has been loaded . The controllor then fetches and executes the instruction located at PC + 1 in the ROM . Only one level of subroutine 1s al lo..ed . The JMP (JU11111) instruction loads the PC regi•ter with th• 12 bit address specified by the lower 4 bits of the instruction byte,. and the following c!Ata byte . Neither the return flag nor the return buffer are modified. Upon completion of uecution, the nut instruction 1s fetched from location PC + 1 in the ROM. RET (R1turn From Subroutine} is an Instruction whose function depends on the state of the return flag. When the return flag Is set lfndlc:rting that a sub- routine fs being exocutedl, execution of an RET Instruction will cause the contents of the RB register to be moved into the PC. The return flag Is reset, and the controllor fetches the instruction located at PC + 1, and continues execution from that location. Only one level of subroutine Is allowed. When -- an RET Instruction is encountered and th• roturn flag is not ut, the status of IHllT SP0256 26 Docwnent Contro 1 #0380-20 the input buffer flag CIBFl is checked. If !BF is sat, (indicating that the starting address of the next sound sequence has been loaded Into the SP device) the contents of the IB register (8 bitsl. 1s loaded into the PC. If the !BF flag is not set, the controller w111 disable any further output from the Vll4, and wait for the !BF flag to beco.. set. The SBY lstandby) pin will go high and ,.....in high until the !BF flag 1s set. The SBY pin is discussed further in the section on standby operation. When the !BF flag 1s sat, execution continues u described above. PAG is a one byte instruction used to perlonn Jumps to addl"9sses in memory outside of the present page (4K byte block). The lower 4 bits of the instruction byte ~ specifies the upper 4 bits of the address in the next JMP or JSR instruction encountered. The a~t of the PAG instruction. 111Jst be greater than zero since the bue page in the system is Page 1. If a JMP or JSR instruction 1s executed without a PAG instruction preceeding it, the upper 4 bits of tho JMP addl"9SS are set to the upper 4 bits of the PC. The fact that the PAG instruction 1s optional allows a 2 byte short form address to be used for short jumps, and a th"9 byte extended Jump consisting of a PAG instruction and a JMP or JSR, to be used for JIJlll!S outside tho pl"9sont page. Although instruction sequences nay begin and end within byte .boundaries, JMP, JSR, and R£T instructions always cause a branch to a byte boundary. For example, if 1 JSR instruction had its last bit stored in the 4th bit position of byte number 1258 in Ra!, and the instruction called for a JIMllP to location 250, the next -- instruction to be executed would be read starting with the first bit of location SP0256 IHUT 27 Ooc.-nt Control #0380-ZO 250. If & retum instruction ,..s u.Cuted, the nut instruction would be read starting with the first bit of location 1265, not the fifth ~it of location 1258 . GINIRAL INITlllMIHT COllPOllAT10lll lllCllOILICTllONICI GJIOU' -- IHllT SP0256 28 Document Contra 1 #0380-20 ' . ,... DEVICE INTERFACE Program Entry Control In the SP Syst.i. the individual sound sequences stored in ROM, are accessed by uso of tho 8 l:i1t 1nput port. The significance of this input byte is a function of tho state of tho SE tStrobe Enable} input pin. When the SE lino is high, and tho input port has been loaded from tho external system tho contents of the 8 bit input port is loaded into the S b1t IB register. This allows any ono of 256 entry points to bo specified with a one byte input. Tho entry points are spaced at 2 byte increments lie . a. 2. 4, 6 •.. . ) throughout. the internal RCM. Two byte inputs nay bl used to expand the number of entry points to 382.5 . This addressing sch.,. Is most useful in appHcations whore Ill the SP is 1ntorfaced to the data l:llls of an external microprocessor, or in other environments wll1r1t the use of a strobe line may bl desirable. In applications where an appropriate strobl fs not available tsuch as a stand- alone environment with. switches selecting the desired sequence} the SP 0256 c:an latch its data without an axternal strobe. Whan tho SE input is tied low, tho SP 0256 will latch in the data on the input bus approJdmatoly lusec . after the detect- ion of a b.igl! level on any ono of the S address input Hnes. CllHlllA&. INST'llUlllNT CCllPORAT10N RC.1111. SP0256 llllCllOILICTllCNICS Ql'IO'.P IHHT 29 f ,,. Input Handshake Contl"Ol Input to the SP device 1s aceaapllshed using 8 Input data pins, Z handshake lines, and an Input mode sel.Ct pin. As mentioned In the pr9vious section, the handshake pins a" not necessary for some appl lcations. When the SE (Stl"Obe Enab.l•l pin 1s kept high. the handshake lines (LRQ and 01.0l a" used to coordinate· the data Input. LRQ (Load Request! 1s an output pin wh.kh. 1s low whenever the IBF l!nput Buffer Flagl 1s set. When LRQ is trlgh., the Input port 1s loaded by placing the 8 b.lts of data on the Input lines, and pulsing the 01.0 (Jlata Loadl input. The Mstng edge of 01.0 will cause LRQ to go low, wile" It will ....,.in untfl the Internal !BF Flag 1s reset 11)1 an RET instMJction. ' . . OAC Outeut The output of the SP vn1 seetlon drives an Internal 7 bit pulse width modulation (PWMl. digital to analog converter. The design of the PWM OAC 1s such that all noise C011POnents a" at or above lOKMz. The output 1s· 1ow pass f1ltertd to SKHz, and 111111llfled externally. Standby Operation The SP OZS& has two power supply pins and a coam:>n gJ"Ound. The VOl supply pin powers the interlace logic and pJ"Ovides standby current to tha contl"Oller and pa,....ter registers. The VOD pin powers the m, the c0ntl"011er and the Internal ROii. When the SBY pin 1s high l1ndleatlng that tha SP 1s inactive! the ~1---v_u_o_p_1_n_ea_n_11e __ red __ __""_t_e_rn_a_1_1y_to_c_o_ns_•_rv_•_pqwe __r_._Th_1s_w_11_1_pl"O_v_ld_•...,.a-::=-I I powe __ down 1:1. GINEU.L INSTl'IUMIHT CORPOllATION ~- SPOZ56 RCIV 1:1 llllC1'0ILICTJICNICS GROW 91UT ·30 DocU111ent Control #0380-ZO standby current which Is a fraction of the nonnal o~erating current. W11111 the SP 1s loeded with an entry byte, the SBY pin ls . brought low signaling the extarnal c:il"Cllltry ta power-up the YOO pin. The SP will delay execution of the· selec:tad sequence ta allow the power supply ta settle. If it 1s not desired to lmpl-t the standby mode of operation, the VOl and voo. pins should be t1ed ta a eanaon supply. The SP 0256 requires one 3. lZ!tlz eloc:k, which Is generated by an onboard osc1lla.tor with utarnal crystal control. Th• crystal is connectad between the XTAL in. and XTAL out pins. --.,, _. Docwnent Control #0380-20 Vacabularx Expans1an The SP 0256 11 c:apallle of directly addressing 61,440 bytes ts b1ts ~1del of ROM. The dav1de has 2K bytes of ROM an board. If add1t1anal vocabulary space 1s requ 1red, uterna 1 ROM llllY be added ta the sys tam. The external ROM 1ntar1'acu to th• SP dev1c• through the use of the ser1al 1n, and serial out lines. The serial out pin provides the 16 b1t address to the utarna 1 ROllS. The addressed ROM sands ser1a 1 data back to the SP 0256 through the serial In pin. Ta acc0111110data th1s sar1al c011111Unicatian, spec1al purpose ROMS are used. Thu• expansion ROMS are control led using the c1 , Cz• and c3 outputs of the SP D2S6. The architecture of the SP Is such that a 16 bit address need be output only upon execution of a JMP or JSR lnstri1ctian. External ROM Interface timing is shown in Figure l · Table! 11sts the control functions of the vocabulary expans1an ROM, and the action taken by th• ROM. Figure ! shows the 1ntar1'ace bet>oeen the SP 0256 and - SPR-16 ROMS. -- IHHT SP0256 32 lllV ) l!I Q sf L_! : I- ~--.J----'~----------,..-------------------11 . , 1 11o~ '-'-------------------'I , X'·l~J0,1',J'• i. Q8 ~5 !i~ ::! i DSR SHIFT OUT !I ~ J r.. . "'.,, .. 0 FIGURE 3 EXTEljHAL Riii INTERFACE TIMING ... ~ ·.· ~ ~ Document Control 10380-ZO -' TABLE 4 EXTERNAL SPEECH ROM CONTROL STATE ") Cl CZ C3 FUNCTION 0 0 0 !!!!f. - No Act1an Taken 0 0 ~ - Accepts d&t& from the serial output synchronous to the extarrual ly supplied ROM clack. This d&t& 1s sh1ftad 1nto the ASR holding register in preparation for loading into the PC. Although ASR 1s 16 bits long, 1t 1s not necessary to load all 16 bits of addren sequont1&1 ly 1n one ASR load. 0 0 ~ - Loads the contents of the ASR register into the PC . OSR Load - Loads the 8 bits of d&t&_pointed to by the present value of the lust significant 11 bits of the PC Into the d&t& output shift register tDSR) . At the ccmplat1an of the OSR load the PC Is inc,....,.,,ted. o Dsa Shi ft Out - Shifts out the contents of DSR to the ser1a1 · in pin, synchronous to the ROM clock . 0 REI. R!Q1star Load - Loads the return register (Ra. ·-i with r the current value of the P.C. O !!!Si!!!. - Load:; the PC with the contents of the RB. reg1 ste~. !!!!f. - No act1on taken in Speech R ~ OocUMnt Centro 1 I 0380-20 L ;;,s;;g1 O;ar;rar.s~g ;:.::., !'!u1!!IUl!I ~1t1nss \._ All ~1ns 1'11el :-ss;:r-<: t:: '/SS------------------ C. 3 :Q S. 0'/ Storage ie;erat11r• · -ZS'JC to 1ZS~C I Sgnd.ard Ccnc!1 ;1 ans CToclt - Cmtal F : - s q u e n e y - - - - - - - - - 3 !ZOM!lz 0 Operating 7epent111, - - - - - - - - - - - - - - o c tci ;oQc oc C!IAAAcratlSi1 cs SVlll :-.1n Tvc :-lax Units Cond1tfons t ' F\"'fmar'J Supply Vol tag• Standby Supply 'lo! tage 'IUD '101 Ju I_ . 4..a - 7.0 7.0 v v i'l"'fmar:t Sll!lply Curnnt IOD -- ga Ila zsOc ~ laac!s. Ruet & Si'aY. Re- set l\iglt. All ot!lar Inputs floating 105 mal'.AX @ o0 c 7a MAX ~ 70°c St:ar;C!::t Supply Cw-:-ent IDl -- Zl Ila aft saita u a1igv•. Z4.0 aa MAX i 0 C 17. 5ma l!AX:J70°C ~ .i.1-.:.a. AL.O. sar.'I. rar. £. ~c 0 vn. a.a -- 0.6 'I v -- -- tta ;2'f l.OGIC 1 Vt!! Z.4 VDl CAPACITA.'«:!: CL~ · 10 WXAG£ IU: UI 'lp1 n • 7. CV Oel•r ?1 ns • o.cv ~mm,., ~ L.CGlC 0 l..CQlC 1 VRSI1. a.a VRSIH 3.6 -- 0.6 VDl 'I v SIY, 01i1tll Out, CT, CZ, - Cl. 1..'0V :-!!~ P1n V • tllP1.JT • O.SOV II.AX l'llY r.FNEULI ~- SP-Q256 c