apparently oscillating at 1 Hz as expected (the true oscillation frequency is in the kilohertz scale). What I
2019-08-01 07:15
and accurately measure waveforms, at frequencies from a few kilohertz up to about 1MHz. Will I see
2019-06-14 11:51
我尝试在我的Explorer 16板上用PIC24FJ128GA310插件来执行ADC。我使用MPLAB X 3.30和代码配置器。我的目标是通过UART在屏幕上看到adc值。通过使用Code Configurator,我选择了引脚20(浏览器16板中的AN5-POT)和引脚25(AN0-adc的任何引脚)。此外,我使用UART1(PN49作为RX&PAN50作为TX)。然后,我在main.c中生成代码&如下:int main(void){int转换;SYSTEM_Initialize();ADC1_ChannelSelect(ADC1_POT);.(1){ADC1_Start();//Provide Delay ADC1_Stop();.()!ADC1_IsConversionComplete()){ADC1_Tasks();}convertion=ADC1_ConversionResultGet();printf("Pot_value=%dnr",convertion);//Add您的应用程序代码//Add您的应用程序代码}.-1;}当我为adc选择POT(AN5)pin时,输出正好在第四位。船上电位器值的变化。但是,当我把ADC管脚换成AN0之类的其他管脚时,显示的输出接近3V。而且我用万用表检查了该管脚上面的万用表,它显示0.7V浮动。我需要一些建议在任何模拟输入管脚上运行adc。我需要改变一些硬件或软件的改变是否有效。 以上来自于百度翻译 以下为原文 I am trying to perform ADC on my explorer 16 board with PIC24FJ128GA310 plug in module. I am using MPLAB X 3.30 & code configurator.My aim is to see the adc value on the screen via UART. By using Code Configurator, I selected pin 20 (AN5-POT in explorer 16 board) & pin 25 (AN0- any pin for adc). Also I used UART1 (with pin49 as RX & pin50 as TX). Then i generated the code & in the main.c, i have done below: int main(void){int conversion; SYSTEM_Initialize();ADC1_ChannelSelect(ADC1_POT); while (1){ ADC1_Start();//Provide Delay ADC1_Stop(); while(!ADC1_IsConversionComplete()){ ADC1_Tasks(); }conversion = ADC1_ConversionResultGet(); printf("Pot_value=%d\n\r",conversion);// Add your application code // Add your application code }return -1;} When i am selecting POT(AN5) pin for adc, the output is coming exact the variation in on board potentiometer value. But when i am changing ADC pin to any other like AN0, the displayed output is near to 3 V. Also i checked by putting the multimeter over that pin & it was showing 0.7 V floating. I need some suggestion to run adc on any analog input pin. Do i need to change some hardware or software changes will work. RegardsNitS
2019-07-10 13:23
我有一个问题我想描述一下,有人能帮我吗?问题如下。一个控制器18F45 K22,我想要测量来自连接到输入端的接收器的输入信号A(PWM)信号。PURS调制宽度A要有频率,并且一旦有频率,就必须在程序中进行选择。我无法测量我开始上市的频率,但似乎没有效果。整个星期和一个月,我都没办法解决这个问题。因此,如果测量频率超过该函数,那么如果测量的频率比其他函数执行的频率。我有一个程序,我怀疑是解决方案,但它不起作用。TXT(0.98 KB)-下载32次频率。TXT(0.98 KB)-下载30次频率。TXT(0.98 KB)-下载26次 以上来自于百度翻译 以下为原文 I Have a problem what i want to describe, is there someone who can help my?. The problem is as following. A controllera 18f45k22 i want to measure a incoming signal a (pwm) signal from a receiver that is connecting to a input. puls modulation width a want to have the frequencyand once i have the frequency there must be a selection in the program. I can't measure the frequency i have a listing where i was beginning with but it didn't seem to work. All week and month i tried no solution for the problem. thus if a measure the frequency than that function will do that and ifa measure another frequency than that other function will executed. i have a program what i suspected must be the solution but it doesn't work. Attachment(s)frequency.txt (0.98 KB) - downloaded 36 timesfrequency.txt (0.98 KB) - downloaded 32 timesfrequency.txt (0.98 KB) - downloaded 30 timesfrequency.txt (0.98 KB) - downloaded 26 times
2018-10-17 16:22
我使用的是DSPIC33 XC16。我试图理解Sosc是如何工作的。我有一个工作在8MHz的外部晶体。首先我需要理解的是这个频率有多少秒(或者我如何计算)。然后,我需要计算如何设计频率来创建示例1秒延迟。如果我使用PLL怎么办?我会用FoSC * 4频率来设计我的频率?PIC中的每一个命令每4赫兹执行一次吗? 以上来自于百度翻译 以下为原文 I'm using dspic33 xc16. I'm trying to understand how Sosc works. Example i have an external crystal which is working in 8mhz. First thing i need to understand is how many seconds(or how can i calculate) are this frequency. Then i need to calculate how can i devide my frequency for creating example 1 second delay.What if i will use PLL? i will devide my frequency with FOSC*4 frequency?Also every command in pic is executed every 4 hetz?
2018-09-30 15:52
大家好: - )........我写了一个计数器程序(在Verilog中)它增加了一段时间的十进制值,并在一段时间内递减了十进制值。使用DAC输出电压公式,它可以在一段时间内产生0V至0.8V,在一段时间内产生0.8至0.我想将此verilog代码提供给SPARTAN 3E的DAC并在DSO上看到输出(数字存储示波器)。我拥有的资源是1)Verilog代码(您可以在附件中看到代码)。2)UCF(使用FPGA引脚和DAC)任何人都可以给出一些答案如何进一步使用以上两个文件查看DSO上的输出 提前感谢你Counter.v 3 KB以上来自于谷歌翻译以下为原文Hello to all :-)........i wrote a counter program(In Verilog) it increments the decimal value for a period of time and decrements the decimal value for a period oftime . Using the formula of DAC output voltage formula it can generate 0V to 0.8V for a period oftime and 0.8 to 0 for a period oftime.i want to give this verilog code to DAC of SPARTAN 3E and see the output on DSO(Digital Storage oscilloscope).The resources i have is 1) Verilog code (You can see the code in Attachments).2)UCF( To use FPGA pins and DAC) Can anyone give some answers how to proceed further to see the output on DSO using above two files Thanking You in advance Counter.v 3 KB
2019-07-03 08:41