外文文獻(xiàn)翻譯----32kx16閃存16位語音微控制器_第1頁
已閱讀1頁,還剩19頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、<p>  32kx16閃存16位語音微控制器</p><p><b>  1 總述 </b></p><p>  SPCE061A 是繼μ’nSP(TM)系列產(chǎn)品 SPCE500A 等之后凌陽科技推出的又一個16位結(jié)構(gòu)的微控制器。與SPCE500A不同的是,在存儲器資源方面考慮到用戶的較少資源的需求以及便于程序調(diào)試等功能,SPCE061A里只內(nèi)嵌32K字

2、的閃存 FLASH ROM。較高的處理速度使μ’nSP(TM)能夠非常容易地、快速地處理復(fù)雜的數(shù)字信號。因此,與SPCE500A相同,以μ’nSP(TM)為核心的SPCE061A微控制器也適用在數(shù)字語音識別應(yīng)用領(lǐng)域。 </p><p>  SPCE061A在3.0V-3.6V工作電壓范圍內(nèi)的工作速度范圍為 0.32MHz-49.152MHz,較高的工作速度使其應(yīng)用領(lǐng)域更加拓寬。2K 字 SRAM 和 32K 字閃

3、存 ROM 僅占一頁存儲空間,32 位可編程的多功能 I/O 端口;兩個 16 位定時器/計數(shù)器;32768Hz實時時鐘;低電壓復(fù)位/監(jiān)測功能;8通道10位模-數(shù)轉(zhuǎn)換輸入功能并具有內(nèi)置自動增益控制功能的麥克風(fēng)輸入方式;雙通道10位 DAC方式的音頻輸出功能 。</p><p><b>  2 性能 </b></p><p>  * 16位μ’nSP(TM)微處理器

4、 </p><p>  * CPU時鐘:0.32MHz-49.152MHz </p><p>  * 工作電壓:3.0V - 3.6V </p><p>  * 內(nèi)置2K字SRAM</p><p>  * 內(nèi)置32K閃存ROM </p><p>  * 可編程音頻處理</p><p>

5、;<b>  * 晶體振蕩器</b></p><p>  * 系統(tǒng)處于備用狀態(tài)下(時鐘處于停止?fàn)顟B(tài)),耗電小于2μA@3.6V </p><p>  * 2個16位可編程定時器/計數(shù)器(可自動預(yù)置初始計數(shù)值) </p><p>  * 2個10位DAC(數(shù)-模轉(zhuǎn)換)輸出通道 </p><p>  * 32位通用

6、可編程輸入/輸出端口</p><p>  * 14個中斷源可來自定時器A / B,時基,2 個外部時鐘源輸入,鍵喚醒</p><p>  * 具備觸鍵喚醒的功能</p><p>  * 使用凌陽音頻編碼 SACM_S200 方式(2.0K 位/秒) </p><p>  * 鎖相環(huán)PLL振蕩器提供系統(tǒng)時鐘信號 </p>

7、<p>  * 32768Hz實時時鐘 </p><p>  * 8通道10位電壓模-數(shù)轉(zhuǎn)換器(ADC)和單通道聲音模-數(shù)轉(zhuǎn)換器聲音模-數(shù)轉(zhuǎn)換器輸入</p><p>  * 通道內(nèi)置麥克風(fēng)放大器和自動增益控制(AGC)功能 </p><p>  * 具備串行設(shè)備接口</p><p>  * 低電壓復(fù)位(LVR)功能和低電壓

8、監(jiān)測(LVD)功能</p><p>  * 保護代碼安全讀與寫的功能</p><p><b>  3 應(yīng)用領(lǐng)域 </b></p><p>  * 語音識別類產(chǎn)品 </p><p>  * 智能語音交互式玩具 </p><p>  * 高級亦教亦樂類玩具 </p><p

9、>  * 兒童電子故事書類產(chǎn)品 </p><p>  * 通用語音合成器類產(chǎn)品 </p><p>  * 需較長語音持續(xù)時間類產(chǎn)品 </p><p>  * 復(fù)讀機相關(guān)產(chǎn)品</p><p><b>  4 功能描述 </b></p><p><b>  4.1 CPU

10、</b></p><p>  SPCE061A 配備了凌陽科技開發(fā)的最新的16位微處理器μ’nSP(TM)。它內(nèi)含有8個寄存器:4個通用寄存器R1-R4,1個程序計數(shù)器PC,1個堆棧指針SP,1個基址指針BP和1 個段寄存器 SR。通用寄存器 R3 和 R4 結(jié)合形成一個 32位寄存器MR,MR可被用作乘法運算和內(nèi)積運算的目標(biāo)寄存器。此外,SPCE061A 有3 個FIQ中斷和14個IRQ中斷,并且?guī)?/p>

