Search found 8 matches

by Nada123456
11 Sep 2019 09:39
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: From floating point to fixed point
Replies: 1
Views: 1712

From floating point to fixed point

Hello,

I'm actually working on a program which requires a lot of arithmetics operations so I had to use float variables
The problem is that the CPU load increased so I have to move from floating point to fixed point
Any idea how to do that in mikroC ?

Thank you in advance !

Nada
by Nada123456
29 Aug 2019 11:19
Forum: mikroC PRO for PIC General
Topic: Aligned attribute
Replies: 3
Views: 1215

Aligned attribute

Hello,

I want to adapt the declaration below to mikroC syntax :

volatile unsigned int ecan1MsgBuf[NUM_OF_ECAN_BUFFERS][8] __attribute__((aligned(ECAN1_MSG_BUF_LENGTH*16)));

I tried the syntax format found in help but it didn't work, please see the picture below

Thank you in advance

Nada
by Nada123456
21 Aug 2019 10:32
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: DMA initialization
Replies: 9
Views: 3095

Re: DMA initialization

Hi,

I selected HS(High Speed) Crystal oscillator mode in the Edit Project window and chose PGEC1/PGED1 channels (tried also PGEC2/PGED2 channels) as you suggested.

The issue "index out of bounds" is fixed but the program doesn't work, there's no CAN output signal :(
by Nada123456
09 Aug 2019 16:15
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: DMA initialization
Replies: 9
Views: 3095

Re: DMA initialization

Hi,

Please find the project attached and thank you
by Nada123456
09 Aug 2019 15:33
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: DMA initialization
Replies: 9
Views: 3095

Re: DMA initialization

Here's my program : #include "ECAN_Defs.h" unsigned int Can_Send_Flags, Can_Rcv_Flags; // can flags unsigned int Rx_Data_Len; // received data length in bytes char RxTx_Data[8] = {0}; // can rx/tx data buffer char Msg_Rcvd; // reception flag const unsigned long ID_1st = 12111, ID_2nd = 3; // node ID...
by Nada123456
09 Aug 2019 15:00
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: DMA initialization
Replies: 9
Views: 3095

Re: DMA initialization

Hi,

Thank you for you reply !

In fact, when I defined the tx rx buffer, the issue is solved but when I try to build the .hex file a "List index out of bounds" occurs :(
by Nada123456
08 Aug 2019 15:18
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: DMA initialization
Replies: 9
Views: 3095

Re: DMA initialization

Hi,

Thank you for your answer !

I changed the number of parameters as you recommended but I got another error when I try to build the project : Unresolved extern 'MsgBuffer' in the Unit : __Lib_ECAN_1_EV.c

Any Idea ??

Thank you in advance !

Nada
by Nada123456
07 Aug 2019 14:17
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: DMA initialization
Replies: 9
Views: 3095

DMA initialization

Hello, I am currently working with MCU P33EV256GM106 using MikroC and I want to use ECAN module for CAN transmission by DMA But when I try to initialize DMA with the predefined function : ECAN1DmaChannelInit(0,1,&ECAN1RxTxRAMBuffer); I got the error : Too many actual parameters after building the pr...

Go to advanced search