UART Hardware Interrupts and circular buffers

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Sefi
Posts: 56
Joined: Mon Sep 29, 2008 10:26 am
Has thanked: 9 times
Been thanked: 14 times
Contact:

UART Hardware Interrupts and circular buffers

Post by Sefi »

Can anyone point me in the right direction on implementing a UART hardware receive interrupt and loading the received byte into a circular buffer please?

I use Flowcode version V5.5.2.1

Any help would be greatly appreciated.
Many thanks.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: UART Hardware Interrupts and circular buffers

Post by medelec35 »

Hi Sefi ,
Have you seen this post?
It has a flowchart example of a circular buffer that uses RX interrupt.

Martin
Martin

Sefi
Posts: 56
Joined: Mon Sep 29, 2008 10:26 am
Has thanked: 9 times
Been thanked: 14 times
Contact:

Re: UART Hardware Interrupts and circular buffers

Post by Sefi »

Thank you for your quick response.

I am actually using a highly modified Zigbee component and finding that because of the workload of the uP, it is missing a lot of data arriving on the Zigbee. I wanted to use interrupts and a circular buffer to avoid missing data. The Zigbee is attached to UART2 on a Pic 18F66K22. I have enabled RXTINT2 but it never seems to be called. The LCD attached to the unit is driven via a Custom component (ILI9341 driver chip).

The attached FC file has been stripped down to the bare minimum to try ad see what comes via the interrupt routine and the UART. Could you please tell me what is wrong with it.

many thanks
Sefi
Attachments
MS_Test_Comms.fcf
(62.77 KiB) Downloaded 330 times

Post Reply