11、有一個由指令BREAK控制的軟中斷。μ’nSP(TM)不僅可以進(jìn)行加、減等基本算術(shù)運算和邏輯運算,還可以完成用于數(shù)字信號處理的乘法運算和內(nèi)積運算。 </p><p><b>  4.2 存儲器 </b></p><p>  4.2.1. RAM </p><p>  SPCE061A 擁有 2K 字的 SRAM(包括堆棧區(qū)),其地址范圍從#00

12、00到#07FF。 用兩個時鐘周期進(jìn)行訪問。</p><p>  4.2.2 閃存(Flash)ROM </p><p>  閃存(Flash)ROM(#008000-#00FFFF)是一種以兩個CPU時鐘周期存取速度的高速內(nèi)存。閃存擦寫功能必須使用IDE工具。</p><p>  4.3 時鐘(鎖相環(huán)振蕩器,系統(tǒng)時鐘,實時時鐘) </p><

13、p>  4.3.1 鎖相環(huán)(PLL,Phase Lock Loop)振蕩器 </p><p>  PLL 的作用是為系統(tǒng)提供一個實時時鐘的基頻(32768Hz),然后將基頻進(jìn)行倍頻,調(diào)整至 49.152MHz、40.96MHz、32.768MHz、24.576MHz或 20.480MHz。系統(tǒng)</p><p>  默認(rèn)的PLL自激振蕩頻率為24.576MHz。 </p>

14、<p><b>  4.3.2 時鐘 </b></p><p>  (1)系統(tǒng)時鐘 一般來說,系統(tǒng)時鐘的信號源為 PLL 振蕩器。系統(tǒng)時鐘頻率(Fosc)和 CPU 時鐘頻率 (CPUCLK) 可通過對P_SystemClock(寫)(#7013H)單元編程來控制。默認(rèn)的Fosc、CPUCLK分別為24.576MHz 和Fosc/8。用戶可以通過對 P_SystemClock

15、單元編程完成對系統(tǒng)時鐘和 CPU 時鐘頻率的定義。當(dāng)系統(tǒng)被喚醒后最初時刻的CPUCLK頻率亦為Fosc/8,隨后逐漸被調(diào)整到用戶設(shè)定的 CPUCLK 頻率。這樣,可避免系統(tǒng)在喚醒初始時刻讀ROM出現(xiàn)錯誤。 </p><p>  (2)實時時鐘(32768Hz) 32768Hz實時時鐘通常用于鐘表、實時時鐘延時以及其它與時間相關(guān)類產(chǎn)品。SPCE061A 通過對 32768Hz 實時時鐘源分頻而提供了多種實時時鐘中

16、斷源。例如,用作喚醒源的中斷源 IRQ5_2Hz,表示系統(tǒng)每隔 0.5 秒被喚醒一次,由此可作為精確的計時基準(zhǔn)。” 。此外, SPCE061A支持32768Hz振蕩器在正常模式和自動省電模式。在正常模式下,32768Hz振蕩器始終運行在最高的功率消耗。自動省電模式,但是,在正常模式下運行的第一個7.5秒變化回到省電模式以降低功耗。 </p><p>  4.4 節(jié)電模式 </p><p>

17、;  SPCE061A可設(shè)置節(jié)電的備用模式以達(dá)到節(jié)能的目的。要進(jìn)入待命工作模式,首先應(yīng)將所需的鍵喚醒口IOA[7-0]設(shè)為輸入端口。在進(jìn)入待命工作模式前,通過讀P_IOA_Latch 單元來激活I(lǐng)OA[7-0]口的喚醒功能,或者允許作為喚醒源的中斷源中斷請求的響應(yīng);然后通過寫入P_SystemClock單元一個CPUClk STOP 控制字(CPU 睡眠信號),以停止 CPUClk 工作,進(jìn)入‘睡眠’狀態(tài)。P_SystemClock單元

18、還可用來編程設(shè)置在CPU進(jìn)入‘睡眠’時是禁止/允許32768Hz實時時鐘的工作。在待命模式下,RAM和I/O端口的狀態(tài)都將維持進(jìn)入‘睡眠’前的各個狀態(tài),直到產(chǎn)生‘喚醒’信號。SPCE061A的喚醒源包括鍵喚醒 IOA[7-0]端口以及各中斷源(IRQ0 - IRQ6)。當(dāng) SPCE061A 的 CPU 被喚醒后,會繼續(xù)執(zhí)行程序指令。 程序員也可以啟用或禁用32768Hz振蕩時的CPU是否在待機模式。</p><p&g

19、t;  4.5 低電壓監(jiān)測和低電壓復(fù)位</p><p>  4.5.1 低電壓監(jiān)測</p><p>  有兩個LVD可以被選定:2.9V和3.3V。這兩個級別可以通過Port_LVD_Ctrl編程(W) 。例如,假設(shè)LVD給予的2.9V。當(dāng)電壓降到2.9V以下 ,B15的Port_LVD_Ctrl讀出的是為高。在這樣的狀態(tài),可以設(shè)計程序?qū)@一條件作出反應(yīng)。</p><

