PIC18F47K40 UART & Interrupt

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

Moderator: Benj

Post Reply
SYM2020
Posts: 1
Joined: Sun May 10, 2020 7:09 pm

PIC18F47K40 UART & Interrupt

Post by SYM2020 »

Hi,

I have created a program for the PIC18F46K80, that blinks an LED, outputs a dash to the UART, and echoes out characters via an interrupt… all works ok… Flowcode source attached (46K80.fcfx)…

When I try to do the same on the PIC18F47K40…

I had to add the following C code before the UART setup: -

Code: Select all

RX1PPS = 0x17; // RC7 = Rx1
RC6PPS = 0x09; // RC6 = Tx1
This got the UART to print dashes…

But, the interrupt does not work… what do I need to do to get the interrupt to work?

Flowcode source attached (47K40.fcfx) …
Attachments
47K40.fcfx
Non working code
(12.15 KiB) Downloaded 184 times
46K80.fcfx
Working code
(12.03 KiB) Downloaded 166 times

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: PIC18F47K40 UART & Interrupt

Post by Benj »

Hello,

We've recently fixed some bugs on the K40 family. Can you use the Help -> Check for updates menu to ensure you are using the latest files.

The PPS code also hopefully shouldn't be required now if the properties of the UART component are setup correctly.

Let us know how you're getting on.

Post Reply