本例展示了如何利用外設(shè)TIM2來(lái)產(chǎn)生四路頻率不同的信號(hào)。 TIM2時(shí)鐘設(shè)置為36MHz,預(yù)分頻設(shè)置為2,使用輸出比較-翻轉(zhuǎn)模式(Output Compare Toggle Mode)。 TIM2計(jì)數(shù)器時(shí)鐘可表達(dá)為:TIM2 counter clock = TIMxCLK / (Prescaler +1) = 12 MHz 設(shè)置TIM2_CCR1寄存器值為32768,則CC1更新頻率為T(mén)IM2計(jì)數(shù)器時(shí)鐘頻率除以CCR1寄存器值,為366.2 Hz。因此,TIM2通道1可產(chǎn)生一個(gè)頻率為183.1 Hz的周期信號(hào)。 同理,根據(jù)寄存器TIM2_CCR2 、TIM2_CCR3和 TIM2_CCR4的值,TIM2通道2可產(chǎn)生一個(gè)頻率為366.3 Hz的周期信號(hào);TIM2通道3可產(chǎn)生一個(gè)頻率為732.4 Hz的周期信號(hào);TIM2通道4可產(chǎn)生一個(gè)頻率為1464.8 Hz的周期信號(hào)。 可以通過(guò)示波器觀察各路輸出
上傳時(shí)間: 2014-01-22
上傳用戶:plsee
Free open-source disk encryption software for Windows Vista/XP, Mac OS X, and Linux Main Features: * Creates a virtual encrypted disk within a file and mounts it as a real disk. * Encrypts an entire partition or storage device such as USB flash drive or hard drive. * Encrypts a partition or drive where Windows is installed (pre-boot authentication). * Encryption is automatic, real-time (on-the-fly) and transparent. * Provides two levels of plausible deniability, in case an adversary forces you to reveal the password: 1) Hidden volume (steganography) and hidden operating system. 2) No TrueCrypt volume can be identified (volumes cannot be distinguished from random data). * Encryption algorithms: AES-256, Serpent, and Twofish. Mode of operation: XTS. Further information regarding features of the software may be found in the:http://www.truecrypt.org/
標(biāo)簽: open-source encryption Features software
上傳時(shí)間: 2013-12-20
上傳用戶:123啊
采用VHDL語(yǔ)言設(shè)計(jì)一個(gè)4通道的數(shù)據(jù)采集控制模塊。系統(tǒng)的功能描述如下: 1.系統(tǒng)主時(shí)鐘為100 MHz。 2.數(shù)據(jù)為16位-數(shù)據(jù)線上連續(xù)2次00FF后數(shù)據(jù)傳輸開(kāi)始。 3.系統(tǒng)內(nèi)部總線寬度為8位。 4.共有4個(gè)通道(ch1、ch2、ch3、ch4),每個(gè)通道配備100 Bytes的RAM,當(dāng)存滿數(shù)據(jù)后停止數(shù)據(jù)采集并且相應(yīng)通道的狀態(tài)位產(chǎn)生報(bào)警信號(hào)。 5.數(shù)據(jù)分為8位串行輸出,輸出時(shí)鐘由外部數(shù)據(jù)讀取電路給出。 6.具備顯示模塊驅(qū)動(dòng)功能。由SEL信號(hào)設(shè)置顯示的通道,DISPLAY信號(hào)啟動(dòng)所選通道RAM中數(shù)值的顯示過(guò)程。數(shù)值順次顯示一遍后顯示結(jié)束,可以重新設(shè)定SEL的值選擇下一個(gè)通道。模塊數(shù)據(jù)線為8位,顯示器件為4個(gè)8段LED。 7.數(shù)據(jù)采集模式如下:?jiǎn)瓮ǖ啦杉ㄓ蒘EL信號(hào)選擇通道),多通道順次采集(當(dāng)前通道采滿后轉(zhuǎn)入下一通道),多通道并行采集(每通道依次采集一個(gè)數(shù)據(jù))。模式由控制信號(hào)MODE選擇,采集數(shù)據(jù)的總個(gè)數(shù)由NUM_COLLECT給出。 8.數(shù)據(jù)采集過(guò)程中不能讀取,數(shù)據(jù)讀取過(guò)程中不能采集
上傳時(shí)間: 2013-12-25
上傳用戶:zycidjl
The SP486 and SP487 are low–power quad differential line drivers meeting RS-485 and RS-422 standards. The SP486 features a common driver enable control the SP487 provides independent driver enable controls for each pair of drivers. Both feature tri–state outputs and wide common–mode input range. Both are available in 16–pin plastic DIP and SOIC packages.
標(biāo)簽: differential and standard drivers
上傳時(shí)間: 2014-01-13
上傳用戶:tianyi223
Murphy 大俠 GPL 的 C++/x86 RTOS, 支持 MMU, 用戶/核心 模式區(qū)隔. http://hpc.ee.ntu.edu.tw/~murphy/me/EKernel.html part 2 of 3: user mode LIB
標(biāo)簽: EKernel Murphy murphy RTOS
上傳時(shí)間: 2013-12-23
上傳用戶:小鵬
cordic methods describe essentially the same algorithm that with suitably chosen inputs can be used to calculate a whole range of scientific functions including sin, cos, tan, arctan, arcsin, arccos, sinh, cosh, tanh, arctanh, log, exp, square root and even multiply and divide. the method dates back to volder [1959], and due to its versatility and compactness, it made possible the microcoding of the hp35 pocket scientific calculator in 1972. here is some code to illustrate the techniques. ive split the methods into three parts linear, circular and hyperbolic. in the hp35 microcode these would be unified into one function (for space reasons). because the linear mode can perform multiply and divide, you only need add/subtract and shift to complete the implementation. you can select in the code whether to do the multiples and divides also by cordic means. other multiplies and divides are all powers of 2 (these dont count). to eliminate these too, would involve ieee hackery.
標(biāo)簽: essentially algorithm describe suitably
上傳時(shí)間: 2017-03-02
上傳用戶:litianchu
介紹計(jì)算機(jī)上實(shí)現(xiàn)gsm modem短消息收發(fā)的模式,描述gsm modem PDU 模式,包括PDU 模式下的gsm modem模塊UCS2 編碼、解碼原理,以及gsm modem發(fā)送與接收PDU 串的編制方式, VB 中的MSCOMM 控件,實(shí)現(xiàn)gsm modem短消息收發(fā)的核心內(nèi)容。-briefed on computer modem gsm SMS transceiver model, described GSM modem PDU models, including the PDU mode GSM modem module UCS2 encoding, decoding principle, and GSM modems send and receive PDU Series presentation, the VB MSCOMM Control and achieve short GSM modem news transceiver core content
標(biāo)簽: modem gsm 計(jì)算機(jī) 收發(fā)
上傳時(shí)間: 2017-03-10
上傳用戶:cxl274287265
//獲得當(dāng)前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判斷是否支持該模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //取得信息 width = vga_getxdim[] height = vga_getydim[] colors = vga_getcolors[] //繪圖 for[i=0 i<colors i++]{ vga_setcolor[i] vga_drawline[0, i, width-1, i] }
標(biāo)簽: vga_getcurrentmode vga_init oldmode vga_ha
上傳時(shí)間: 2014-12-19
上傳用戶:maizezhen
//獲得當(dāng)前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判斷是否支持該模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //獲得當(dāng)前的模式 mode = vga_getcurrentmode[] info = vga_getmodeinfo[mode]
標(biāo)簽: vga_getcurrentmode vga_init oldmode vga_ha
上傳時(shí)間: 2017-03-24
上傳用戶:ecooo
full wave rectifierDuring the period from 偽 to 蟺, the input voltage vs input current is are positive and the power flows from supply to the load. The converter is said to be operated at rectification mode .During the period from 蟺 to 蟺+偽 , the input voltage vs is negative and the input current is is positive and reverse power flows from load to the supply. The converter is said to be operated in inversion mode. Depending on the value of 偽, average output voltage can be either positive or negative and hence provides 2 quadrant operation.
標(biāo)簽: input rectifierDuring the positive
上傳時(shí)間: 2017-04-10
上傳用戶:alan-ee
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1