20、p>  4.5.2 低電壓復(fù)位 </p><p>  除了LVD,該SPCE061A的另一個重要功能,低電壓復(fù)位( LVR ) 。與LVR功能,復(fù)位信號產(chǎn)生時重置系統(tǒng)的工作電壓低于2.3V連續(xù)10 CPU時鐘周期.如果沒有 LVR ,中央處理器變得不穩(wěn)定和發(fā)生故障時,工作電壓低于2.3V 。當(dāng)電壓低于2.3V ,該LVR將重置所有功能到初始操作狀態(tài)(穩(wěn)定) 。</p><p><

21、;b>  4.6 中斷</b></p><p>  SPCE061A 具有兩種中斷方式:快速中斷請求FIQ(快速中斷請求)中斷和中斷請求 IRQ(中斷請求)中斷。中斷控制器可處理3種FIQ中斷和14種IRQ中斷,以及一個由指令BREAK控制的軟中斷。 相比之下,F(xiàn)IQ中斷的優(yōu)先級較高而IRQ 中斷的優(yōu)先級較低。也就是說,F(xiàn)IQ中斷可以中斷IRQ 中斷服務(wù)子程序的執(zhí)行,而CPU執(zhí)行相應(yīng)的FIQ中斷

22、服務(wù)子程序的過程不能被任何中斷源的中斷請求中斷。</p><p>  4.7 輸入/輸出端口 </p><p>  兩個I/O端口是建立在SPCE061A,端口A和端口B。端口A是一個普通的I/O ,有編程喚醒功能。除了定期的IO功能,端口B還可以在某些引腳執(zhí)行一些特殊的功能。假設(shè)正在運行的工作電壓在3.6V(電源)和VDDIO (I / O電源的 )之間 ,從3.6V之間(電源)至5.5

23、V 。在這種條件下,在I / O墊能夠從0V通過VDDIO 。雖然IOB13和IOB14建議在<=3.6V之間 的待機模式下操作,然而這兩個端口間依然有電流泄漏。下面的圖表是一個I / O示意圖。</p><p>  雖然數(shù)據(jù)能經(jīng)過數(shù)據(jù)端口和端口緩沖器被寫入相同的寄存器, 但是,他們能從不同的地方、緩沖(R)和數(shù)據(jù) (R)被讀取。端口A[7:0] 是主要的喚醒端口。為了要激活主要的喚醒功能, 在 PORT_

24、IOA_Latch 上的數(shù)據(jù),而且使主要 喚醒 功能能夠。當(dāng)端口A在不同于其它端口狀態(tài)時被喚醒。除了作為一個平常的輸入/輸出功能之外,端口B還具有一些特別的功能。 </p><p>  4.8 定時器/計數(shù)器</p><p>  SPCE061A提供了兩個16位的定時器/計數(shù)器:TimerA和TimerB 。 為通用計數(shù)器; 為多功能計數(shù)器。TimerA TimerB的時鐘源由時鐘源

25、 和時鐘源 進(jìn)行“與”操作而TimerB的時鐘源僅為時鐘源A。定時器發(fā)生溢出后會產(chǎn)生一個溢出信號(TAOUT/TBOUT)。一方面,它會作為定時器中斷信號傳輸給CPU中斷系統(tǒng);另一方面,它又會作為4位計數(shù)器計數(shù)的時鐘源信號,輸出一個具有 4 位可調(diào)的脈寬調(diào)制占空比輸出信號 或 分別從 和APWMO BPWMO( IOB8 IOB9 輸出),用來控制馬達(dá)或其它一些設(shè)備的速度。此外,定時器溢出信號還可以用于觸發(fā) 輸入的自動轉(zhuǎn)換過程ADC和D

