• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 单程序不起作用

    [代码]

    2020-03-24 07:02

  • 电子元件封装技术潮流

      全球微型化趋势下,空前增长的电力电子发展以及伴随之下更高效的生产效率,是这一高端行业寻求更高效灌封以及封装技术的主要动力。粘合剂工业对这一趋势作出了积极响应。市面上如雨后春笋般出现了众多新研发的产品。 

    2020-08-06 06:00

  • 如何在没有编译的情况下仅在板上闪现图像?

    我想知道怎么做,如果我想下载的图像(我已经建立)上的董事会,而不重新编译它。/制作“app”-“平台”下载运行命令是“构建+下载+运行”,对吗?我找不到只下载/Flash的命令(没有构建) 以上来自于百度翻译 以下为原文I am wondering what to do if I want to download the image(I have already built) on the board without recompiling it again../make 'app'-'platform' download run command is 'build + download + run' right?I can't find a command for only download/flash (without build)

    2018-11-13 16:57

  • dsPIC33EP上的FFT永远不会工作

    你好!我开发了一个基于微芯片DSP库的DSPIC33 FJ128GP802的“信号分析器”,然后在图形模式下在ILI934 1显示中显示一个代码,代码工作得很好,最大FFT大小为1024个点(由于RAM限制)。N和频域同时没有问题,但是由于DSPIC33 EP512GP502的30个额外MIPS(和FLAS/RAM功能),我决定迁移代码没有成功,所有的例程都工作得很好,但是FFT没有。第一个问题是内存映射,编译器没有。允许像“空间(y存储器)”这样的AbbbTues或类似的EP设备投掷一个错误“不能分配…”(我不知道为什么),所以我手动地址:这样做没有地址陷阱中断和代码流没有问题,但不计算FFT使用相同的代码工作。DSPIC33 FJ类似:“SealAlxInDaDA”包含由Time3 ADC采样的数据,在48 kHz触发,屏幕和调试总是显示17000赫兹,并且存储在FFT矢量的结果中的数据从未改变。有人知道为什么在FJ上同样的算法在EP中没有吗?我停止了发展,因为我不知道发生了什么。任何帮助都是非常有希望的。 以上来自于百度翻译 以下为原文 Hello comunity!I developed a "signal analyzer" on a dsPIC33FJ128GP802 based on Microchip dsp libraries for the spectrum, then I write a code for show data in a ILI9341 display in a graphical mode and the code works very well with a maximum FFT size of 1024 points (due to RAM limitation) this code shows time domain and frequency domain without problems at the same time, but due to the 30 extra MIPS (and flash/ram capabilities) of the dsPIC33EP512GP502, I decided to migrate the code without success, all the routines works very well but the FFT not. The first issue was the memory mapping, the compiler does not allow atribbutes like "space(ymemory)" or similar for EP devices throwing an error "could not allocate..." (I dont know why) so I address manually like : fractcomplex vector_complejo[Muestras_FFT] __attribute__((address(0x9000),far,aligned(Muestras_FFT*2*2)));fractcomplex twiddleFactors[Muestras_FFT/2] __attribute__((address(0x1000),near,aligned(Muestras_FFT*2))); Doing this there are not address trap interrupts and the code flows without problems but NOT calculate the FFT using the same code that works on dsPIC33FJ like: p_real = &vector_complejo[0].real ; //Inicializa puntero p_complejo = &vector_complejo[0]; //Inicializa puntero//===================SE MUEVE EL BUFFER DE ENTRADA AL VECTOR COMPLEJO===========for ( i = 0; i < Muestras_FFT; i++ ) { vector_complejo.real = Senal_Entrada ; vector_complejo.imag = 0 ; }//==========================CALCULO DE LA FFT=========== FFTComplexIP (E_Mariposa, &vector_complejo[0], (fractcomplex *)&twiddleFactors[0],COEFFS_IN_DATA); BitReverseComplex (E_Mariposa, &vector_complejo[0]); SquareMagnitudeCplx(Muestras_FFT, &vector_complejo[0], &vector_complejo[0].real);"Senal_Entrada" contains the data sampled by timer3 ADC triggering at 48KHz, the screen and the debug always show 17000 Hz and the data stored in the result of the FFT vector never changes. Anyone have an idea why the same algorithm that works on FJ doesn't in EP? I stopped the develoment because I dont know what is happening. Any help will be very hopefull.

    2018-10-10 10:24

  • 使用带有PIC16LF1459的RFID-RC522

    嗨,谢谢你的未来帮助。项目的内容:我必须打开一个门,它有一个带有PIC16LF1459的电柜。我已经开了一扇门,上面有一个PIC16控制的按钮。但是现在我需要使用RID-RC522。我使用了一个库和MCC。当我构建和运行时,我得到了一些关于我的MOSI,MISO,SCK和SDA(CS)WITOUT在RC522上传递的任何信号。似乎有一个通信之间的屏蔽和PIC16PIC从示波器:在下一个引脚:RC522 - PIC16SS(SDA)- \ SSSCK - SCKMOSI - SDIMSO - SDOST--MCLRYYONTY是在ZIP和IM有任何问题。 以上来自于百度翻译 以下为原文 Hi, Thank you for your futur help. Content of the project :I have to unlock a door which has a electric locker with a PIC16LF1459. I already open a door with a button which is control by the PIC16. But now i need to use the RFID-RC522.I use a library and the MCC. When i build and run, i got some signals on my MOSI, MISO, SCK and SDA (CS) whitout pass anything on the RC522. It seems there is a communication between the shield and the PIC16 Pic from an oscilloscope : In the next post PIN : RC522 - PIC16SS (SDA) - \SSSCK - SCKMOSI - SDIMISO - SDORST - \MCLR Everything is on the zip and im available to any questions. Attached Image(s) Attachment(s)RC522SPI.X (2).zip (255.67 KB) - downloaded 40 times

    2018-09-14 15:59

  • SPI模式下的PIC24F MSSP模块

    大家好,我的SPI通讯有点问题。当我在示波器上检查我的信号时,我没有CS,但是我可以看到我的数据和时钟。我把我的代码放在下面来理解我的问题。谢谢你,安娜。 以上来自于百度翻译 以下为原文 Hi everyone,I have some trouble with my spi communication. When i check my signals on the oscilloscope, I don't have CS but i can see my data and clock.I put my code below to understand my problem.Thank you , Anaëlle // FBS#pragma config BWRP = OFF // Boot Segment Write Protect (Disabled)#pragma config BSS = OFF // Boot segment Protect (No boot flash segment)// FGS#pragma config GWRP = OFF // General Segment Flash Write Protect (General segment may be written)#pragma config GSS0 = OFF // General Segment Code Protect (No Protection)// FOSCSEL#pragma config FNOSC = FRCDIV // Oscillator Select (8MHz FRC with Postscaler (FRCDIV))#pragma config SOSCSRC = ANA // SOSC Source Type (Analog Mode for use with crystal)#pragma config LPRCSEL = HP // LPRC Power and Accuracy (High Power/High Accuracy)#pragma config IESO = ON // Internal External Switch Over bit (Internal External Switchover mode enabled (Two-speed Start-up enabled))// FOSC#pragma config POSCMD = NONE // Primary Oscillator Mode (Primary oscillator disabled)#pragma config OSCIOFNC = OFF // CLKO Pin I/O Function (CLKO output signal enabled)#pragma config POSCFREQ = MS // Primary Oscillator Frequency Range (Primary Oscillator/External Clock frequency between 100kHz to 8MHz)#pragma config SOSCSEL = SOSCHP // SOSC Power Selection Configuration bits (Secondary Oscillator configured for high-power operation)#pragma config FCKSM = CSECMD // Clock Switching and Monitor Selection (Clock Switching Enabled; Fail-safe Clock Monitor Disabled)// FWDT#pragma config WDTPS = PS32768 // Watchdog Timer Postscale Select bits (1:32768)#pragma config FWPSA = PR128 // WDT Prescaler bit (WDT prescaler ratio of 1:128)#pragma config FWDTEN = OFF // Watchdog Timer Enable bits (WDT disabled in hardware; SWDTEN bit disabled)#pragma config WINDIS = OFF // Windowed Watchdog Timer Disable bit (Standard WDT selected (windowed WDT disabled))// FPOR#pragma config BOREN = BOR3 // Brown-out Reset Enable bits (Enabled in hardware; SBOREN bit disabled)#pragma config PWRTEN = ON // Power-up Timer Enable (PWRT enabled)#pragma config I2C1SEL = PRI // Alternate I2C1 Pin Mapping bit (Default SCL1/SDA1 Pins for I2C1)#pragma config BORV = V18 // Brown-out Reset Voltage bits (Brown-out Reset at 1.8V)#pragma config MCLRE = ON // MCLR Pin Enable bit (RA5 input disabled; MCLR enabled)// FICD#pragma config ICS = PGx3 // ICD Pin Placement Select (EMUC/EMUD share PGC3/PGD3)#include "p24F16KL402.h"#define SPI_MASTER 0x30#define SPI_ENABLE 0x40 int i=4;void SPI1Init(){ SSP1CON1 = SPI_MASTER; //Select Mode SSP1STAT = SPI_ENABLE; //Enable peripheral}int writeSPI1(unsigned char i) { SPI1BUF =i; //write to buffer for TX while (!SSP1STATbits.BF); //wait for transfer to complete return SPI1BUF; //read the received value }int main(void){ SPI1Init(); while(1) { writeSPI1(i); }}

    2019-04-22 12:44