08 2015 档案

摘要:Comment comparisonThere is a wide variety of syntax styles for declaring comments in source code.BlockCommentin italics is used here to indicate block... 阅读全文
posted @ 2015-08-29 19:23 IAmAProgrammer 编辑
摘要:---恢复内容开始---OBDII Interface ProjectWhen I can ever find enough time away from schoolwork, I try to work on an OBDII compliant portable ScanTool. Howev... 阅读全文
posted @ 2015-08-29 19:22 IAmAProgrammer 编辑
摘要:ARM JTAG 调试原理JTAG的接口是一种特殊的4/5个接脚接口连到芯片上 ,所以在电路版上的很多芯片可以将他们的JTAG接脚通过Daisy Chain的方式连在一起,并且Probe只需连接到一个“JTAG端口”就可以访问一块印刷电路板上的所有IC。这些连接引脚是:TDI(测试数据输入)TDO(... 阅读全文
posted @ 2015-08-28 22:13 IAmAProgrammer 编辑
摘要:AVR Programming MethodsThere are many ways to program AVR microcontrollers.Since many people ask about different ones at one time or another, I though... 阅读全文
posted @ 2015-08-28 19:48 IAmAProgrammer 编辑
摘要:TIMx_CR1(控制寄存器1)9-8位:CKD[1:0]时钟分频因子,定义在定时器时钟(CK_INT)频率与数字滤波器(ETR,TIx)使用的采样频率之间的分频比例。 定义:00(tDTS = tCK_INT),01(tDTS = 2 x tCK_INT),10(tDTS = 4 x tCK_I... 阅读全文
posted @ 2015-08-28 00:34 IAmAProgrammer 编辑
摘要:首先,我们可以看到这个图大概有两个不分,一个部分是时钟源,另一个部分则是输入输出时钟源计数,到CNT计数器,然后根据捕获比较寄存器进行记录或比较。记录或比较有不同的配置。首先是TI信号TI1 TI2 TI3 TI4:这个信号就是外部信号,是直接与管脚相连的信号,图中还有一个问题就是TI1是可以是第一... 阅读全文
posted @ 2015-08-28 00:30 IAmAProgrammer 编辑
摘要:环境:iar arm 5.3stm32f103vbt6使用PA.8 外部输入10Mhz的方波。可从systick中断得到数据4.4×5000(预分频值)×1000(tick中断时间)=20MHz属于双边沿检测,一个PA.8个脉冲有2个边沿,所以时钟加倍。由于使用了TI1F_ED它的结构如下:void... 阅读全文
posted @ 2015-08-28 00:27 IAmAProgrammer 编辑
摘要:串口通信是经常使用到的功能,在STM32中UART具有DMA功能,并且收发都可以使用DMA,使用DMA发送基本上大家不会遇到什么问题,因为发送的时候会告知DMA发送的数据长度,DMA按照发送的长度直接发送就OK了,但是使用DMA接收时候就不同了,因为有时候数据接收并不是每一次都是定长的,但是DMA只... 阅读全文
posted @ 2015-08-27 23:16 IAmAProgrammer 编辑
摘要:http://www.cs.indiana.edu/~geobrown/book.pdfAn example of a basic timer is illustrated in Figure 10.1.This timer has four components – a controller, a... 阅读全文
posted @ 2015-08-27 22:22 IAmAProgrammer 编辑
摘要:Bus Blaster v4 design overviewBus Blaster v4 is an experimental, high-speed JTAG debugger for ARM processors, FPGAs, CPLDs, flash, and more. Thanks to... 阅读全文
posted @ 2015-08-27 18:49 IAmAProgrammer 编辑
摘要:https://en.wikipedia.org/wiki/Joint_Test_Action_GroupIn JTAG, devices expose one or moretest access ports(TAPs).The picture above shows three TAPs, wh... 阅读全文
posted @ 2015-08-27 18:18 IAmAProgrammer 编辑
摘要:用户在调试内嵌可综合内核的 CPU 如 ARM7TDMI-S 时,需要通过打开仿真器的自适应时钟功能。此时,ARM仿真器根据 RTCK 时钟信号的频率,产生可用于 CPU 内核当前时钟主频的最快的 TCK 时钟。即ARM 内核的时钟主频变化,引起 RTCK 变化,仿真器根据 RTCK 的变化,产生合... 阅读全文
posted @ 2015-08-27 17:42 IAmAProgrammer 编辑
摘要:New version released ! V2.45(Check version list for details)This construction is based on HappyJTAG Idea, to implement JTAG interface into target avr ... 阅读全文
posted @ 2015-08-27 14:45 IAmAProgrammer 编辑
摘要:用SWD调试接口测量代码运行时间关于时间测量的种种问题在嵌入式中,我们经常需要测量某段代码的执行时间或测量事件触发的时间,常规的思路是:1:在测量起始点,反转电平2:在测量结束点,再次反转电平然后通过示波器或者逻辑分析仪来测量反转间隔,也就是代码时间这种方法,在测量两个或多个时间信号同步的时候,非常... 阅读全文
posted @ 2015-08-27 14:36 IAmAProgrammer 编辑
摘要:JTAG was the traditional mechanism for debug connections for ARM7/9 parts, but with the Cortex-M family, ARM introduced the Serial Wire Debug (SWD) In... 阅读全文
posted @ 2015-08-27 14:31 IAmAProgrammer 编辑
摘要:https://www.computex.co.jp/eg/products/pdf/technical_pdf/arm_if01_gijutsu_eng.pdf 阅读全文
posted @ 2015-08-27 14:28 IAmAProgrammer 编辑
摘要:One of the basic needs of the embedded software development through the terminal to output debugging information, generally two ways to achieve:one is... 阅读全文
posted @ 2015-08-27 14:24 IAmAProgrammer 编辑
摘要:Being able to display values for counters, sensors and other debugging information is an important part of software development for microcontrollers. ... 阅读全文
posted @ 2015-08-27 14:17 IAmAProgrammer 编辑
摘要:ARM Cortex-M processor-based devices use the ARM CoreSight technologywhich introduces powerful newdebug and tracecapabilities.Debug features:Run Contr... 阅读全文
posted @ 2015-08-27 14:15 IAmAProgrammer 编辑
摘要:The JTAGkey is based on the FTDIChip FT2232L, is a USB 2.0 device and is used for:On-Chip DebuggingIn-System ProgrammingBoundary-Scan Testinghttp://ww... 阅读全文
posted @ 2015-08-27 14:10 IAmAProgrammer 编辑
摘要:http://avrobdii.googlecode.com/svn/trunk/code/J1850.c/* Copyright (C) Trampas Stern name of author This program is free software; you can redistribut... 阅读全文
posted @ 2015-08-27 09:31 IAmAProgrammer 编辑
摘要:78-WS2812-Library (STM32F4)//--------------------------------------------------------------// File : stm32_ub_ws2812.h//--------------------------... 阅读全文
posted @ 2015-08-27 00:29 IAmAProgrammer 编辑
摘要:stm-ledstrip : Driver and test routine for WS2811 RGB-LED #include "ws2812.h"#include #include #include #include #include static uint16_t PWM_Buffer[ ... 阅读全文
posted @ 2015-08-27 00:27 IAmAProgrammer 编辑
摘要:how to drive a WS2812 RGB LED using PWM and DMA#include void Delay(__IO uint32_t nCount){ while(nCount--) { }}#define TIM3_CCR1_Address 0x4000043... 阅读全文
posted @ 2015-08-26 23:55 IAmAProgrammer 编辑
摘要:0xWS2812 STM32 driver for WS2812(B) RGB LEDs0xWS2812 pronounced "hex-WS2812"This code aims at providing a basic interface to the WS2812(B) individuall... 阅读全文
posted @ 2015-08-26 23:48 IAmAProgrammer 编辑
摘要:Auto-reload register (TIMx_ARR)The auto-reload register is preloaded.Writing to or reading from the auto-reload registeraccesses the preload register.... 阅读全文
posted @ 2015-08-26 23:10 IAmAProgrammer 编辑
摘要:External Input Counter and External interrupt : count the input signal from the button.So what is the different between two methods ?While external in... 阅读全文
posted @ 2015-08-26 21:59 IAmAProgrammer 编辑
摘要:Bitbox : a small open, DIY 32 bit VGA consoleHi all,I've been developing a simple DIY console and a participant of the project and of this message boa... 阅读全文
posted @ 2015-08-26 20:12 IAmAProgrammer 编辑
摘要:One-wire Demo on the STM32F4 Discovery BoardSome of the devs at work were struggling to get their software talking to a Dallas 1-wire device. I rememb... 阅读全文
posted @ 2015-08-26 20:02 IAmAProgrammer 编辑
摘要:VGA Signal Timing640 x 350VGA 640x350@70 Hz (pixel clock 25.175 MHz)VESA 640x350@85 Hz (pixel clock 31.5 MHz)640 x 400VGA 640x400@70 Hz (pixel clock 2... 阅读全文
posted @ 2015-08-26 20:00 IAmAProgrammer 编辑
摘要:VGA Output from STM32F4 Discovery boardI love the web!There are so many cool projects out there, and some, with a tweak or two,get me where I want to ... 阅读全文
posted @ 2015-08-26 19:55 IAmAProgrammer 编辑
摘要:STM32通用定时器的几种配置方式//------------------------------------------------------------------------------// 1、普通定时使用#include"stm32f10x.h"#include"time.h"stati... 阅读全文
posted @ 2015-08-26 18:49 IAmAProgrammer 编辑
摘要:TIMER门控模式控制PWM输出长度参照一些网友代码做了些修改,由TIM4来控制TIM2的PWM输出长度,采用主从的门控模式,即TIM4输出高时候TIM2使能输出//TIM2 PWM输出,由TIM4来控制其输出与停止//frequency_tim2:TIM2 PWM输出周期:KHz//duty_ti... 阅读全文
posted @ 2015-08-26 18:45 IAmAProgrammer 编辑
摘要:Timers TIM1 and TIM8 use 16-bit counters and are the most complex timers of all timers included in the microcontroller.Timers TIM2 and TIM5 are 32-bit... 阅读全文
posted @ 2015-08-26 18:29 IAmAProgrammer 编辑
摘要:STM32F103ZET6 用定时器级联方式输出特定数目的PWMSTM32F103ZET6里共有8个定时器,其中高级定时器有TIM1-TIM5、TIM8,共6个。这里需要使用定时器的级联功能,ST的RM0008 REV12的P388和P399页上有说明对于特定的定时器,怎么去选择级联功能,参见表86... 阅读全文
posted @ 2015-08-26 18:11 IAmAProgrammer 编辑
摘要:使用36-pin的STM32输出VGA手头上有个项目需要通过单片机来控制将图像显示在LCD上,在网上搜了一阵子,发现都是使用的FPGA做的,开始自己对FPGA不是很熟,一直在用的也是ARM系列的,终于让我找到一份至少现在看起来还是含金量蛮高的资料,因为是英文的,这边先将它翻译一下(原文链接)。 想... 阅读全文
posted @ 2015-08-26 17:46 IAmAProgrammer 编辑
摘要:彩色阴极射线管的剖面图:1.电子QIANGThree Electron guns (for red, green, and blue phosphor dots)2.电子束Electron beams3.聚焦线圈Focusing coils4.偏向线圈Deflection coils5.阳极接点An... 阅读全文
posted @ 2015-08-26 16:47 IAmAProgrammer 编辑
摘要:The Timers can be cascaded to make more complex timing relationships, or longer periods.Internally only some timers can trigger others.This is a Maste... 阅读全文
posted @ 2015-08-25 23:11 IAmAProgrammer 编辑
摘要:PSoC 5 supports programming through the serial wire debug (SWD) interface.There are two signals in SWD interface: data signal (SWDIO) and a clock for ... 阅读全文
posted @ 2015-08-25 11:55 IAmAProgrammer 编辑
摘要:STM32 SPI DMA 的使用 一是想总结一下SPI总线的特点与注意点,二是总结一下SPI DMA的使用一、SPI信号线说明 通常SPI通过4个引脚与外部器件相连:MISO:主设备输入/从设备输出引脚。该引脚在从模式下发送数据,在主模式下接收数据。MOSI:主设备输出/从设备输入引脚。该引脚在... 阅读全文
posted @ 2015-08-25 04:23 IAmAProgrammer 编辑
摘要:The STM32 SPI and FPGA communicationSTM32 spi bus communicationSPI bus in the study, the protocol and hardware description is not to say that the four... 阅读全文
posted @ 2015-08-25 04:16 IAmAProgrammer 编辑
摘要:HOWTO: Use STM32 SPI half duplex modeI’ve got my hands onto some STM32F030F4P6 ARM-Cortex M0 processors.Though touted as “32 cents 32-bit micro”, it i... 阅读全文
posted @ 2015-08-25 04:13 IAmAProgrammer 编辑
摘要:NSS分为内部引脚和外部引脚。NSS外部引脚可以作为输入信号或者输出信号,输入信号一般用作硬件方式从机的片选,而输出信号一般用于主SPI去片选与之相连的从SPI。NSS从设备选择有两种模式:1、软件模式可以通过设置SPI_CR1寄存器的SSM位来使能这种模式,当它为1时,NSS引脚上的电平由SSI决... 阅读全文
posted @ 2015-08-25 04:08 IAmAProgrammer 编辑
摘要:Open JTAG Project is an open source hardware and software for a high speed USB JTAG tool.In this site, you can find and download all necesary files to... 阅读全文
posted @ 2015-08-25 02:26 IAmAProgrammer 编辑
摘要:AboutOpenOCD was created by Dominic Rath as part of a 2005 diploma thesis written at the University of Applied Sciences Augsburg (http://www.hs-augsbu... 阅读全文
posted @ 2015-08-25 02:23 IAmAProgrammer 编辑
摘要:Correctly installing OpenOCD includes making your operating system give OpenOCD access to debug adapters. Once that has been done, Tcl commands are us... 阅读全文
posted @ 2015-08-25 02:22 IAmAProgrammer 编辑
摘要:OpenOCD 0.9.0 releaseMay 18th, 2015I’m happy to announce the release of OpenOCD version 0.9.0, finally!It tooks us a bit more than a year but the list... 阅读全文
posted @ 2015-08-25 02:16 IAmAProgrammer 编辑
摘要: 阅读全文
posted @ 2015-08-25 02:09 IAmAProgrammer 编辑
摘要:http://hackaday.com/2014/01/23/arm-debugger-for-nearly-one-dollar/Oh that title is so misleading.But if you squint your eyes and scratch your noggin i... 阅读全文
posted @ 2015-08-25 02:08 IAmAProgrammer 编辑
摘要:SW-DP (Serial Wire Debug Port) Analyzer plugin for the Saleae LogicThe SW-DP protocol is described by the following publicly available documents:DDI 0... 阅读全文
posted @ 2015-08-25 01:54 IAmAProgrammer 编辑
摘要:Serial Wire Debug interfaceThe Serial Wire Debug protocol operates with a synchronous serial interface.This uses a single bidirectional datasignal, an... 阅读全文
posted @ 2015-08-25 01:40 IAmAProgrammer 编辑
摘要:Dapper MiserIn late 2013, I created a functional implementation of CMSIS-DAP that runs in a low cost ~$1 PIC16F1454 microcontroller.My interest was se... 阅读全文
posted @ 2015-08-25 01:38 IAmAProgrammer 编辑
摘要:Master configuration When a timer is selected as a master timer, the corresponding trigger output signalis used by the slave internal trigger (when co... 阅读全文
posted @ 2015-08-25 00:52 IAmAProgrammer 编辑
摘要:For most embedded CPU architecture implementations, the JTAG port is used by the debugger to interfacethe chip for debugging one or more cores.The nor... 阅读全文
posted @ 2015-08-24 01:45 IAmAProgrammer 编辑
摘要:JTAG SimplifiedSo the other day, I explored the JTAG bus interface which is frequently found in CPLDs/FPGAs and is most of the times the sole method o... 阅读全文
posted @ 2015-08-24 01:17 IAmAProgrammer 编辑
摘要:A transition between the states only occurs on the rising edge of TCK, and each state has a different name.The two vertical columns with seven states ... 阅读全文
posted @ 2015-08-24 01:15 IAmAProgrammer 编辑
摘要:This document provides you with interesting background information about the technology that underpins XJTAG. You do not need to know any of this howe... 阅读全文
posted @ 2015-08-24 00:58 IAmAProgrammer 编辑
摘要:参考:STM32的PWM输入模式设置并用DMA接收数据Input capture modeThe input stage samples the corresponding TIx input to generate a filtered signal TIxF.Then, an edge dete... 阅读全文
posted @ 2015-08-23 21:51 IAmAProgrammer 编辑
摘要:Bits 15:13 Reserved, must be kept at reset value.Bits 12:8 DBL[4:0]: DMA burst lengthThis 5-bit vector defines the number of DMA transfers(the timer d... 阅读全文
posted @ 2015-08-23 21:49 IAmAProgrammer 编辑
摘要:1 Debug Interface Overview1.1 Serial Wire DebugSerial Wire Debug (SWD) is a two-wire protocol for accessing the ARM debug interface.It is part ofthe A... 阅读全文
posted @ 2015-08-23 19:38 IAmAProgrammer 编辑
摘要:详解SPI中的极性CPOL和相位CPHASPI由于接口相对简单(只需要4根线),用途算是比较广泛,主要应用在 EEPROM,FLASH,实时时钟,AD转换器,还有数字信号处理器和数字信号解码器之间。即一个SPI的Master通过SPI与一个从设备,即上述的那些Flash,ADC等,进行通讯。而主从设... 阅读全文
posted @ 2015-08-23 15:00 IAmAProgrammer 编辑
摘要:TimingTool - The Timing DiagramTimingTool is designed to give electronics engineers an easy to use graphical interface for enteringand editing timing ... 阅读全文
posted @ 2015-08-23 12:16 IAmAProgrammer 编辑
摘要:LPC-Link 2is an extensible, stand-alone debug adapter that can be configured to support various development toolsand IDEs by downloadable firmwares.Av... 阅读全文
posted @ 2015-08-23 09:32 IAmAProgrammer 编辑
摘要:SWD and JTAG selection mechanismSWJ-DP enables either an SWD or JTAG protocol to be used on the debug port.To do this, it implements a watcher circuit... 阅读全文
posted @ 2015-08-23 01:25 IAmAProgrammer 编辑
摘要:The BGND interface provides the standard 6 pin connection for the single wire BGND signal type development port.Target types that apply this developme... 阅读全文
posted @ 2015-08-23 01:03 IAmAProgrammer 编辑
摘要://=================================================================================// ARM SWD Mode Port Bit masks//#if (HW_CAPABILITY&CAP_SWD_HW)#ifnd... 阅读全文
posted @ 2015-08-22 23:38 IAmAProgrammer 编辑
摘要:cmsis dap interface firmwareThe source code of the mbed HDK (tools + libraries) is available in this repository:https://github.com/mbedmicro/CMSIS-DAP... 阅读全文
posted @ 2015-08-22 22:36 IAmAProgrammer 编辑
摘要:Serial Wire Debugging the STM32 via the Bus Pirate2 October 2010Step 1 - The Bus PirateStep 2 - Debug Port CommunicationsStep 3 - Access Port Communic... 阅读全文
posted @ 2015-08-22 21:32 IAmAProgrammer 编辑
摘要:IBDAP-CMSIS-DAPArmstart's CMSIS-DAP firmware implementation in gcc and makefile.http://www.armstart.comIBDAPis a fully CMSIS-DAP compatible debug adap... 阅读全文
posted @ 2015-08-22 21:13 IAmAProgrammer 编辑
摘要:Introducing swddudeI love the ARM Cortex-M series of microcontrollers. The sheer computational power they pack into a teensy, low-power package is alm... 阅读全文
posted @ 2015-08-22 21:10 IAmAProgrammer 编辑
摘要:VersaloonFull open-source(GPLv3) platform for multiple applications, including programmer, debugger, logic tester, logic analyzer, simple oscilloscope... 阅读全文
posted @ 2015-08-22 21:02 IAmAProgrammer 编辑
摘要:Implementation of Serial Wire JTAG flash programming in ARM Cortex M3ProcessorsThe goal of the project was to use the Serial Wire JTAG protocol implem... 阅读全文
posted @ 2015-08-22 20:57 IAmAProgrammer 编辑
摘要:USBDM BDM Interface for Freescale Microcontroller -- HardwareAdapter_4_0_0 - Adapter for Coldfire -> KinetisJMxx_PCB_4_0_0 - JMxx based BDMs (current ... 阅读全文
posted @ 2015-08-22 20:43 IAmAProgrammer 编辑
摘要:USBDM BDM Interface for Freescale Microcontroller -- FirmwareBDM firmware for USBDM BDMsRefer to sourceforge for release filesRelease files:http://sou... 阅读全文
posted @ 2015-08-22 20:30 IAmAProgrammer 编辑
摘要:Construction.Build the hardware using the information provided in thePCBdownload.The following are provided:PDFs including the circuit diagrams with p... 阅读全文
posted @ 2015-08-22 19:57 IAmAProgrammer 编辑
摘要:Installation of USBDM for WindowsUnder Windows, installation is done with a standard Windows MSI fileUSBDM_X_X_X_X_Win.msi.Download from:USBDM Sourcef... 阅读全文
posted @ 2015-08-22 19:54 IAmAProgrammer 编辑
摘要:Installation of USBDM USB drivers for WindowsThere are four installers provided:USBDM_Drivers_x_x_x_WinXP_x32.msi- Windows XP 32-bitUSBDM_Drivers_x_x_... 阅读全文
posted @ 2015-08-22 19:54 IAmAProgrammer 编辑
摘要:IntroductionUSBDM is a debugger hardware interface for a range of Freescale microcontrollers. It is designed to work with Freescale's Codewarrior soft... 阅读全文
posted @ 2015-08-22 19:51 IAmAProgrammer 编辑
摘要:IntroductionThe attached files provide a port of a combined TBDML/OSBDM code to a MC9S08JS16 processor.The primary motivation for this was to produce ... 阅读全文
posted @ 2015-08-22 19:22 IAmAProgrammer 编辑
摘要:IntroductionThe attached files provide a port of a combined TBLCF/DSC code to a MC9S08JS16 processor. The primary motivation for this was to produce a... 阅读全文
posted @ 2015-08-22 19:16 IAmAProgrammer 编辑
摘要:IntroductionThe attached files provide a port of a combined TBDML/OSBDM/TBLCF code to a MC9S08JM16/32/60 processor. The primary motivation for this wa... 阅读全文
posted @ 2015-08-22 19:15 IAmAProgrammer 编辑
摘要:IntroductionThe FRM-xxxx boards from Freescale includes a minimal SWD based debugging interface for ARM Kinetis targets.The interface hardware is simp... 阅读全文
posted @ 2015-08-22 19:12 IAmAProgrammer 编辑
摘要:The mbed HDK and mbed-enabled hardware support the CMSIS-DAP debug interface, which consists of an abstraction of the Cortex Debug Access Port (DAP) c... 阅读全文
posted @ 2015-08-22 18:26 IAmAProgrammer 编辑
摘要:https://github.com/MarkDing/swd_programing_sram//// Copyright (c) 2013 SILICON LABORATORIES, INC.//// FILE NAME : 32bit_prog_defs.h// DESCRIPTION ... 阅读全文
posted @ 2015-08-22 17:45 IAmAProgrammer 编辑
摘要:I want to setup an application, where a single trigger-factor (compare-match of a timer) shall request mutliple DMA streams (I.e. set new timer-value ... 阅读全文
posted @ 2015-08-22 00:11 IAmAProgrammer 编辑
摘要:This is a more free standing example measuring the LSI (TIM5_CH4 internally)and demonstrating DMA/TIM capture with granularity of APB1 * 2// STM32F4-D... 阅读全文
posted @ 2015-08-22 00:08 IAmAProgrammer 编辑
摘要:Hello,I'm working with a STM32F407 controller board.Right now, I want to trigger a DMA transfer with one of the internal timers (TIM1). The DMA transf... 阅读全文
posted @ 2015-08-22 00:04 IAmAProgrammer 编辑
摘要:Ok, so quickly mashing up another example using a different TIM, DMA Stream/Channel for illustration,outputting via GPIOC[0..7] although PC0 is confli... 阅读全文
posted @ 2015-08-21 23:57 IAmAProgrammer 编辑
摘要:Data transfer from GPIO port to RAM buffer using DMA upon receiving a trigger signal on the timer capture input channel.Our requirement is to configur... 阅读全文
posted @ 2015-08-21 23:53 IAmAProgrammer 编辑
摘要:The DMA channels can also work without being triggered by a request from a peripheral.This mode is called Memory to Memory mode.If the MEM2MEM bit in ... 阅读全文
posted @ 2015-08-21 23:45 IAmAProgrammer 编辑
摘要:http://www.efton.sk/STM32/bt.c// Timer-triggered memory-to-memory DMA transfer demonstrator for STM32F4xx (probably good enough for STM32F2xx too)// N... 阅读全文
posted @ 2015-08-21 23:42 IAmAProgrammer 编辑
摘要:/******************************************************************************* 编译环境: EWARM V5.30 硬件环境: DZY2.PCB STM32 FW: V3.0.0 作者 : szlihongtao ... 阅读全文
posted @ 2015-08-21 19:56 IAmAProgrammer 编辑
摘要:参考 :STM32输入捕获模式设置并用DMA接收数据PWM input modeThis mode is a particular case of input capture mode.The procedure is the same except: Two ICx signals are ma... 阅读全文
posted @ 2015-08-21 19:04 IAmAProgrammer 编辑
摘要:Serial Wire Debug (SWD) provides a debug port for severely pin limited packages,often the case for small package microcontrollers but also complex ASI... 阅读全文
posted @ 2015-08-21 18:46 IAmAProgrammer 编辑
摘要:AN2820 Driving bipolar stepper motors using a medium-density STM32F103xx microcontrollerIntroductionThis application note describes how to achieve com... 阅读全文
posted @ 2015-08-21 17:57 IAmAProgrammer 编辑
摘要:1. RequirementsTo generate a PWM output, we need to create a train of pulses with constant period and variable duty cycle.The dutycycle, being the mod... 阅读全文
posted @ 2015-08-21 17:21 IAmAProgrammer 编辑
摘要:AN2548 --使用 STM32F101xx 和 STM32F103xx 的 DMA 控制器DMA控制器DMA是AMBA的先进高性能总线(AHB)上的设备,它有2个AHB端口:一个是从端口,用于配置DMA,另一个是主端口,使得DMA可以在不同的从设备之间传输数据。DMA的作用是在没有Cortex-... 阅读全文
posted @ 2015-08-21 17:11 IAmAProgrammer 编辑
摘要:Reading string descriptors: String (0x01): "Travis Robinson" String (0x02): "Benchmark Device" String (0x03): "LUSBW1" String (0xEE): "MSF... 阅读全文
posted @ 2015-08-21 15:30 IAmAProgrammer 编辑
摘要:Microsoft OS DescriptorsUpdated: April 11, 2014USB devices store standard descriptors in firmware for the device, and its interfaces and endpoints. In... 阅读全文
posted @ 2015-08-21 15:27 IAmAProgrammer 编辑
摘要:WCID DevicesWhat is WCID?AWCID device, where WCID stands for "WindowsCompatibleID", is an USB device that provides extra information to a Windows syst... 阅读全文
posted @ 2015-08-21 15:25 IAmAProgrammer 编辑
摘要:Special processing on the client is needed when processing TS_URB_OS_FEATURE_DESCRIPTOR_REQUEST.The following describes how to get the OS-specific str... 阅读全文
posted @ 2015-08-21 15:20 IAmAProgrammer 编辑
摘要: 阅读全文
posted @ 2015-08-21 15:06 IAmAProgrammer 编辑
摘要:How can you add extra hardwareUARTsto a 32bit TMS470ARM7-basedmicrocontrollerat zero cost?Solution: Designers can use the high-end timer (HET) periphe... 阅读全文
posted @ 2015-08-21 14:34 IAmAProgrammer 编辑
摘要:USB with NXP MicrocontrollersNXP AdvantagesNXP's microcontroller portfolio features the latest USB technologies, including full- and high-speed USB 2.... 阅读全文
posted @ 2015-08-17 00:41 IAmAProgrammer 编辑
摘要:/* * http://www-graphics.stanford.edu/~seander/bithacks.html#ReverseByteWith64Bits * * 0010 0100 -- 24 * 0010 0001 -- 21 * 1111 0000 -- F0 * 0111 11... 阅读全文
posted @ 2015-08-15 22:09 IAmAProgrammer 编辑
摘要:The STM32F4xx are able to handle external or internal events in order to wake up the core (WFE).The wakeup event can be generated either by:(I've remo... 阅读全文
posted @ 2015-08-12 20:49 IAmAProgrammer 编辑
摘要:STM32 GPIO 配置之ODR, BSRR, BRR 详解用stm32 的配置GPIO 来控制LED 显示状态,可用ODR,BSRR,BRR 直接来控制引脚输出状态.ODR寄存器可读可写:既能控制管脚为高电平,也能控制管脚为低电平。管脚对于位写1 gpio 管脚为高电平,写 0 为低电平BSRR... 阅读全文
posted @ 2015-08-12 12:59 IAmAProgrammer 编辑
摘要:Understanding the STM32F0's GPIOThis is the first part of the GPIO tutorial for the STM32F0Discovery.The tutorial will include the following topics:Un... 阅读全文
posted @ 2015-08-12 12:38 IAmAProgrammer 编辑
摘要:STM32F4 External interruptsEach STM32F4 device has 23 external interrupt or event sources.They are split into 2 sections.First interrupt section is fo... 阅读全文
posted @ 2015-08-12 11:40 IAmAProgrammer 编辑
摘要:Calculate CAN bit timing parametersCalculate CAN bit timing parameterstypedef struct{ //char name[ 16 ]; // Name of the CAN controller... 阅读全文
posted @ 2015-08-11 12:23 IAmAProgrammer 编辑
摘要:算法思想简单描述:在插入第i个元素时,对前面的0~i-1元素进行折半,先跟他们 中间的那个元素比,如果小,则对前半再进行折半,否则对后半 进行折半,直到left>right,然后再把第i个元素前1位与目标位置之间 的所有元素后移,再把第i个元素放在目标位置上。 二分法排序最重要的一个步骤就是查... 阅读全文
posted @ 2015-08-10 23:00 IAmAProgrammer 编辑
摘要:Identifier filteringIn the CAN protocol the identifier of a message is not associated with the address of a nodebut related to the content of the mess... 阅读全文
posted @ 2015-08-10 02:37 IAmAProgrammer 编辑
摘要:Canbus ID filter and maskCANBUS is a two-wire, half-duplex, bus based LANsystem that is ‘collision free’. Data is BROADCAST onto the bus -THERE IS NO ... 阅读全文
posted @ 2015-08-10 01:39 IAmAProgrammer 编辑
摘要:Calculate CAN bit timing parametersTSYNC_SEG=== 1TSEG1 = Prop_Seg + Phase_Seg1TSEG2 = Phase_Seg2TBit = TSYNC_SEG + TSEG1 + TSEG2( TBit - TSEG2 ) / TBi... 阅读全文
posted @ 2015-08-10 00:22 IAmAProgrammer 编辑
摘要:Sometimes you have a CAN equipped processor on a low cost board but it has no CAN transceiver chips.Here is a method that can be used to create a smal... 阅读全文
posted @ 2015-08-09 12:46 IAmAProgrammer 编辑
摘要:/* ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file exce... 阅读全文
posted @ 2015-08-09 12:01 IAmAProgrammer 编辑
摘要:Detailed DescriptionGeneric CAN Driver.This module implements a generic CAN (Controller Area Network) driver allowing the exchange of information at f... 阅读全文
posted @ 2015-08-09 11:29 IAmAProgrammer 编辑
摘要:#define GPIO_AF0_MCO // MCO (MCO1 and MCO2) Alternate Function mapping#define GPIO_AF0_RTC_50Hz // RTC_50Hz Alternate F... 阅读全文
posted @ 2015-08-09 00:30 IAmAProgrammer 编辑
摘要:http://forums.xilinx.com/t5/Configuration/Spartan6-slave-SelectMap-configuration-fails-owing-to-JTAG/td-p/504815I have a board with a XC6SLX9 which is... 阅读全文
posted @ 2015-08-08 13:52 IAmAProgrammer 编辑
摘要:STM32F4: Generating parallel signals with the FSMCThe goal:The memory controller can be used to generate a "generic" 16-bit parallel data stream with ... 阅读全文
posted @ 2015-08-08 13:33 IAmAProgrammer 编辑
摘要:STM32F4xx official page:http://www.st.com/internet/mcu/subclass/1521.jspIntroductionFPU - Floating point benefitsDSP - benefitsPricePortfolioTutorialA... 阅读全文
posted @ 2015-08-08 13:18 IAmAProgrammer 编辑
摘要:STM32F4 USB Composite CDC + MSCI'm in the process of building a USB composite CDC + MSC device on the STM32F4 Discovery board but am having trouble ge... 阅读全文
posted @ 2015-08-08 01:44 IAmAProgrammer 编辑
摘要:AT91 USB Composite Driver Implementation1. Introduction The USB Composite Device is a general way to integrate two or more functions into one single d... 阅读全文
posted @ 2015-08-08 01:35 IAmAProgrammer 编辑
摘要:Communication Device Class,简称CDCUSB Compound Device,USB复合设备USB Composite Device,USB组合设备摘要USB复合设备Compound Device内嵌Hub和多个Function,每个Function都相当于一个独立的USB... 阅读全文
posted @ 2015-08-07 23:56 IAmAProgrammer 编辑
摘要:D:\Workspace\........\RTE\Device>STM32CubeMX.exe -s project.script -tpl_path C:\Keil5\ARM\Pack\Keil\STM32F4xx_DFP\2.5.0\MDK\CubeMX\ -dest_path [D:\Wor 阅读全文
posted @ 2015-08-07 19:48 IAmAProgrammer 编辑
摘要:USB2.0是向下兼容USB1.X的,即USB2.0支持高速,全速,低速的USB设备(HIGH-SPEED,FULL-SPEED,LOW-SPEED),而USB1.X不支持高速设备。因此如果高速设备接在USB1.X的hub上,也只能工作在全速状态。因此对速度的识别是很重要的,否则没办法以想要的速度通... 阅读全文
posted @ 2015-08-06 23:09 IAmAProgrammer 编辑
摘要:STM32 USB-FS-Device development kitCompatible with theSTM32F102xx and STM32F103xx series,STM32 L1 Ultra Low Power,STM32 F3 SeriesUSB On-The-Go host an... 阅读全文
posted @ 2015-08-06 18:19 IAmAProgrammer 编辑
摘要:Hi guys,I am in need of your help, unfortunately STs documentation is lacking some information here.I am basically trying to implement a USB device (C... 阅读全文
posted @ 2015-08-06 17:11 IAmAProgrammer 编辑
摘要:A task may be in one of several states at any given time. When a task is created, it isplaced into the READY state.A task in the READY state is activa... 阅读全文
posted @ 2015-08-06 11:11 IAmAProgrammer 编辑
摘要:1、ST官方正式出版了两种仿真器:ST-LINK、ST-LINK/V2,其他型号(ST-LINK II,ST-LINK III,…)要么是国内公司生产,要么是开发板自带的;2、在ST官网ST-LINK的状态为NRND(not recommended for new designs),官方已经不建议在... 阅读全文
posted @ 2015-08-05 00:52 IAmAProgrammer 编辑
摘要:There are two kinds of errors that Basis can find.Syntaxerrors occur during the parsing of input code, and are caused by grammatically incorrect state... 阅读全文
posted @ 2015-08-04 23:55 IAmAProgrammer 编辑
摘要:https://developer.mbed.org/platforms/ST-Discovery-F746NG/Microcontroller featuresSTM32F46NGH6 in TFBGA216 packageARM®32-bit Cortex®-M7 + FPU + Chrom-A... 阅读全文
posted @ 2015-08-04 15:02 IAmAProgrammer 编辑
摘要:Overview of HAL driversThe HAL drivers were designed to offer a rich set of APIs and to interact easily with theapplication upper layers.Each driver c... 阅读全文
posted @ 2015-08-04 11:33 IAmAProgrammer 编辑
摘要:指针变量可以指向一个结构数组,这时结构指针变量的值是整个结构数组的首地址。结构指针变量也可指向结构数组的一个元素,这时结构指针变量的值是该结构数组元素的首地址。设ps为指向结构数组的指针变量,则ps也指向该结构数组的0号元素,ps+1指向1号元素,ps+i则指向i号元素。这与普通数组的情况是一致的。... 阅读全文
posted @ 2015-08-03 00:55 IAmAProgrammer 编辑
摘要:The bootloader is stored in the internal boot ROM memory (system memory) of STM32 devices.It is programmed by ST during production.Its main task is to... 阅读全文
posted @ 2015-08-02 21:03 IAmAProgrammer 编辑

点击右上角即可分享
微信分享提示