Search found 27 matches

by Emilio Eduardo
28 Oct 2013 20:53
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Pointer as argument error
Replies: 3
Views: 1586

Re: Pointer as argument error

Marina, I found the problem. There was a problem with the .h organizations and the tCOM_Mensagem typedef wasn't defined before this line of code. The problem was that the error pointed by the compiler was wrong and that made the correction very hard. One more bug of MikroC. Best Regards, Emilio Edua...
by Emilio Eduardo
26 Oct 2013 23:37
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Pointer as argument error
Replies: 3
Views: 1586

Pointer as argument error

I'm trying to compile the following code but I can't, it says that in line char COM_Interface_TX_Fila_Frente(tCOM_Mensagem **Msg, char* Apagar); it was expecting a ")" but found a "*". I've already passed a pointer to struct in another ".h" file and no problems arrised. I don't know what is going on...
by Emilio Eduardo
31 Jan 2013 18:45
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Floating Point Arithmetic number of instructions
Replies: 4
Views: 2208

Re: Floating Point Arithmetic number of instructions

Yes, I know that all... But I need specific information about how much time these four operations on type float/double take to be executed on a dsPIC. Especifically on dsPIC 33FJ256GP710A. I know that it has the dsp capabilities but I also know that these are executed on 16bit 2-complements integers...
by Emilio Eduardo
30 Jan 2013 16:51
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Floating Point Arithmetic number of instructions
Replies: 4
Views: 2208

Floating Point Arithmetic number of instructions

Hi, I`m currently working on an application which will use lots of Arithmetics in Floating Points. I`ll use all the four basic operations and sqrt. Maybe Cossine and Sine will be used too. I`d like to know how much time does each operation get to be complete. I`ve read carrefully AN575 but it`s crea...
by Emilio Eduardo
17 Dec 2012 20:21
Forum: mikroC PRO for dsPIC30/33 and PIC24 Beta Testing
Topic: Problem with .h files
Replies: 1
Views: 3293

Problem with .h files

When I compile a project, all .c files are saved but .h files aren't. Even if they were in the project.

Thanks a lot,
Emilio Eduardo
by Emilio Eduardo
14 Dec 2012 18:07
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Problem with division
Replies: 1
Views: 1115

Problem with division

I"m with a trouble in MikroC for dsPIC. I have a variable called bmp_cal_x3 declared as long and with value = 2670. When I try: bmp_cal_x3 /=4; It returns -15667. I also tried: bmp_cal_x3 >>= 2 it returns the same thing. The asm code generated is: For the first attempt: ;bmp.c,361 :: bmp_cal_x3 /= 4...
by Emilio Eduardo
19 Aug 2012 18:29
Forum: mikroC PRO for dsPIC30/33 and PIC24 Wish List
Topic: Find not working when closed lbocks of code
Replies: 1
Views: 3005

Find not working when closed lbocks of code

When you`re trying to find some text in the IDE but you have some blocks of code closed, it finds the wrong line of code. It seems like when the cursor goes to the line, it doesn`t count the closed lines.

Thanks
by Emilio Eduardo
11 Aug 2012 21:34
Forum: mikroC PRO for dsPIC30/33 and PIC24 Wish List
Topic: USART Terminal Crashes MikroC
Replies: 1
Views: 3109

USART Terminal Crashes MikroC

When too much information is received by the terminal, the data received appears slowly in the screen. The problem is that you can`t get out Terminal without the whole data appearing (if you try, the program crashes). My suggestion is to put an escape key that would flush the data in the serial buff...
by Emilio Eduardo
11 Aug 2012 01:31
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: dsPIC sending garbage through serial
Replies: 2
Views: 1496

dsPIC sending garbage through serial

Hi, I`m trying to develop a protocol to deliver packets of data with sure of receivement, order and integrity. The problem is that even when I comment all the lines in my code that write something to U1TXREG, dsPIC keeps sending me garbage data, unless I write something to U1TXREG. It seems that whe...
by Emilio Eduardo
06 Aug 2012 20:08
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: #ifndef block not working
Replies: 4
Views: 1834

Re: #ifndef block not working

Well, it worked..

But why the preprocessor message?

Thanks a lot,
Emilio Eduardo
by Emilio Eduardo
06 Aug 2012 17:59
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: #ifndef block not working
Replies: 4
Views: 1834

Re: #ifndef block not working

Hi,

Ok, I`ll try it later.

But now I have a question. Why does it show me a pre-processor error if a redefinition error occurs in linking time?

Beste regards,
Emilio Eduardo
by Emilio Eduardo
05 Aug 2012 18:28
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: #ifndef block not working
Replies: 4
Views: 1834

#ifndef block not working

Hi, I`m trying to prevent one .h file to be included twice, so I used the #ifndef block. The problem arrises when I try to compile my code. I receive one error message: Not in a #if (#ifdef) section. This is my code: #ifndef INC_COMUNICACAO_H #define INC_COMUNICACAO_H #define FCY 39613750 #define BA...
by Emilio Eduardo
13 Feb 2012 16:17
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Timer 1 and ISIS problems
Replies: 2
Views: 1580

Timer 1 and ISIS problems

Hi! I`m starting to work with dsPIC and I`m trying to generate a PPM train signal. I have experience with PIC and PC programming. I`m using ISIS to simulate everything in order to know if everything is ok before prototyping. There are two problems, the first is that my code doesn`t work but it`s ver...
by Emilio Eduardo
12 Nov 2011 23:38
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: FRC w/PLL and Serial, is there a problem?
Replies: 1
Views: 1814

FRC w/PLL and Serial, is there a problem?

Good Evening everybody, I`m trying to start programming dspic, so I`ve bought one of the flex boards with an dspic 33fj256gp710 and I was trying to get serial working, so I used FRC w/pll. The code I am testing has the goal of blinking a LED (when serial=1) or not (when serial =0) the problem is tha...

Go to advanced search