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
FC8 INTERRUPT RASPBERRY
Moderator: Benj
- 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
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
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
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
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
- 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
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.
Of course there may still be issues e.g. with the Pi having to Poll the microcontroller device.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel