Forums Search for: dsPIC
MCU/DSP dsPIC Alternatives?
inHi: I'm looking for DSP-like microcontrollers and microcontroller-like DSPs. So far I am interested in TMS320F2812, but it is a bit heavy...
Hi: I'm looking for DSP-like microcontrollers and microcontroller-like DSPs. So far I am interested in TMS320F2812, but it is a bit heavy handed for some applications I would be considering. I had decided to move away from Microchip a few years ago and instead standardize on AVR for my 8-bit MCU of choice, mainly because of avr-gcc and the AVR architecture is much more pleasant to w...
TQFP handling while developing
inHi @ll Microchip offers his new controllers (i.e. dsPIC) with > 40 leads only in the TQFP but not PLCC package. Sockets for TQFP are not...
Hi @ll Microchip offers his new controllers (i.e. dsPIC) with > 40 leads only in the TQFP but not PLCC package. Sockets for TQFP are not reliable. Thus they are no solution. What does that mean? The original PCB cannot longer be used for developement, because sockets are not possible. You have to design a special PCB for that. The only way I found, is to solder the device under tes
compilation of dsPIC c30 compiler sources
inHi All, I've tried to compile the sources of the Microchip's C compiler for...
Hi All, I've tried to compile the sources of the Microchip's C compiler for dsPIC: http://ww1.microchip.com/downloads/en/DeviceDoc/mplabc30_v1_20_02.tar.gz Unfortunately after: ./configure --target=pic30 --enable-languages="c" make I get the following error message: cppinit.c: In function `path_include': cppinit.c:191: error: assignment of read-only location make[1]: *** [cppinit....
dsPIC audio processor
inI'm working on a simple audio processing system using the dsPIC30F4013. It's mainly intended for amateur radio use, and I've formed a Yahoo...
I'm working on a simple audio processing system using the dsPIC30F4013. It's mainly intended for amateur radio use, and I've formed a Yahoo group for people interested in using dsPICs for radio applications: http://groups.yahoo.com/group/radio_dspic/ Leon -- Leon Heller, G1HSM http://www.geocities.com/leon_heller
Quadrature output(dsPIC)
inHi Can anybody help me out with the problem below. i am supposed to create standard quadrature o/p (2 or 3 oututs, A B and RM) from PWM or...
Hi Can anybody help me out with the problem below. i am supposed to create standard quadrature o/p (2 or 3 oututs, A B and RM) from PWM or outputcompare pins of a dsPIC 30F3010 or dsPIC 30f3011 The preferred frequency could be in the range of 1Mhz or a bit lesser. The timing parameters for these outputs will be obtained to 2 Inputcapture modules in the dsPIC from the outside analogue world...
CompactFlash and Microchip Dspic ready problem
inHi! I hope somebody can help me with this problem or at least give me som suggestion how to solve it. I have a DSPIC CPU conected to at CF to...
Hi! I hope somebody can help me with this problem or at least give me som suggestion how to solve it. I have a DSPIC CPU conected to at CF to store Data of course. To save power the CF power is turned off where ever it is possible. Power on sequense is as follows. CF_WE=1 CF_OE=1 TRISD=TRISD_CF_ON TRISG=TRISG_CF_ON CF_ON=0 nop() nop() CF_CS1=1 Next i wait for CF_READY signal to ...
Dspic and hangs when running on low frequence
Hi! I have a DSPIC 30F6014 and have a problem. It is used for sampling data at a frequence of 3,3 khz the external cristall of 32768 devided...
Hi! I have a DSPIC 30F6014 and have a problem. It is used for sampling data at a frequence of 3,3 khz the external cristall of 32768 devided with 10. The DSPIC are running on 6MHZ external cristall and PLL 4 times, wich gives 24MHZ, and is trigged to start 3,3 khz. Using this speed everything works perfektly. But during standby mode i divide 32768 to get 51,2 HZ, to save power. Becouse of ...
dsPIC and SD card in SPI mode
Hello, Would anyone have any experience of this, concise web links etc? It's a 30f4013 chip with an SPI interface on it, and I just wondered...
Hello, Would anyone have any experience of this, concise web links etc? It's a 30f4013 chip with an SPI interface on it, and I just wondered if it was *compatiable* with the SPI mode of the SD memory cards? If not I'll just bit bang the port but if the hardware is already there... The following link to the capabilities of the 40-pin 30MIPS dsPICs. I'm planning to go over to the TQFP ...
Dspic 30 Adress Trap problem
ini! I have been searching the web for the error generating my adress error trap every 24 hours typ. And i found the solution in the...
i! I have been searching the web for the error generating my adress error trap every 24 hours typ. And i found the solution in the errata http://ww1.microchip.com/downloads/en/DeviceDoc/80198d.pdf module 9, //******************************************* 9. Module: Interrupting a REPEAT Loop When interrupt nesting is enabled (or NSTDIS(INTCON1 ) bit is '0'), the following sequence of
3.3v <> 5v interfacing @ 15Mhz
inHi, Please may I ask for assistance? I need a reliable method of interfacing an SPI SD/MMC card to a dsPIC. At the moment I'm using a...
Hi, Please may I ask for assistance? I need a reliable method of interfacing an SPI SD/MMC card to a dsPIC. At the moment I'm using a 1k8/3k3 voltage divider on the 5v ----> 3.3v signals, and connecting the 3.3v ----> 5v signals straight to port. It's working ok upto about 3-5Mhz, with anything above 7.5Mhz causing misread bits. Here's the actual signals; dsPIC --------------- SD/M
PIC vs ARM assembler (no flamewar please)
inHad a discussion with a _hardware_ guy (as in transistors and OP-amps) about "powerful" micros. He his a PIC guy and claimed that PIC have a...
Had a discussion with a _hardware_ guy (as in transistors and OP-amps) about "powerful" micros. He his a PIC guy and claimed that PIC have a very nice instruction set and is a pleasure to work with in assembly. He also mentioned the he would rather use a dsPIC instead of an ARM7 because ARM7 is very hard to program and has a confusing assembly (we never talked application, so I assume he...
dsPic questions
inI have some questions about the dsPic and environment: /*Declare constants/coefficients/calibration data to be stored in DataEEPROM */ int...
I have some questions about the dsPic and environment: /*Declare constants/coefficients/calibration data to be stored in DataEEPROM */ int _EEDATA(32) fooArrayInDataEE[] = {0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF}; It is working, but i am just curious what is that (32)? :-) In other code samples it's (2), and seems that nothing happens if I put there any 2^n number... ------...
dsPIC, DCI and debugger...
inHi all! Since a couple of days I'm stuck in a strange problem concerning the use of the DCI peripheral in a dsPIC: I use it for reading an I2S...
Hi all! Since a couple of days I'm stuck in a strange problem concerning the use of the DCI peripheral in a dsPIC: I use it for reading an I2S audio streaming coming from an ADC, but the program seems to be unable to read the RXBuffers registers, unless I activate the in circuit debugger. When the debugger is on, the program works as expected, otherwise it always reads as 0. Note that this a...
RTC on dsPIC33F
inHi All I hope someone can help me here. I've tried Microchip, but maybe I'm not explaining things well enough. I have a board which has...
Hi All I hope someone can help me here. I've tried Microchip, but maybe I'm not explaining things well enough. I have a board which has a 32.768KHz crystal directly connected to the SOSCI/SOSCO pins on the dsPIC. After setting up the configuration bits correctly, for running internal FRC w/PLL, I wrote the program below, using some bits from Microchip demos, and programmed the device, b...
Low cost TCP enabled devices
inI noted that others were looking at and commenting on low cost solutions for TCP and related services as network controllers. One of the best...
I noted that others were looking at and commenting on low cost solutions for TCP and related services as network controllers. One of the best solutions today is the Microchip dsPIC and PIC 24. They are not 8 bits but 16 bits and share lots of great pic features. This is what you get: - low cost hardware - support for just about all interconnect you can imagine (no firewire though) - cots...
MAX3002 MAX3003 SPI 3.3v <> 5v Level Translation
inHello, Would anyone have experience of these parts? Namely, caveats and design considerations? I'm intending to use a suitable level...
Hello, Would anyone have experience of these parts? Namely, caveats and design considerations? I'm intending to use a suitable level translator between a 5v dsPIC (It has to be 5v for an 8-bit bus) and a 3.3v SPI MMC/SD card. A voltage divider isn't really suitable due to 3.3v not quite reaching the dsPIC's 1 threshold. So it makes sense to digitally convert all of the lines. I h...
dsPIC software Interrupt generation problem
Hi, I have been using dspic30f4011, for the external interrupt if the Pin is defined as input. So how the user can generate interrupt...
Hi, I have been using dspic30f4011, for the external interrupt if the Pin is defined as input. So how the user can generate interrupt by manually changing the port pin status in MPLAB SIM ? Because once its defined as input user cannot modify the PORT value. Is there any alternate or only option is to use ICD tool
dsPIC 1024 or 2048 FFT?
inHello, I'm programming a dsPIC33 that has 16384 bytes of RAM. I'm trying to figure out if I can do a 1024 or 2048 FFT with this device. The...
Hello, I'm programming a dsPIC33 that has 16384 bytes of RAM. I'm trying to figure out if I can do a 1024 or 2048 FFT with this device. The code examples and twiddle factors provided from Microchip only allow lengths up to 512. Does anyone know if longer length FFTs are possible on the dsPIC33? Thanks, Thomas Magma
writing a byte to 16 bit port
inHi, What is the best (simplest) way to write a byte to a 16 bit port pin with out disrupting the other MSB pins. In my case I'm trying to write...
Hi, What is the best (simplest) way to write a byte to a 16 bit port pin with out disrupting the other MSB pins. In my case I'm trying to write a byte to the LSByte programmed in C on a dsPIC. Something like: unsigned char temp; temp = 19; PORTB = temp; Even though the variable 'temp' is only a byte long, I'm pretty sure it will toggle the MSByte in the 16 bit PORTB register. ...
Need recommendations for DsPIC C compiler
inI am currently using Microchips C Compiler and have found some large performance problems. I would like to switch to another vendor....
I am currently using Microchips C Compiler and have found some large performance problems. I would like to switch to another vendor. Does anyone have any recommendations for a DsPic compiler that generates fast ANSI standard code?