随笔分类 -  STM32

摘要:开发指南V1.0库函数版本,PWM DAC实验 350页 STM32 的定时器最快的计数频率是72Mhz,8 为分辨率的时候,PWM 频率为72M/256=281.25Khz。如果是1阶RC滤波,则要求截止频率为1.77Khz,如果为2阶RC滤波,则要求截止频率为22.34Khz.一阶RC滤波截止频率为什么是1.77Khz,二阶为什么是22.34Khz?怎么得来的?这两个频率和PWM频281,25Khz之间有什么关系?看了傅里叶展开,没看出他们之间的关系,很困惑,望原子指点.pwm dac生成时,其中的如果是1阶RC滤波,则要求截止频率为滤波为1.77Khz,如果为2阶RC滤波,则要求截止频率 阅读全文
posted @ 2013-09-29 19:40 IAmAProgrammer
摘要:STM32F10X FLASH Size SRAM Size Device Type-------------------------------------------------------------------------- STM32F100x4 16 KB 4 KB STM32F10X_LD_VL STM32F100x6 32 KB 4 KB STM32F10X_LD_VL STM32F100... 阅读全文
posted @ 2013-09-13 08:52 IAmAProgrammer
摘要:The STM32F401 line is the entry level to the STM32 F4 series. It is designed for medical, industrial and consumer applications requiring balanced performance and power efficiency with a high level of integration of embedded memories and peripherals inside packages as small as 3 x 3 mm, in the most c 阅读全文
posted @ 2013-09-12 14:53 IAmAProgrammer
摘要:http://www.taylorkillian.com/2013/01/retrieving-st-linkv2-firmware-from.htmlhttp://forum.easyelectronics.ru/viewtopic.php?f=17&t=6620&start=0Reversing proshivatelya ST-LinkFor what?I want to pull out the full firmware from apple cores to try to make a full Discovery (well, almost) ST-Link.Na 阅读全文
posted @ 2013-09-12 09:35 IAmAProgrammer
摘要:https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/DispForm.aspx?ID=18343&RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FSTM32F105%20PA9OTG_FS_VBUS%20IssuesISSUE 1: PA9/OTG_FS_VBUS +5V ToleranceWhen the STM32F105 is configured as a USB device, the PA9/ 阅读全文
posted @ 2013-08-17 16:10 IAmAProgrammer
摘要:http://www.st.com/web/en/resource/technical/document/application_note/CD00164185.pdfAN2586http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/CD00211314.pdfAN2834The device requires a 2.0 V to 3.6 V operating voltage supply (VDD). An embedded regulator is used t 阅读全文
posted @ 2013-08-10 14:10 IAmAProgrammer
摘要:如果需要使用一个GPIO既要用作输入也要用作输出的,可以将该引脚配置为Output-OpenDrain,同时在引脚上连接一个上拉电阻,可将它用作(准)双向输入输出口。输出时: GPIOx->ODR =输出值; 输入时: 读时先输出高电平(否则有可能因先前低电平输出锁死IO口为低电平),然后读. GPIOx->ODR = 0xFFFF; 变量 = GPIOx->IDR; 阅读全文
posted @ 2013-08-08 21:07 IAmAProgrammer
摘要:http://amarkham.com/?p=49 阅读全文
posted @ 2013-08-03 22:51 IAmAProgrammer
摘要:http://www.ti.com/lit/ds/symlink/sn74lvc1g29.pdf 阅读全文
posted @ 2013-07-27 13:22 IAmAProgrammer
摘要:The SILICA Xynergy-M4 Board combines an ARM Cortex-M4 based STMicroelectronics STM32F417 controller with a Xilinx Spartan-6 low-cost FPGA (XC6SLX16) in one design.There are numerous development tools for either ARM Cortex-M microcontrollers or FPGA kits, but this is the first module in the market th 阅读全文
posted @ 2013-07-26 19:12 IAmAProgrammer
摘要:http://bbs.ednchina.com/BLOG_ARTICLE_3013105.HTMLM2677,是TI公司生产的高效率5A开关buck稳压器,由于它内部具备的lowON-registerDMOS功率开关,使得它能够驱动大电流负载。LM2677有+3.3V、+5V、+12V和AJUSTABLE四个版本,其中AJUSTABLE的输出范围是1.2V~37V,使用它可以做一个可调的恒压源。官方手册中给出的AJUSTABLE典型应用电路如下:在上图中,R1固定为1K,选择不同的R2值,就能得到不同的输出电压。VOUT=VREF*(R1+R2)/R1其中VREF=1.21V。如果需要得到14 阅读全文
posted @ 2013-07-13 12:20 IAmAProgrammer
摘要:TL431作为一个高性价比的常用分流式电压基准,有很广泛的用途。图(1)是TL431的典型接法,输出一个固定电压值,计算公式是:Vout = ( (R1+R2) / R2 ) * 2.5 V同时R3的数值应该满足1mA < (Vcc-Vout)/R3 < 500mA当R1取值为0的时候,R2可以省略,这时候电路变成图(2)的形式TL431在这里相当于一个2.5V稳压管。MC1403是2.5V输出电压基准源,初始电压误差+-25mV,输入电压范围很宽,4.5V-40V的电压输入范围内都可以正常工作,工作电流1.2mA,输出驱动能力是10mA,典型温漂是10ppm/℃,8个引脚中1脚接 阅读全文
posted @ 2013-06-20 22:43 IAmAProgrammer
摘要:a) USB transfer speed of MSC-BOT (Mass-Storage Class - Bulk-Only Transport)MSC-BOT protocol has overhead to transfer data on both direction.READ10/WRITE10 SCSI commands are carried by this BOT protocol.CBW - Data transport (IN/OUT) - CSWWhen Host runs OHCI or UHCI host controller (as usual on PCs), 阅读全文
posted @ 2013-06-16 12:38 IAmAProgrammer
摘要:http://blog.frankvh.com/2011/08/18/stm32f2xx-dma-controllers/If you’re moving a bunch of data around, the DMA controllers are going to be your best friends. However they have their quirks and undocumented features. This post will describe what I’ve learned about them, and hopefully others can contri 阅读全文
posted @ 2013-05-23 23:36 IAmAProgrammer
摘要:/*The CRC calculation unit mainly consists of a single 32-bit data register, which:is used as an input register to enter new data in the CRC calculator(when writing into the register) holds the result of the previous CRC calculation(when reading the register)Each write operation into the data regist 阅读全文
posted @ 2013-04-28 18:36 IAmAProgrammer
摘要:CM3内核有16个中断,优先级通过 SCB->SHP[0]to SCB->SHP[11] 设置/****** Cortex-M3 Processor Exceptions Numbers ***************************************************/ N... 阅读全文
posted @ 2013-04-03 22:30 IAmAProgrammer
摘要:1 uint32_t calcCrc32(uint8_t* data, uint32_t len) 2 { 3 uint32_t* pBuffer = (uint32_t*) data; 4 uint32_t BufferLength = len/4; 5 uint32_t index... 阅读全文
posted @ 2013-01-09 22:19 IAmAProgrammer
摘要:Multiple USB CDC (USB IAD)One CDC function requires 2 IN / 1 OUT endpoints (interrupt IN/ bulk IN/ bulk OUT), other than the default EP.Available endp... 阅读全文
posted @ 2012-10-24 13:49 IAmAProgrammer
摘要:/** * @brief USBH_HandleControl * Handles the USB control transfer state machine * @param pdev: Selected device * @retval Status */USBH_Stat... 阅读全文
posted @ 2012-09-02 00:20 IAmAProgrammer