26、AC輸出的數(shù)據(jù)鎖存。 </p><p>  向定時器的讀寫單元或P_TimerA_Data(#700AH)P_TimerB_Data(讀/寫)(#700CH)單元寫入一個計數(shù)值N后,選擇一個合適的時鐘源,定時器/計數(shù)器將在所選的時鐘頻率下開始以遞增方式計數(shù)N,N+1,N+2,…0xFFFE,0xFFFF。當(dāng)計數(shù)達(dá)到0xFFFF后,定時器/計數(shù)器溢出,產(chǎn)生中斷請求信號,被CPU 響應(yīng)后送入中斷控制器進(jìn)行處理。同

27、時,N 值將被重新載入定時器/計數(shù)器并重新開始計數(shù)。 在TimerA內(nèi),時鐘源A是一個高頻時鐘源,時鐘源B是一個低頻時鐘源。時鐘源 A和時鐘源 B 的組合,為TimerA 提供出多種計數(shù)速度。若以ClkA作為門控信號,‘1’表示允許時鐘源B信號通過,而‘0’則表示禁止時鐘源B信號通過而停止TimerA的計數(shù)。例如,如果時鐘源A 為“1”,TimerA時鐘頻率將取決于時鐘源B;如果時鐘源A為“0”,將停止TimerA的計數(shù)。EXT1和EX

28、T2為外部時鐘源。多種時鐘期間能產(chǎn)生并且從 IOB8(APWMO) 和 IOB9(BPWMO) 輸出。 </p><p>  下圖為一個3/16的脈寬調(diào)制占空比輸出信號產(chǎn)生過程的時序。APWMO波形是通過寫入P_TimeA_Ctrl 單元的B9-B6選擇一個脈寬數(shù)(以計數(shù)溢出周期數(shù)定義)產(chǎn)生出來的,即每16個計數(shù)溢出周期將產(chǎn)生一個由上述單元定義的脈寬。此類PWM信號可以用于控制馬達(dá)及其它設(shè)備的速度。</p&

29、gt;<p>  一般來說,時鐘源A為高速時鐘源,時鐘源B來自實時時鐘32678Hz 系統(tǒng)。因此,時鐘源B能用于一個精確的時間計數(shù)器。例如,2Hz 時鐘信號可用于實時時間計數(shù)。 </p><p>  一般來說,時鐘源 A 和 C 是快速的時鐘來源,而且源 B 來自 RTC 系統(tǒng) (32768個赫茲) 。因此,時鐘源 B能用于一個精確的時間計數(shù)器.舉例來說,2Hz 時鐘信號可用于實時時間計數(shù)。<

30、/p><p>  4.8.1 時基 </p><p>  時間基準(zhǔn)信號,簡稱時基信號,來自于32768Hz實時時鐘,通過頻率選擇組合而成。時基信號發(fā)生器的2個選頻邏輯TMB1和TMB2為TimerA的時鐘源B提供各種頻率選擇</p><p>  信號并為中斷系統(tǒng)提供中斷源(IRQ6)信號。此外,時基信號發(fā)生器還可以直接生成2Hz、4Hz、1024Hz、2048Hz以及

31、4096Hz的時基信號,為中斷系統(tǒng)提供各種實時中斷源(IRQ4和IRQ5)信號。 </p><p>  4.9 睡眠、喚醒與看門狗 </p><p>  4.9.1 睡眠與喚醒 </p><p>  (1) 睡眠:IC在上電復(fù)位開始工作,直到接收到睡眠信號后,才關(guān)閉系統(tǒng)時鐘(PLL振蕩器),進(jìn)入睡眠狀態(tài)。系統(tǒng)進(jìn)入睡眠狀態(tài)后,程序計數(shù)器(PC)會停在程序的下一條

32、指令計數(shù)上,當(dāng)有任一喚醒事件發(fā)生后開始由此繼續(xù)執(zhí)行程序。 </p><p>  (2) 喚醒:若要將系統(tǒng)從睡眠狀態(tài)喚醒,需要有喚醒源提供一個喚醒信號來啟動系統(tǒng)時鐘。IRQ中斷請求信號引導(dǎo)CPU 完成喚醒過程并將系統(tǒng)初始化。</p><p>  IRQ3_KEY為觸鍵喚醒源(IOA7-0),其它中斷源(FIQ、IRQ1-IRQ6 及UART IRQ)都可以作為喚醒源。</p>

33、<p>  4.9.2 看門狗</p><p>  看門狗的目的是檢測系統(tǒng)是否正常操作 。在一個特定的時期之內(nèi),看門狗一定要被清除。如果看門狗沒被清除的,處理器會認(rèn)為系統(tǒng)一直在一種不正常的情況運行。 結(jié)果,處理器將會重新把系統(tǒng)返回到初始狀態(tài)而且會再次重新運行程序。看門狗功能能在選項中移除。在 SPCE061 A ,清除的周期是0.75 秒。如果看門狗在每 0.75 秒之內(nèi)被清除的,系統(tǒng)將不會再重新運行

34、。為了清除看門狗,只用是寫 "xxxx xxxx xxxx xx 01B" 給 Port_Watchdog_Clear(W) 。 寫到給看門狗清除的 Port_Watchdog_Clear(W) 的內(nèi)容一定完全地是相同于在上面列舉(xxxx xxxx xxxx xx 01B).其他有用的價值會在用 Port_Watchdog_Clear(W)給看門狗清除,系統(tǒng)重新啟動時被結(jié)束使用。如果32768 赫茲被使能,在睡眠模

35、式下,看門狗功能依然能夠被使用。 </p><p>  4.10 模數(shù)轉(zhuǎn)換器與數(shù)/模轉(zhuǎn)換器 </p><p>  SPCE061 A 有八個模-數(shù)轉(zhuǎn)換器通道.模-數(shù)轉(zhuǎn)換的功能將模擬信號轉(zhuǎn)換成數(shù)字信號, 舉例來說 電壓轉(zhuǎn)換成數(shù)字信號。其中7個通道用于將模擬量信號 (例如電壓信號) 轉(zhuǎn)換為數(shù)字量信號, 可以直接通過引線(IOA[0-6])輸入。另外有一個通道只作為語音輸入通道,通過內(nèi)置有

36、自動增益控制放大器的麥克風(fēng)通道(MIC_IN)輸入。另外一個獨立的電阻可以被用來適應(yīng) 麥克風(fēng)的增益和AGC操作的時間 .AD 需要在轉(zhuǎn)變之前選擇線性源。 </p><p>  4.11 串行設(shè)備接口 </p><p>  串行輸入輸出端口SIO提供了一個1位的串行接口,用于與其它設(shè)備進(jìn)行數(shù)據(jù)通訊。在SPCE061A內(nèi)通過IOB0和IOB1這2個端口實現(xiàn)與設(shè)備進(jìn)行串行數(shù)據(jù)交換功能。 <

37、;/p><p>  4.12 UART </p><p>  UART 模塊提供了一個全雙工標(biāo)準(zhǔn)接口,用于完成SPCE061A 與外設(shè)之間的串行通訊(最大的波特率可達(dá)115200bps)。借助于IOB口的特殊功能和UART IRQ中斷,可以完成UART 接口的通訊功能。此外,SPCE061A還可以接收緩沖器內(nèi)容。 </p><p>  4.13 音頻算法 </p

38、><p>  在SPCE061A 中可使用以下幾種語音信號:SACM_S200, SACM_S480, SACM_S530, SACM_S720, SACM_A1600, SACM_A1601, SACM_A3600, SACM_DVR520, SACM_DVR1600, SACM_DVR3200, and SACM_DVR4800。至于音調(diào)合成,SPCE061A則提供了SACM_MS01 (FM synthesiz

39、er)和波表合成器。 </p><p>  4.14 保密設(shè)定 </p><p>  安全功能是為了保護代碼用來寫或者讀的.當(dāng)程序下載進(jìn)入到閃存內(nèi).程序可以用IDE工具來寫或者讀的.如果希望將內(nèi)部的閃存進(jìn)行保密設(shè)定,可將PFUSE 接5V, PVIN接GND并維持2s以上即可將內(nèi)部保險絲熔化,此后就無法再完成下載, 調(diào)試等功能。 </p><p><b>

40、;  5 結(jié)構(gòu)框圖</b></p><p><b>  6 免責(zé)條款 </b></p><p>  在這個版本出現(xiàn)的數(shù)據(jù)被相信是正確的.凌陽科技所出售之集成電路僅受銷售條件中所規(guī)定擔(dān)保及專利賠償條款之規(guī)范。凌陽科技對于本文件所載之信息或本文件所述芯片無侵害他人專利之情事,不負(fù)任何明示、法定默示或敘述性之擔(dān)保。另,不論為何目的使用,凌陽科技不保證其市場性

41、及適合性。凌陽科技保留隨時暫停生產(chǎn)或變更規(guī)格及價格之權(quán)利,而無須為任何通知。茲此敬告本文件閱讀者于發(fā)出訂單前應(yīng)確認(rèn)本文件所載資料表及其它信息系符合現(xiàn)況。本文件所述產(chǎn)品系擬為一般商業(yè)應(yīng)用之使用。涉及特殊環(huán)境或可靠性要求之應(yīng)用,例如軍事設(shè)備或醫(yī)療維生設(shè)備等,未經(jīng)凌陽科技就此等應(yīng)用目的另行處理時,特別不建議之。敬請注意本文件所述應(yīng)用電路僅系供參考之用。 </p><p>  16-BIT SOUND CONTROLLE

42、R</p><p>  WITH 32K X 16 FLASH MEMORY</p><p>  1 GENERAL DESCRIPTION </p><p>  The SPCE061A, a 16-bit architecture product, carries the newest 16-bit microprocessor, μ’nSP?(pronoun

43、ced as micro-n-SP), developed by Sunplus Technology. This high processing speed assures the μ’nSP?is capable of handling complex digital signal processes easily and rapidly. Therefore, the SPCE061A is applicable to the a

44、reas of digital sound process and voice recognition. The operating voltage of 3.0V through 3.6V and speed of 0.32MHz through 49.152MHz yield the SPCE061A to be easily used in vari</p><p>  2 FEATURES </p

45、><p>  * 16-bit μ’nSP(TM) microprocessor </p><p>  * CPU clock: 0.32MHz - 49.152MHz </p><p>  * Operating voltage: 3.0V - 3.6V </p><p>  * 2K-word working SRAM </p

46、><p>  * 32K-word flash memory </p><p>  * Software-based audio processing </p><p>  * Crystal Resonator </p><p>  * Standby mode (Clock Stop mode) for power savings,

47、Max.2.0μA @ VDD = 3.6V </p><p>  * Two 16-bit timers/counters </p><p>  * Two 10-bit DAC outputs </p><p>  * 32 general I/Os (bit programmable) </p><p>  * 14 INT s

48、ources with two priority levels </p><p>  * Key wakeup function (IOA0 - 7) </p><p>  * Approx. 190 sec speech @ 2.0Kbit/per sec with SACM_S200 </p><p>  * PLL feature for system

49、clock </p><p>  * 32768Hz Real Time Clock (RTC) </p><p>  * Eight channels 10-bit AD converter ADC external top reference voltage </p><p>  * Built-in microphone amplifier and AG

50、C function </p><p>  * UART receiver and transmitter (full duplex) </p><p>  * Low voltage reset and low voltage detection </p><p>  * Security function to protect code to be rea

51、d and written. </p><p>  3 APPLICATION FIELD </p><p>  * Voice recognition products </p><p>  * Intelligent interactive talking toys </p><p>  * Advanced educationa

52、l toys </p><p>  * Kids learning products </p><p>  * Kids storybook </p><p>  * General speech synthesizer </p><p>  * Long duration audio products </p><

53、;p>  * Recording / playback products </p><p>  4 FUNCTIONAL DESCRIPTIONS </p><p><b>  4.1 CPU </b></p><p>  The SPCE061A is equipped with a 16-bit μ’nSP(TM), the new

54、est 16-bit microprocessor by Sunplus and pronounced as micro-n-SP. Eight registers are involved in μ’nSP(TM): R1 - R4 (General-purpose registers), PC (Program Counter), SP (Stack Pointer), Base Pointer (BP) and SR (Segme

55、nt Register). The interrupts include three FIQs (Fast Interrupt Request) and eight IRQs (Interrupt Request), plus one software-interrupt, BREAK. Moreover, a high performance hardware multiplier with the capability of FIR

56、 fi</p><p>  4.2 Memory </p><p>  4.2.1 SRAM </p><p>  The amount of SRAM is 2K-word (including Stack), ranged from #0000 through #07FF with access speed of two CPU clock cycles.

57、 </p><p>  4.2.2 Flash memory </p><p>  Flash memory (#008000 - #00FFFF) is a high-speed memory with access speed of two CPU clock cycles. FLASH erase and program functions must be used in ID

58、E tools. </p><p>  4.3 PLL, Clock, Power Mode </p><p>  4.3.1 PLL (Phase Lock Loop) </p><p>  The purpose of PLL is to provide a base frequency (32768Hz) and to pump the frequency

59、 from 20.48MHz to 49.152MHz for system clock (Fosc). The default PLL frequency is 24.576MHz. </p><p>  (1)System clock Basically,the system clock is provided by PLL and programmed by the Port_SystemClock (W

60、) to determine the frequency of clock for system. The default system clock Fosc = 24.576MHz and CPU clock is Fosc/8 if not specified. The initial CPU clock is Fosc/8 after system wakes up and to be adjusted to desired

61、 CPU clock by programming the Port_SystemClock (W).This avoids Flash ROM reading failure when system wakes up. </p><p>  (2)32768Hz RTC The Real Time Clock (RTC) is normally used in watch, clock or other t

62、ime related products. A 2Hz-RTC (1/2 second) function is loaded in SPCE061A. The RTC counts the timing as well as to wake CPU up whenever RTC occurs. Since the RTC is generated each 0.5 seconds, time can be traced by

63、 the numbers of RTC occurrence.In addition,SPCE061A supports 32768Hz oscillator in normal mode and auto-power-saving mode.In normal mode, 32768Hz OSC always runs at the highest power consumption</p><p>  4.4

64、 Standby Mode </p><p>  The SPCE061A also offers a standby mode for low power application needs. To enter standby mode, the desired key wakeup port (IOA [7:0]) must be configured to input first. And read

65、the Port_IOA_Latch(R) to latch the IOA state before entering the standby mode. Also remember to enable the corresponding interrupt source(s) for wakeup. After that, stop the CPU clock by writing the STOP CLOCK Register

66、 (b0-b2 of Port_SystemClock (W)) to enter standby mode. In such mode, SRAM and I/Os remain in the</p><p>  4.5 Low Voltage Detection and Low Voltage Reset </p><p>  4.5.1 Low voltage detectio

67、n (LVD) </p><p>  There are two LVD levels to be selected: 2.9V, and 3.3V. These levels can be programmed via Port_LVD_Ctrl (W). As an example, suppose LVD is given to 2.9V. When the voltage drops below 2

68、.9V, the b15 of Port_LVD_Ctrl is read as HIGH. In such state, program can be designed to react to this condition. </p><p>  4.5.2 Low voltage reset </p><p>  In addition to the LVD, the SPCE

69、061A has another important function, Low Voltage Reset (LVR). With the LVR function, a reset signal is generated to reset system when the operating voltage drops below 2.3V for 10 consecutive CPU clock cycles.Without

70、LVR, the CPU becomes unstable and malfunctions when the operating voltage drops below 2.3V. The LVR will reset all functions to the initial operational (stable) states when the voltage drops below 2.3V. </p><

71、;p>  4.6 Interrupt </p><p>  The SPCE061A has 14 interrupt sources, grouped into two types, FIQ (Fast Interrupt Request) and IRQ (Interrupt request).The priority of FIQ is higher than IRQ. FIQ is the hi

72、gh-priority interrupt while IRQ is the low-priority one. An IRQ can be interrupted by a FIQ, but not by another IRQ.A FIQ cannot be interrupted by any other interrupt sources. </p><p><b>  4.7 I/O &l

73、t;/b></p><p>  Two I/O ports are built in SPCE061A, PortA and PortB.The PortA is an ordinary I/O with programmable wakeup capability. In addition to the regular IO function, the PortB can also perform som

74、e special functions in certain pins. Suppose operating voltage is running at 3.6V (VDD) and VDDIO (power for I/O) operates from 3.6V (VDD) to 5.5V. In such condition, the I/O pad is capable of operating from 0V throug

75、h VDDIO. However IOB13 and IOB14 are recommended to operate <=3.6V during standby mode, ot</p><p>  Although data can be written into the same register through Port_Data and Port_Buffer, they can be read

76、 from different places, Buffer (R) and Data (R).The IOA [7:0] is the key wakeup port. To activate key wakeup function, latch data on PORT_IOA_Latch and enable the key wakeup function. Wakeup is triggered when the PortA

77、state is different from at the time latched. In addition to an ordinary I/O port, PortB carries some special functions. </p><p>  4.8 Timer / Counter </p><p>  The SPCE061A provides two 16-

78、bit timers/counters, TimerA and TimerB. The TimerA is called a universal counter.TimerB is ageneral-purpose counter.The clock source of TimerA comes from the combination of clock source A and clock source B.In TimerB, t

79、he clock source is given from source C.When timer overflows,an INT signal is sent to CPU to generate a time-out signal. Initially, write a value of N into a timer and select a desired clock source, timer will start coun

80、ting from N, N+1, N+2, ... th</p><p>  The following example is a 3/16-duration cycle.The APWMO waveform is made by selecting a pulse width through Port_TimerA_Ctrl (W) [9:6].As a result,each 16 cycles wi

81、ll generate a pulse width defined in control port.These PWM signals can be applied for controlling the speed of motor or other devices. </p><p>  Generally speaking,the clock source A and C are fast clock so

82、urces and source B comes from RTC system(32768Hz).Therefore,clock source B can be utilized as a precise counter for time counting,e.g.,the 2Hz clock can be used for real time counting. </p><p>  4.8.1 Timeb

83、ase </p><p>  Timebase, generated by 32768Hz,is a combination of frequency selections. The outputs of timebase block are named to TMB1 and TMB2.TMB1 is frequency for TimerA(Clock source B).The TMB1 and TMB2

84、 are the sources for Interrupt(IRQ6).Furthermore,</p><p>  timebases generates additional 2Hz to 4096Hz interrupt sources (IRQ4 and IRQ5) for Real-Time-Clock (RTC).</p><p>  4.9 Sleep, Wakeup

85、 and Watchdog </p><p>  4.9.1 Wakeup and sleep </p><p>  1) Sleep: After power-on reset,IC starts running until a sleep command occurs.When a sleep command is accepted, IC will turn the system

86、clock (PLL) off. After all, it enters sleep mode. </p><p>  2) Wakeup: CPU waking up from sleep mode requires a wakeup signal to turn the system clock (PLL) on.The IRQ signal makes CPU to complete the wakeu

