Search found 1878 matches

by yo2lio
04 Jan 2022 16:25
Forum: mikroBasic PRO for PIC32 General
Topic: PIC32MZ2048EFH144 - compiler problem
Replies: 16
Views: 3591

Re: PIC32MZ2048EFH144 - compiler problem

Hi,

Mileta, solve one year ago, the 64 bit division problem.

If you solve the math float in interrupt problem, I can test in the big software, that now are compiled with ECH...

Thank you very much.

PS: I use MP...
by yo2lio
03 Jan 2022 12:43
Forum: mikroBasic PRO for PIC32 General
Topic: PIC32MZ2048EFH144 - compiler problem
Replies: 16
Views: 3591

Re: PIC32MZ2048EFH144 - compiler problem

MZ MCU, it's a very very good MCU.

Probably something in the compiler with shadows registers, stack, etc...

I'm sure that ME team will solve this.

So, ME team, PIC32MZ with FPU, can't do any float math in interrupt.

I'm glad that you solve the problem. :D
by yo2lio
03 Jan 2022 12:21
Forum: mikroBasic PRO for PIC32 General
Topic: PIC32MZ2048EFH144 - compiler problem
Replies: 16
Views: 3591

Re: PIC32MZ2048EFH144 - compiler problem

Hi,

A Happy New Year!

1. Try to move all local variables to global variables, specially the float type.

If still not work:

2. Try to do not use float math in interrupt.

You have there in CAN interrupt:

can_vfr = word_can / 100.0
can_vrr = word_can / 100.0

Find an workaround for this.
by yo2lio
29 Dec 2021 18:59
Forum: mikroBasic PRO for PIC32 General
Topic: PIC32MZ2048EFH144 - compiler problem
Replies: 16
Views: 3591

Re: PIC32MZ2048EFH144 - compiler problem

Hi, The problem is related with the FPU. Try to compile the same code with ECH144 instead of EFH144. In this mode, the compiler will not use the FPU. I had this problem, two years ago, with PIC32MZ2048EFH064. To solve the problem, I do a lot's of workaround and I wrote a part of the code in ASM (the...
by yo2lio
20 Jan 2021 17:41
Forum: mikroPascal PRO for PIC32 General
Topic: PIC32MZ I2S generator
Replies: 2
Views: 1742

PIC32MZ I2S generator

Hello, Here is a small example for how to use the PIC32MZ I2S master. My code, generate 100Hz, 1KHz, 10KHz, 20KHz, out to I2S, at 180kbps, 24bit. The I2S must be connected to a 24bit I2S DAC. For test, I used EasyPic Fusion V7, PIC32MZEFH144, with the folowing config: Clock form external on board 24...
by yo2lio
20 Jan 2021 17:30
Forum: mikroPascal PRO for PIC32 General
Topic: Q31 FFT library for PIC32
Replies: 0
Views: 1128

Q31 FFT library for PIC32

Hello ME team,

Any chance to have Q31 FFT library for PIC32MZ.

Thank you very much.
by yo2lio
20 Jan 2021 17:26
Forum: mikroPascal PRO for PIC32 General
Topic: Pic32Mz Interrupt
Replies: 2
Views: 1551

Re: Pic32Mz Interrupt

Hello Dany, I have a lot's of software with multiple Uart interrupts on PIC32MZ and all works. True, all are on priority 7, I didn't was able to change the priority and to work... procedure Int_ovf_UART; // must be called at 1 ms begin if inc(UART1_ovf) > UART1_Timeout then // UART1_Timeout ms begin...
by yo2lio
05 Feb 2020 13:41
Forum: mikroPascal PRO for PIC32 General
Topic: PIC32MZ Interrupt bug
Replies: 7
Views: 2989

Re: PIC32MZ Interrupt bug

Thank you Filip, I will try and let you know the result. I have another issue: I run in simulator a part of the code, where the time was critical. The simulator say 4uS but in reality was around 6.2uS. Seems that the simulator not count correctly, or count but round the decimals... or so... Thank yo...
by yo2lio
29 Jan 2020 19:21
Forum: mikroPascal PRO for PIC32 General
Topic: PIC32MZ Interrupt bug
Replies: 7
Views: 2989

Re: PIC32MZ Interrupt bug

Hello Filip, Here is the code: { * Project name: Timer1_interrupt (Timer1 interrupt test) * Copyright: (c) Mikroelektronika, 2017. * Revision History: 20170718: - Initial release; * Description: This code demonstrates how to use Timer1 and it's interrupt. Program toggles LEDs on PORTB. * Test config...
by yo2lio
28 Jan 2020 06:00
Forum: mikroPascal PRO for PIC32 General
Topic: PIC32MZ Interrupt bug
Replies: 7
Views: 2989

Re: PIC32MZ Interrupt bug

Hello,

I have the same problems with PIC32MZ and priority interrupts.

Mikroe team, can you help us? With some compiler updates?

Thank you very much.
by yo2lio
20 Jul 2018 14:59
Forum: mikroPascal PRO for PIC32 General
Topic: PIC32 compiler support PIC32MM0256GPM048
Replies: 1
Views: 2008

PIC32 compiler support PIC32MM0256GPM048

Hello,

Any plans for compiler to support PIC32MM series MCU's?

I'm interested special for PIC32MM0256GPM048 and Mikropascal.

Thank you.
by yo2lio
28 Jan 2017 09:07
Forum: mikroBasic PRO for PIC General
Topic: MOVLB bank switch, compiler error
Replies: 3
Views: 2423

Re: MOVLB bank switch, compiler error

Hi Janni,

Thank you.

I will go to 7.0

Normally, I don't like to do this (to change the compiler version in the middle of the project).

Thank you again.
by yo2lio
27 Jan 2017 20:08
Forum: mikroBasic PRO for PIC General
Topic: Additional library for MikroBasic PRO 2009
Replies: 125
Views: 102268

Re: Additional library for MikroBasic PRO 2009

Source code in basic for pic additional string library. Enjoy! module pic_additional_string_library sub procedure PIC_additional_string_library_version(dim byref version_ as string[$FF]) sub procedure SaveAll sub procedure Mem_Set_Short(dim p as word, dim ch as char, dim n as byte) sub procedure Mem...
by yo2lio
27 Jan 2017 20:05
Forum: mikroBasic PRO for PIC General
Topic: MOVLB bank switch, compiler error
Replies: 3
Views: 2423

MOVLB bank switch, compiler error

Hi, After several days of hard debugging, I discovered a big problem, for P18 mcu. program test_MOVLB dim i as byte absolute $200 dim j as byte absolute $300 main: i = ((j and $10) >> 4) + 48 end. This code generate the following asm: ;test.mbas,7 :: i = ((j and $10) >> 4) + 48 0x001C 0x0102 MOVLB 2...
by yo2lio
17 Dec 2016 15:40
Forum: mikroPascal PRO for PIC32 General
Topic: PIC32MZ2048EFH100 ADC help
Replies: 7
Views: 6168

Re: PIC32MZ2048EFH100 ADC help, solved

Hi,

Solved!

I removed atomic declaration from declaration registers and works!

Go to advanced search