Search found 19 matches

by 1101
19 Jul 2012 09:56
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Different results when using local and global variables
Replies: 1
Views: 1048

Different results when using local and global variables

Good day all, I'm having an odd problem. I am running quite a massive piece of code on a dsPIC33FJ256MC710. I cannot stress enough that this code is really large consisting of many functions and variables. In one of the functions, when I use a local variable with a certain initial value, the functio...
by 1101
28 Jun 2012 07:29
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Solved problem, but still a mystery: PLL and calculations
Replies: 0
Views: 935

Solved problem, but still a mystery: PLL and calculations

Good day all, As the title suggests, the problem has been solved. But I would like to know the reasons behind it. What happened was that I performed an FFT (a butchered form of the NR code - I know some can't abide by that code :oops: ) on some data. It was a very large section of data, 2^16 samples...
by 1101
20 May 2012 18:43
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Redefintion error
Replies: 1
Views: 909

Re: Redefintion error

Please ignore me...found the problem. :oops:
by 1101
20 May 2012 16:22
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Redefintion error
Replies: 1
Views: 909

Redefintion error

Good day, First off, I've read this topic: https://www.mikroe.comwww.mikroe.com/forum/viewtopic.php?f=101&t=47713 but I'm still having trouble. I'm continually getting a redefintion error when compiling. Basically I have a bunch of sbit declarations regardind LEDs and Pushbuttons. I used an old vers...
by 1101
06 Dec 2010 22:30
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: MCP3901 (ADC) using SPI: configuration and reading
Replies: 7
Views: 5774

Re: MCP3901 (ADC) using SPI: configuration and reading

Many thanks for the replies. I did indeed set the wrong channel as well as a few other minor mistakes. Silly silly silly.... :roll:
by 1101
02 Dec 2010 17:34
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: MCP3901 (ADC) using SPI: configuration and reading
Replies: 7
Views: 5774

MCP3901 (ADC) using SPI: configuration and reading

Good day I'm a bit stuck with this device and SPI in general. I've never used SPI before, though I've read as much literature as I can find. I'm paring the MCP3901 (ADC) with a dsPIC33FJ256MC710 by using the 2nd SPI module on the chip. In addition, I'm using channel 0 on the MCP3901. I'm trying to d...
by 1101
19 Nov 2010 10:50
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: External Memory and 16-bit processors: adressing
Replies: 1
Views: 1025

External Memory and 16-bit processors: adressing

Hi there I'm still very new to using PICs and programming them. So we have a circuit board in our possession with a dsPIC33f256FJ710 (a 16 bit pic) and in addition to a few other peripherals we have some SRAM on board. 512Kx8bit. And it uses 19 address lines. 16 of those lines are on PORTD and the r...
by 1101
22 Oct 2010 10:22
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: LV24-33 dsPIC support
Replies: 2
Views: 1419

Re: LV24-33 dsPIC support

Hi! Opinions? Will I be able to program the chip with this device? Yes. Just pick the dsPIC33FJ256FJ710 instead of dsPIC33FJ256FJ710A in the mikroProg Suite programmer. We have plans to add dsPIC33FJ256FJ710A in the MCU list in the near future (as soon as we receive the sample from Microchip). Best...
by 1101
21 Oct 2010 12:15
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: LV24-33 dsPIC support
Replies: 2
Views: 1419

LV24-33 dsPIC support

Good day I have in my posssesion a Microchip dsPIC33FJ256FJ710A chip. Will the programmer be able to work with it? I notice in the "Supported Microcontrollers" section of this programmer that it only supprots dsPIC33FJ256FJ710 (notice, no "A" suffix to the designation). http://www.mikroe.com/eng/pro...
by 1101
12 May 2010 08:05
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FFT library uncertainty...
Replies: 12
Views: 4572

Re: FFT library uncertainty...

I haven't got the NR book at hand right now, but you may want to check the array index range for both. From what I recall NR arrays usually start with the first element at index 1, while I guess Matlab will use C convention, i.e. first element at index 0. That would explain why the NR result does n...
by 1101
11 May 2010 11:04
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FFT library uncertainty...
Replies: 12
Views: 4572

Re: FFT library uncertainty...

OK, so tried the Numerical recipes in C algorithm and it gave me some very perplexing results. :-/ I initially developed my code in matlab and, due to familiarity, tested the NR algorithm with some values against the Matlab one using the same values and compared the results. Suffice it to say, I'm q...
by 1101
21 Apr 2010 10:23
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Data storage
Replies: 4
Views: 2163

Re: Data storage

For the memory requirement your calculation is correct. <snip> Wolfgang Dude, you are effing legend! I really appreciate the feedback! I'm considering the dsPIC30F6014A. I noticed it had 2 SPI modules. I'm currently considering using the MCP3901 ADC ( http://www.microchip.com/wwwproducts/Devices.as...
by 1101
19 Apr 2010 15:57
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Data storage
Replies: 4
Views: 2163

Re: Data storage

I'm considering using SRAM, for this purpose as I'm told its very fast. The first (and only so far) memory I've considered is the Microchip 32kB SRAM ( http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=270121&mid=&lang=en ). I'm concerned about the SPI interface though as I've never used...
by 1101
18 Apr 2010 19:08
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Data storage
Replies: 4
Views: 2163

Data storage

Good day. I'm a bit unsure (not being in the industry) of how to calculate how much memory storage I'll need for some analogue to digital conversions I'll soon be doing. The ADC figures are; 16 bit 15.625 ksps 15s acq time Am I right if I do the following: samples = 15.625 x 1000 x 15 = 234 375 samp...
by 1101
07 Apr 2010 14:00
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FFT library uncertainty...
Replies: 12
Views: 4572

Re: FFT library uncertainty...

What? Good grief! Better make another plan in that case then. I'll soon be seeing someone that works at an electronics design firm and I'll certainly bring the matter up.

Many thanks for the heads up! I really appreciate it!

Go to advanced search