87、p process and initialization.The key wakeup and interrupt sources (IRQ1 - IRQ6) can be used for wakeup sources. </p><p>  4.9.1 Watchdog </p><p>  The purpose of watchdog is to monitor if th

88、e system operates normally. Within a certain period, watchdog must be cleared. If watchdog is not cleared, CPU assumes the program has been running in an abnormal condition. As a result, the CPU will reset the system

89、to the initial state and start running the program all over again. The watchdog function can be removed by bonding option. In SPCE061A, the clear period is 0.75 seconds.If watchdog is cleared within each 0.75 seconds,

90、the system will n</p><p>  4.10 ADC(Analog to Digital Converter)/DAC </p><p>  The SPCE061A has eight channels 10-bit ADC (Analog to Digital Converter).The function of an ADC is to convert anal

91、og signal to digital signal, e.g. a voltage level into a digital word.The eight channels of ADC can be seven channels of line-in from IOA[6:0] or one channel microphone (MIC) input through amplifier and AGC controller.Th

92、e MIC amplifier circuit is capable of reducing common mode noise by transmitting signals through differential MIC Inputs(MICN, MICP). Moreover, an external resistor </p><p>  4.11 Serial Interface I/O (SIO

93、) </p><p>  Serial interface I/O offers a one-bit serial interface for communication.This serial interface is capable of transmitting or receiving data via two I/O pins, IOB0 (SCK) and IOB1 (SDA).</p>

