本例展示了如何設置TIM工作在輸出比較-非主動模式(Output Compare Inactive mode),并產生相應的中斷。 TIM2時鐘設置為36MHz,預分頻設置為35999,TIM2計數器時鐘可表達為: TIM2 counter clock = TIMxCLK / (Prescaler +1) = 1 KHz 設置TIM2_CCR1寄存器值為1000, CCR1寄存器值1000除以TIM2計數器時鐘頻率1KHz,為1000毫秒。因此,經過1000毫秒的時延,置PC.06輸出為低電平。 同理,根據寄存器TIM2_CCR2 、TIM2_CCR3和 TIM2_CCR4的值,經過500毫秒的時延,置PC.07輸出為低電平;經過250毫秒的時延,置PC.08輸出為低電平;經過125毫秒的時延,置PC.09輸出為低電平。 輸出比較寄存器的值決定時延的大小,當計數器的值小于這個值的時候,點亮與PC.06-PC.09相連的LED;當計數器的值達到這個值得時候,產生中斷,在TIM2的4個通道相應的中斷里,把它們一一關閉。
標簽: Inactive Compare Output mode
上傳時間: 2013-12-20
上傳用戶:ghostparker
輸入、輸出功能,檢驗輸入的數是否為數字功能,ASCII碼與二進制數的的相互轉化功能,兩數相乘功能,因此整個程序定義了兩個宏INPUT和MULTIPLE,宏INPUT實現了輸入、檢驗和ASCII碼與二進制的相互轉換功能,MULTIPLE實現了兩數相乘功能,實現輸出功能的是子程序OUTPUT,由于在輸入的過程中多次用到了回車換行,因此定義了一個回車換行子程序CRLF。
上傳時間: 2017-02-08
上傳用戶:Ants
介紹NRF24L01的多通道(Multiple Pipes),其中文件nrf24l01.c實現此射頻芯片在多通道下的通信,多發單收,同樣提供了發、發的HEX文件便于實驗。
上傳時間: 2014-01-16
上傳用戶:小碼農lz
OC0 output mode 設定了pwm輸出控制選擇
上傳時間: 2013-12-26
上傳用戶:ynsnjs
Input : A set S of planar points Output : A convex hull for S Step 1: If S contains no more than five points, use exhaustive searching to find the convex hull and return. Step 2: Find a median line perpendicular to the X-axis which divides S into SL and SR SL lies to the left of SR . Step 3: Recursively construct convex hulls for SL and SR. Denote these convex hulls by Hull(SL) and Hull(SR) respectively. Step 4: Apply the merging procedure to merge Hull(SL) and Hull(SR) together to form a convex hull. Time complexity: T(n) = 2T(n/2) + O(n) = O(n log n)
標簽: contains Output convex planar
上傳時間: 2017-02-19
上傳用戶:wyc199288
Shows how Linux futex syscall can be used to distribute computation to multiple threads.
標簽: computation distribute multiple syscall
上傳時間: 2017-02-20
上傳用戶:dave520l
All of Java s Input/Output (I/O) facilities are based on streams, which provide simple ways to read and write data of different types. Java provides many different kinds of streams, each with its own application. The universe of streams is divided into four large categories: input streams and output streams, for reading and writing binary data and readers and writers, for reading and writing textual (character) data. You re almost certainly familiar with the basic kinds of streams--but did you know that there s a CipherInputStream for reading encrypted data? And a ZipOutputStream for automatically compressing data? Do you know how to use buffered streams effectively to make your I/O operations more efficient? Java I/O, 2nd Edition has been updated for Java 5.0 APIs and tells you all you ever need to know about streams--and probably more.
標簽: facilities streams provide Output
上傳時間: 2013-12-17
上傳用戶:6546544
This is an example applications that shows how to handle multiple touches at the same time on the iPhone.
標簽: applications the multiple example
上傳時間: 2013-12-20
上傳用戶:klin3139
In this project we analyze and design the minimum mean-square error (MMSE) multiuser receiver for uniformly quantized synchronous code division multiple access (CDMA) signals in additive white Gaussian noise (AWGN) channels.This project is mainly based on the representation of uniform quantizer by gain plus additive noise model. Based on this model, we derive the weight vector and the output signal-to-interference ratio (SIR) of the MMSE receiver. The effects of quantization on the MMSE receiver performance is characterized in a single parameter named 鈥漞quivalent noise variance鈥? The optimal quantizer stepsize which maximizes the MMSE receiver output SNR is also determined.
標簽: mean-square multiuser receiver project
上傳時間: 2014-11-21
上傳用戶:ywqaxiwang
Buck conveter used in power electronics to buck the output voltage
標簽: electronics conveter voltage output
上傳時間: 2013-11-26
上傳用戶:gonuiln