代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.vhd
--/*****************************************************************************
-- * 源文件: pwm.vhd
-- * 模块: PWM调制
-- * 版权:
-- * Copyright(C) 北京联华众科科技有限公司
-- * www.lianhua-zhongke
pwm.vhd
--
-- 本模块的功能是验证实现和PC机进行基本的串口通信的功能。需要在
--PC机上安装一个串口调试工具来验证程序的功能。
-- 程序实现了一个收发一帧10个bit(即无奇偶校验位)的串口控
--制器,10个bit是1位起始位,8个数据位,1个结束
--位。串口的波特律由程序中定义的div_par参数决定,更改该参数可以实
--现相应的波特率。程序当前设定的div_par 的值是0x104, ...
pwm.bsf
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="pwm"
ProjectDir="C:\ti\myprojects\pwm\"
ProjectType=Executable
CPUFamily=TMS320C28X
pwm.c
// 该程序利用EVB模块的PWM7--PWM12引脚产生不同占空比的方波
#include "f2407_c.h"
// 屏蔽中断程序
void inline disable()
{
asm(" setc INTM");
}
// 系统初始化子程序
int initial()
{
asm(" setc SXM"); // 符号位扩展有效
a
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="E:\lp\2407new\PWM\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool="Compiler"
To