Ben ,
I have a big question: where can I find information about the interrupt vectors? Is that a compiler's situation?
dsPics have different vector names? I saw other questions about UART interrupts and seems to be answered , but those answers applied to my dspic does not seems to work.
By other ...
Search found 54 matches
- Fri Aug 02, 2013 9:32 am
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
- Wed Jul 31, 2013 8:12 am
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
Re: RS232 Interupts
Hi Ben
thank for your help, but is not working.
I am using the custom code for RX interrupt
Enable code :
IEC0bits.U1RXIE = 1;
Handler code:
void _ISR _U1RXInterrupt(void)
{
if (IFS0bits.U1RXIF=1)
{
FCM_dummy();// call selected macro
IFS0bits.U1RXIF = 0;
}
}
Also I have tried
void ...
thank for your help, but is not working.
I am using the custom code for RX interrupt
Enable code :
IEC0bits.U1RXIE = 1;
Handler code:
void _ISR _U1RXInterrupt(void)
{
if (IFS0bits.U1RXIF=1)
{
FCM_dummy();// call selected macro
IFS0bits.U1RXIF = 0;
}
}
Also I have tried
void ...
- Sat Jul 27, 2013 9:47 am
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
Re: RS232 Interupts
Hi Guys
Does anyone have two dsPic microcontrollers connected with USART that can test the files I provided?
Just to check out what is missing or wrong with the custom interrupt
Thanks
Does anyone have two dsPic microcontrollers connected with USART that can test the files I provided?
Just to check out what is missing or wrong with the custom interrupt
Thanks
- Tue Jul 09, 2013 2:50 pm
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
Re: RS232 Interupts, compiling but not working.
Sorry for the delay but I was trying to solve another problems and
this particular one, Basically the code provided by Ben is compiling
but in the real world the interrupt is not been produced, (led ON)
no way Ican make it work .
The only clue I think would be is that in the message file says ...
this particular one, Basically the code provided by Ben is compiling
but in the real world the interrupt is not been produced, (led ON)
no way Ican make it work .
The only clue I think would be is that in the message file says ...
- Wed Jul 03, 2013 10:08 am
- Forum: Flowcode V5
- Topic: question about INTERRUPT ON CHANGE
- Replies: 20
- Views: 14323
Re: question about INTERRUPT ON CHANGE
Thanks Martin, I actually was wondering if rising, falling and both edges were available in all ports , I am guessing in just some, from some microcontrollers, I didn't taught this macro depends on hardware
Is this right ??
Is this right ??
- Fri Jun 28, 2013 9:55 am
- Forum: Flowcode V5
- Topic: question about INTERRUPT ON CHANGE
- Replies: 20
- Views: 14323
question about INTERRUPT ON CHANGE
I am using Flowcode v5.5.2.1 and trying to set up a rising edge interrupt in any port in a dsPIC30f4012 or dsPIC30f4013 and flowcode just allow me to select both edges or none.
Is there something I am missing??
Is there something I am missing??
- Thu Jun 13, 2013 3:01 pm
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
Re: RS232 Interupts
That is perfect, thanks !!
- Thu Jun 13, 2013 9:13 am
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
Re: RS232 Interupts, Ani idea of how can this be solved
Sorry I've Been Away in a job for some weeks,
Any idea of how can this be solved?
definitely the code I attached should work, no servo or timers
I am really lost in this area of C code
Thanks
Any idea of how can this be solved?
definitely the code I attached should work, no servo or timers
I am really lost in this area of C code
Thanks
- Thu May 09, 2013 6:07 pm
- Forum: Flowcode V4
- Topic: Driving Servo BLDC motor
- Replies: 9
- Views: 12536
Re: Driving Servo BLDC motor
I also want to control a BLDC motor but directly from dsPIC, any example code there??
Later on I will implement a position control with a quadrature sensor in the motor
and after that a PID closed loop , I will post the results. this would be very interesting for robot implementation.
Anyone ...
Later on I will implement a position control with a quadrature sensor in the motor
and after that a PID closed loop , I will post the results. this would be very interesting for robot implementation.
Anyone ...
- Thu May 09, 2013 12:31 pm
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
Re: RS232 Interupts
Hi Ben,
Where is the conflict? the Uart block uses also timers?
I did an example without the timer and servo, still not working
Here is the file with no servo block
uart tx test.fcf_pic16
I get the same error than before
Is there a variable I need to define before?
In an example of activating ...
Where is the conflict? the Uart block uses also timers?
I did an example without the timer and servo, still not working
Here is the file with no servo block
uart tx test.fcf_pic16
I get the same error than before
Is there a variable I need to define before?
In an example of activating ...
- Wed May 08, 2013 6:48 pm
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
Re: RS232 Interupts
Hi Ben, Thanks for the tip, but still doesn not compile.
Here is a test file I did to probe it
servomotor test.fcf_pic16
I get this message from compiler
servomotor test.c: At top level:
servomotor test.c:1235: error: redefinition of '_T2Interrupt'
servomotor test.c:1159: error: previous ...
Here is a test file I did to probe it
servomotor test.fcf_pic16
I get this message from compiler
servomotor test.c: At top level:
servomotor test.c:1235: error: redefinition of '_T2Interrupt'
servomotor test.c:1159: error: previous ...
- Tue May 07, 2013 11:40 pm
- Forum: Flowcode V5
- Topic: RS232 Interupts
- Replies: 15
- Views: 12644
RS232 Interupts in dspic
I am having a similar problem with dsPIC30f4012 for end of transmitting interrupt
enable code :
IEC0bits.U1TXIE = 1;
handler code:
//if (IFS0bits.U1TXIF=1) (is this the same than next line?)
if (IFS0 & (1 <<U1TXIF))
{
FCM_UARTTX_INT();// call selected macro
IFS0bitsU1TXIF = 0;
}
the error ...
enable code :
IEC0bits.U1TXIE = 1;
handler code:
//if (IFS0bits.U1TXIF=1) (is this the same than next line?)
if (IFS0 & (1 <<U1TXIF))
{
FCM_UARTTX_INT();// call selected macro
IFS0bitsU1TXIF = 0;
}
the error ...
- Thu Apr 25, 2013 12:10 pm
- Forum: Flowcode V5 Issues
- Topic: Compiling error with ADC
- Replies: 5
- Views: 17872
Re: Compiling error with ADC
Now is compiling, thanks !!!
- Thu Apr 25, 2013 10:03 am
- Forum: Flowcode V5 Issues
- Topic: Compiling error with ADC
- Replies: 5
- Views: 17872
Re: Compiling error with ADC, help from matrix needed
I think I know the problem: is very similar to http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=8713&p=26296&hilit=undeclared#p26296
I guess the solution also may be similar, I was looking in the code but my problem is I've got lost, there is a definition in flowcode that is missing ...
I guess the solution also may be similar, I was looking in the code but my problem is I've got lost, there is a definition in flowcode that is missing ...
- Tue Apr 23, 2013 11:21 am
- Forum: Flowcode V5 Issues
- Topic: Bug in CAN baudrate in dspic V5.5.2.1
- Replies: 2
- Views: 5517
Re: Bug in CAN baudrate in dspic V5.5.2.1
Hi Mika
you are right, I made a mistake with C1CTRL = (C1CTRL || 1024), the weird thing is that with that setting my Baudrate is fixed!!, I tried erasing that block just to check and the block with bit 10 = 1, solves the baudrate problem (????!!!!)
you are right, I made a mistake with C1CTRL = (C1CTRL || 1024), the weird thing is that with that setting my Baudrate is fixed!!, I tried erasing that block just to check and the block with bit 10 = 1, solves the baudrate problem (????!!!!)
- Fri Apr 05, 2013 2:14 pm
- Forum: Flowcode V5 Issues
- Topic: Bug in CAN baudrate in dspic V5.5.2.1
- Replies: 2
- Views: 5517
Bug in CAN baudrate in dspic V5.5.2.1
Hi ,
I just found the Baud rate generated setting external CAN is wrong because the CRANCKS bit (11) of C1CTRL register is = 0 instead of 1
to solve this I just add C code :
C1CTRL = (C1CTRL || 1024) ;
I am using dsPIC version on dsPIC30F4012 not sure if applies yo other devices
Cheers
I just found the Baud rate generated setting external CAN is wrong because the CRANCKS bit (11) of C1CTRL register is = 0 instead of 1
to solve this I just add C code :
C1CTRL = (C1CTRL || 1024) ;
I am using dsPIC version on dsPIC30F4012 not sure if applies yo other devices
Cheers
- Sat Mar 23, 2013 6:16 pm
- Forum: Flowcode V5 Issues
- Topic: Compiling error with ADC
- Replies: 5
- Views: 17872
Re: Compiling error with ADC
Hello ,
Any feedback ?
Any feedback ?
- Tue Mar 12, 2013 9:44 pm
- Forum: Flowcode V5 Issues
- Topic: Compiling error with ADC
- Replies: 5
- Views: 17872
Compiling error with ADC
Hi, I am having a problem compiling a simple ADC to servomotor code in V5 dsPIC latest release (V5.5.2.1), I re-made the code in V4 and compiles (is very short).
I checked
http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=10077#p31579
and
http://www.matrixmultimedia.com ...
I checked
http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=10077#p31579
and
http://www.matrixmultimedia.com ...
- Fri Nov 23, 2012 12:18 pm
- Forum: Flowcode V5
- Topic: Copy data from byte to byte in array
- Replies: 2
- Views: 2629
Re: Copy data from byte to byte in array
I am using a lot of arrays, normally that is a very good approach, also I use the variables like DataIn = BYTE [j] where i, j are variables that can be managed by other formulas.
- Fri Nov 23, 2012 9:42 am
- Forum: Flowcode V5
- Topic: Question about CAN bus accuracy
- Replies: 1
- Views: 2563
Question about CAN bus accuracy
the facts:
If I have a flowchart that sends, lets say, one package of CAN every second with the function DELAY or with TIMER, the measured answer is very accurate (0,002 [ms]).
If I send that communication to other microcontroller, and using the detection of a CAN package as a trigger to send its ...
If I have a flowchart that sends, lets say, one package of CAN every second with the function DELAY or with TIMER, the measured answer is very accurate (0,002 [ms]).
If I send that communication to other microcontroller, and using the detection of a CAN package as a trigger to send its ...
- Wed Nov 21, 2012 1:27 pm
- Forum: Flowcode V5
- Topic: TIMER produces the interrupt with no counting
- Replies: 7
- Views: 7633
Re: TIMER produces the interrupt with no counting
It's working !!, so was the flag I didn't turn off
Thank you !!
I wonder why this is not included in the Timer disable part of the code.
Thank you !!
I wonder why this is not included in the Timer disable part of the code.
- Wed Nov 21, 2012 10:33 am
- Forum: Flowcode V5
- Topic: TIMER produces the interrupt with no counting
- Replies: 7
- Views: 7633
Re: TIMER produces the interrupt with no counting
Thanks Dazz, As I post before the code works as explained in hardware, is a weird behavior , Does this happen just with CAN bus?
It should restart the timer each time detects an incoming CAN package and gives the answer with a certain delay after reception, I don't want to put a Delay block ...
It should restart the timer each time detects an incoming CAN package and gives the answer with a certain delay after reception, I don't want to put a Delay block ...
- Tue Nov 20, 2012 8:31 pm
- Forum: Flowcode V5
- Topic: TIMER produces the interrupt with no counting
- Replies: 7
- Views: 7633
Re: TIMER produces the interrupt with no counting
Something tells me the issue does not relate to the CAN bus communication
I did other example not using custom C code and I get the same behavior I couldn't make it work in simulation, but in hardware the Rx led turns on and off in half second the first time and then turns on in almost unnoticeable ...
I did other example not using custom C code and I get the same behavior I couldn't make it work in simulation, but in hardware the Rx led turns on and off in half second the first time and then turns on in almost unnoticeable ...
- Mon Nov 19, 2012 4:12 pm
- Forum: Flowcode V4
- Topic: TIMER produces the interrupt with no counting
- Replies: 5
- Views: 6209
- Mon Nov 19, 2012 4:11 pm
- Forum: Flowcode V5
- Topic: TIMER produces the interrupt with no counting
- Replies: 7
- Views: 7633
TIMER produces the interrupt with no counting
Hi, I am working in a code were inside a custom interuption (produced by a
external source) I have a timer interrupt that works fine the first time.
the problem is that from the second time the timer is activated, the timer
interrupt is activated but the interruption is activated inmediatly ...
external source) I have a timer interrupt that works fine the first time.
the problem is that from the second time the timer is activated, the timer
interrupt is activated but the interruption is activated inmediatly ...