94、<p>  4.12 UART </p><p>  UART block provides a full-duplex standard interface that facilitates the communication with other devices.With this interface, SPCE can transmit and receive simultaneously.T

95、he maximum baud-rate can be up to 115200bps. </p><p>  4.13 Audio Algorithm </p><p>  The following speech types can be used in SPCE061A: PCM,The functions of IDE include the follows:SACM_S2

96、00,SACM_S480,SACM_S530,SACM_S720, SACM_A1600,SACM_A1601,SACM_A3600,SACM_DVR520,SACM_DVR1600,SACM_DVR3200,and SACM_DVR4800.For circuit-(7).melody synthesis,the SPCE061A supports SACM_MS01(FM) . </p><p>  4.14

97、 Security Function </p><p>  Security function is able to protect code to be read or written. When program is downloaded into flash memory, program can be read/written from IDE tools. For security purpose,

98、 burn fuse to disable IDE function, where PFUSE supplies 7.0V and PVIN connects to ground (0V) about one second (Please refer to the following circuit diagram).After all, the flash memory can no longer be read or writte

99、n. </p><p>  5 BLOCK DIAGRAM </p><p>  6 DISCLAIMER </p><p>  The information appearing in this publication is believed to be accurate. </p><p>  Integrated circuits

100、sold by Sunplus Technology are covered by the warranty and patent indemnification provisions stipulated in the terms of sale only. SUNPLUS makes no warranty, express, statutory implied or by description regarding the in

101、formation in this publication or regarding the freedom of the described chip(s) from patent infringement. Further, sunplus makes no warranty of merchantability or fitness for any purpose. SUNPLUS reserves the right t

102、o halt production or alter the specifica</p><p>  Applications involving unusual environmental or reliability requirements,e.g. military equipment or medical life support equipment, are specifically not reco

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論