#include #include "a2demo.h" #include void init(void); void putch(unsigned char); volatile unsigned char CHANNEL = 0; /…
Nuts+Volts 源代码
汇集 Nuts+Volts 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/*-----------------------------------------------*/ /* Analog0() simulates analog input values given */ /* to channel-0 (AIN0) …
/*-----------------------------------------------*/ /* Analog0() simulates analog input values given */ /* to channel-0 (AIN0) …
/*-----------------------------------------------*/ /* Analog0() simulates analog input values given */ /* to channel-0 (AIN0) …
% Get time in ms t = (0:1:25) * 1E-3; % Get voltage and current volts = 10 .* (1 - exp(-200 .* t)); amps = 0.2 .* exp(-200 .…
% Script file: calc_power.m % % Purpose: % To calculate and plot the power supplied to a load as % as a function of …
% Script file: calc_power.m % % Purpose: % To calculate the current, real, reactive, and apparent power, % and the po…
% Use this program to reproduce Fig 4.4 of text close all clear all eps = 0.0001; taup = 2.; fd = -10./taup:.05:10./taup; un…
% Use this program to reproduce Fig 4.4 of text close all clear all eps = 0.0001; taup = 2.; fd = -10./taup:.05:10./taup; un…
% Use this program to reproduce Fig 6.4 of text close all clear all eps = 0.0001; taup = 3.; fd = -10./taup:.01:10./taup; un…