PIC18F15Q41

For general Flowcode discussion that does not belong in the other sections.
BenR
Matrix Staff
Posts: 2211
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 607 times
Been thanked: 803 times

Re: PIC18F15Q41

Post by BenR »

Hello Dirk,
It seems that the LUT component is not working either. Instead of a sine wave, it produces a random output. An up-down counter produces a triangular signal at the output of the PWM.
Can you post a simple project file that demonstrates this issue and we will investigate.

Since the last update (PIC_CAL_SPI.c), the compiler crashes with an error message.
What error message are you getting, again can you provide a project file and the .msg.txt file that is generated so we can investigate.

DirkB
Posts: 111
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

The compiler ran once without errors. After updating cal_spi.fcpx, the compiler crashes with an error message. The current project only has interrupt pins, interrupt IOC, MIDI, and digital inputs and outputs. Remapping the MIDI component only offers port C. According to the data sheet, the component can be mapped to all port pins. I will prepare a small project and post it.
I wish everyone a happy new year.

regards
Bambledrive-18F05Q41-V1.0.c:4576:15: error: (255) not a member of the struct/union ""
Bambledrive-18F05Q41-V1.0.c:4576:18: error: (182) illegal conversion between types
int -> volatile union S1713
Bambledrive-18F05Q41-V1.0.c:4594:15: error: (255) not a member of the struct/union ""
Bambledrive-18F05Q41-V1.0.c:4594:18: error: (182) illegal conversion between types
int -> volatile union S1713
Bambledrive-18F05Q41-V1.0.c:4616:15: error: (255) not a member of the struct/union ""
Bambledrive-18F05Q41-V1.0.c:4616:18: error: (182) illegal conversion between types
int -> volatile union S1713
Bambledrive-18F05Q41-V1.0.c:4634:15: error: (255) not a member of the struct/union ""
Bambledrive-18F05Q41-V1.0.c:4634:18: error: (182) illegal conversion between types
int -> volatile union S1713
(908) exit status = 1

Error returned from [xc8.exe]

C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\batch\pic_xc8_comp.bat Hat den Fehlercode 0x1 gemeldet

Autoclose turned off

medelec35
Valued Contributor
Posts: 2289
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 713 times
Been thanked: 775 times

Re: PIC18F15Q41

Post by medelec35 »

Hi Dirk.
it looks like you have not attached requested .fcfx project file.
If what you posted is not the full msg.txt file then you will need to attach that as well.
Martin

DirkB
Posts: 111
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hello Martin,

Port C is not available for patching. This applies to all PIC18FxxQ41, 14-pin, and 20-pin devices. I can only send a project file once port C is also available for patching, as my PCB is designed for port C. Please also activate port C for patching.

Thank you.

medelec35
Valued Contributor
Posts: 2289
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 713 times
Been thanked: 775 times

Re: PIC18F15Q41

Post by medelec35 »

Hi Dirk.
I don't work for Matrix anymore.
it will be Ben or Steve dealing with with any issues.
Also VC members including myself will help out when we can in our own spare time.
Martin

BenR
Matrix Staff
Posts: 2211
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 607 times
Been thanked: 803 times

Re: PIC18F15Q41

Post by BenR »

Hello,

I've opened up the remapping on the Q41 family now so it's for all pins and not just the masked ports.

Hopefully this should help.

DirkB
Posts: 111
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Hello Ben,
interrupts 0, 1, and 2 are not working. When mapping the PIC18F05Q41, Port B is also listed as an option.
The PIC18F05(06)Q41 has 14 pins. It does not have a Port B. Only the 20-pin chips have a Port B. When will the component be completed?
I2C is also very important.


Thank you

DirkB
Posts: 111
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Sorry, unfortunately, the DAC isn't working either—neither in the simulation nor on the chip.

DirkB
Posts: 111
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

Sorry, the DAC works. I didn't realize it's an 8-bit DAC, not a 5-bit one. Unfortunately, the EEPROM isn't working.

DirkB
Posts: 111
Joined: Thu Dec 10, 2020 3:55 pm
Has thanked: 1 time
Been thanked: 4 times

Re: PIC18F15Q41

Post by DirkB »

I've been experimenting a bit, INT pins 0, 1, and 2 aren't working. If I switch to IOC, is there an entry for that!?

// Unterbrechung
st_bit(INTCON0, GIE);
IOCAP=0x0;
IOCAN=0x4;
IOCCP=0x0;
IOCCN=0x0;st_bit(PIE0, IOCIE);

Yes, the last line is a bit strange. The interrupt works then, but only once.
If I change st_bit(PIE0, IOCIE); as the last line, the problem persists.

Post Reply