Page 1 of 1

FC8 INTERRUPT RASPBERRY

Posted: Sat Dec 01, 2018 10:19 pm
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

Re: FC8 INTERRUPT RASPBERRY

Posted: Mon Dec 03, 2018 10:23 am
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

Re: FC8 INTERRUPT RASPBERRY

Posted: Mon Dec 03, 2018 11:33 pm
by maxtisc
thank you LeighM
now I will try to do something, but if I wanted to calculate precise timings, how can I do?

Re: FC8 INTERRUPT RASPBERRY

Posted: Tue Dec 04, 2018 8:48 am
by LeighM
How precise?

Re: FC8 INTERRUPT RASPBERRY

Posted: Wed Dec 05, 2018 10:34 pm
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

Re: FC8 INTERRUPT RASPBERRY

Posted: Thu Dec 06, 2018 12:33 am
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.