-
GPIBUtility
GPIButility是ADLINK公司的GPIB驱动所带的工具软件,可以自动获得所有GPIB设备信息并可作相应的各项参数设置。(ADLINK' s GPIButility is brought GPIB driver software tool that can automatically access to all GPIB device information and can set the parameters accordingly.)
- 2009-09-11 08:52:32下载
- 积分:1
-
T200071012217h
此源码为线性相位滤波的vhdl源码与设计心的体会,理论分分析与工程实践总结相结合,有非常大的参考价值 可直接使用。
(The source for the linear phase filter VHDL source code and design of the heart experience, theoretical analysis to summarize the combination of engineering practice, a very large reference value can be used directly.)
- 2012-07-10 16:08:08下载
- 积分:1
-
book63
说明: c语言编程指南。c语言程序设计及应用实例
(Guide. C Programming Language Design and Application)
- 2006-03-27 17:44:57下载
- 积分:1
-
NUC501_datasheet_A1.4
适合使用NUVOTON nuc501 做开发的参考。(The NUC501 is an ARM7TDMI-based MCU, specifically designed to offer low-cost and high-performance for various applications, like interactive toys, edutainment robots, and home appliances. It integrates the 32-bit RISC CPU with 32KB high-speed SRAM, crypo engine with OTP key, boot ROM, LDO regulator, ADC, DAC, I2C, SPI, USB2.0 FS Device, & GPIO into a cost-affordable whil feature-rich micro-controller.)
- 2010-10-29 18:01:47下载
- 积分:1
-
M051_PWM
M051微处理器的定时器接口设置为pwm功能(M051 microprocessor interface is set to pwm timer function)
- 2013-06-05 16:39:27下载
- 积分:1
-
WPF 画图示例 以及多个图形重复利用示例源码下载
Drawing Shapes 绘制各种图形示例
- 2013-10-03下载
- 积分:1
-
EDA365_Skill
说明: cadence pcb设计工具的增强功能(Enhancement of cadence PCB design tool)
- 2021-03-16 17:53:36下载
- 积分:1
-
FreeRTOS+FreeModbus+STM32F107VC
/*
* FreeModbus Libary: BARE Port
* Copyright (C) 2006 Christian Walter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* File: $Id: porttimer.c,v 1.1 2006/08/22 21:35:13 wolti Exp $
*/
/* ----------------------- Platform includes --------------------------------*/
#include
#include "port.h"
/* ----------------------- Modbus includes ----------------------------------*/
#include "mb.h"
#include "mbport.h"
/* ----------------------- static functions ---------------------------------*/
static void prvvTIMERExpiredISR( void );
/* ----------------------- Start implementation -----------------------------*/
BOOL
xMBPortTimersInit( USHORT usTim1Timerout50us )
{
NVIC_InitTypeDef NVIC_InitStructure;
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
USHORT PrescalerValue = 0;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
/* Enable the TIM5 gloabal Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = TIM5_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
/* TIM5 clock enable */
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM5, ENABLE);
PrescalerValue = (USHORT) (SystemCoreClock / 20000) - 1;
TIM_TimeBaseStructure.TIM_Period = usTim1Timerout50us;
TIM_TimeBaseStructure.TIM_Prescaler = PrescalerValue;
TIM_TimeBaseStructure.TIM_ClockDivision = 0;
TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;
TIM_TimeBaseInit(TIM5, &TIM_TimeBaseStructure);
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
//TIM_ITConfig(TIM5, TIM_IT_Update, DISABLE);
//TIM_Cmd(TIM5, ENABLE);
return TRUE;
}
void vMBPortTimersEnable( void )
{
/* Enable the timer with the timeout passed to xMBPortTimersInit( ) */
ENTER_CRITICAL_SECTION();
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
TIM_ITConfig(TIM5, TIM_IT_Update, ENABLE);
TIM_SetCounter(TIM5, 0x0000);
TIM_Cmd(TIM5, ENABLE);
EXIT_CRITICAL_SECTION();
}
void vMBPortTimersDisable( void )
{
/* Disable any pending timers. */
ENTER_CRITICAL_SECTION();
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
TIM_ITConfig(TIM5, TIM_IT_Update, DISABLE);
TIM_SetCounter(TIM5, 0x0000);
TIM_Cmd(TIM5, DISABLE);
EXIT_CRITICAL_SECTION();
}
/* Create an ISR which is called whenever the timer has expired. This function
* must then call pxMBPortCBTimerExpired( ) to notify the protocol stack that
* the timer has expired.
*/
static void prvvTIMERExpiredISR( void )
{
( void )pxMBPortCBTimerExpired( );
}
void TIM5_IRQHandler(void)
{
if (TIM_GetITStatus(TIM5, TIM_IT_Update) == SET) {
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
prvvTIMERExpiredISR();
}
}
- 2021-08-22 00:30:59下载
- 积分:1
-
lpc2148 GPIO控制led灯
通用并行 IO 口( GPIO) 输入输出端口是嵌入式系统硬件平台的重要组成部分,通过输入输出端口可以连接各种类型的外部输入输出设备。LPC2148 有 2 个 32 位的通用 IO 口。 P0 和 P1 口由两组寄存器(每组 4 个)控制。
- 2022-02-06 20:44:58下载
- 积分:1
-
3333_dcac_3ph
说明: these codes are about three phase
- 2021-04-27 12:48:45下载
- 积分:1