FC8 INTERRUPT RASPBERRY

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times

FC8 INTERRUPT RASPBERRY

Post by maxtisc »

hello to the whole community
I have 2 issues to submit to you about the flowcode with raspberry
I'm using a touchscreen diplay type nextion nx4024T032 with serial output that previously used with arduino with excellent results, in the arduino program I used interrupts when I needed to enter other functions, but now I saw that in the interrupts part of the raspberry it is not possible to set nothing, but only the custom.
1) is the implementation of the interrupts part planned? or is my approach wrong and can it be done in another way?
2) can someone help me write an interrupt suitable for my purpose?
thank you

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: FC8 INTERRUPT RASPBERRY

Post by LeighM »

Hi,
You might need to rethink how you code your project.
Attempting to implement interrupts on Raspberry Pi is best avoided.
The UART inputs are buffered, hence received characters will not be lost, so interrupting the application is not as important as it would be with Arduino.
Hope that helps.
Leigh

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times

Re: FC8 INTERRUPT RASPBERRY

Post by maxtisc »

thank you LeighM
now I will try to do something, but if I wanted to calculate precise timings, how can I do?

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: FC8 INTERRUPT RASPBERRY

Post by LeighM »

How precise?

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times

Re: FC8 INTERRUPT RASPBERRY

Post by maxtisc »

Hello Lenght
for example, having a timer that counts every second that calls a macro to perform operations outside the main program, or when a rising pulse arrives in an input call a macro
thank you

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FC8 INTERRUPT RASPBERRY

Post by Benj »

This may or may not be useful for you but I have seen examples where a host board such as a RPI interracts with an AVR or PIC e.g. via SPI or UART where the AVR/PIC does the high speed interrupt or very tight timed code. This leaves the host RPi to do the high level thinking with the usual OS related lack of guaranteed real time responses.

Of course there may still be issues e.g. with the Pi having to Poll the microcontroller device.

Post Reply