Page 1 of 1

PIC18F47K40 UART & Interrupt

Posted: Sun May 10, 2020 7:23 pm
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) …

Re: PIC18F47K40 UART & Interrupt

Posted: Mon May 11, 2020 2:18 pm
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.