Search found 312 matches

by arco
13 Nov 2023 12:04
Forum: mikroBasic PRO for PIC General
Topic: Compiler support
Replies: 3
Views: 342

Re: Compiler support

That would be nice, because now we have nothing...
(old compilers aren't supported anymore and new compilers aren't available...)

It wouldn't be too much to ask to at least add some new pic types to the compilers?
(newest pic supported is more as 7 years old!... )
by arco
13 Nov 2023 11:54
Forum: mikroBasic PRO for PIC General
Topic: calling sub procedures
Replies: 2
Views: 248

Re: calling sub procedures

You cannot use one sub/procedure in both main program and interrupt, because they run asynchronously.
At the least the result would be very unreliable.

Making everything re-entrant would generate a lot of extra code.
by arco
10 Nov 2023 15:53
Forum: mikroBasic PRO for PIC General
Topic: Compiler support
Replies: 3
Views: 342

Compiler support

Will there be any support for the basic compilers (pro/pic24/pic32) in the near future or are they 'dead and buried'? Last small upgrade is 5 years old, most modern pics aren't supported so compiler becomes useless. (mentioned bugs aren't addressed for more as 10 years!) Has the 'lifetime support' e...
by arco
13 May 2022 17:10
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: Get error trap address
Replies: 1
Views: 1093

Re: Get error trap address

This works! :D (seems 18 parms are pushed on stack...)

Code: Select all

 
Sub procedure address() iv IVT_ADDR_ADDRESSERROR ics ICS_AUTO
  asm
    mov w15, w0
    sub #36,w0
    mov [w0++], w1
    mov w1, _trapaddr
    mov [w0], w1
    and #0x007f, w1
    mov w1, _trapaddr+2
  end asm
  AddrErr_bit = 0
end sub
by arco
13 May 2022 13:40
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: Get error trap address
Replies: 1
Views: 1093

Get error trap address

For an application with a 24FJ128GB108 I get Address Trap errors on irregular basis. I want to trap the address where it happens and tried this code I found somewhere, but it doesn't return correct address, always 0x00000010 Dim TrapAddr As LongWord Sub procedure address() iv IVT_ADDR_ADDRESSERROR i...
by arco
19 Mar 2022 14:27
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: Use of USB_Break
Replies: 2
Views: 1199

Re: Use of USB_Break

???

Helpfile states that USB_Break should be called from inside the interrupt routine? (not in main())
That doesn't work. (working example would be appreciated...)
by arco
11 Feb 2022 12:24
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: Use of USB_Break
Replies: 2
Views: 1199

Use of USB_Break

Is there an example how to use USB_Break() to prevent program hangs on USB reads or writes?
(it's only mentioned briefly and not very clear how to inplement in interrupt)

I added USB_Break to usb interrupt, but program still hangs (deadlocked)...
by arco
10 Feb 2022 21:49
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: Serial number in HID descriptor
Replies: 2
Views: 1283

Re: Serial number in HID descriptor

Thanks,

Would have been nice if you could add serialnumber and interrupt or polling choice to HID terminal descriptor creation.
(now you need to add manually)
by arco
02 Feb 2022 10:58
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: Serial number in HID descriptor
Replies: 2
Views: 1283

Serial number in HID descriptor

Is there an example of how to use the Serialnumber string in a HID descriptor?
(HID terminal only supports Vendor and Product strings...)
by arco
27 Sep 2021 13:28
Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
Topic: Problem with 'AT' keyword
Replies: 2
Views: 1338

Problem with 'AT' keyword

If I define a structure and a character array at the same position: Structure Blk Dim PPCheck As Char[5] PPAmount As Char[8] PPMin As Char[5] VolSpkr As Char[5] VolMicr As Char[5] ConnectMax As Char[5] HotDialDel As Char[5] Provider As Char[5] OutTime As Char[5] InState As Char[5] MeldTijd As Char[5...
by arco
02 Jul 2021 09:43
Forum: mikroBasic PRO for PIC General
Topic: Result in Asm
Replies: 6
Views: 1343

Re: Result in Asm

After studying assembly and listing files, this seems to be the way to access Result within assembly: (with _local_ added) Sub Function SwapBits(Dim ByteIn As Byte) As Byte Result = 0 Asm rrf FARG_Swapbits_ByteIn,f rlf Swapbits_local_result,f rrf FARG_Swapbits_ByteIn,f rlf Swapbits_local_result,f rr...
by arco
30 Jun 2021 08:26
Forum: mikroBasic PRO for PIC General
Topic: Result in Asm
Replies: 6
Views: 1343

Re: Result in Asm

That would be usable, but the Rx registers are also used by the compiler.
How do I know a certain register (for example R0) is free?
by arco
29 Jun 2021 19:23
Forum: mikroBasic PRO for PIC General
Topic: Result in Asm
Replies: 6
Views: 1343

Re: Result in Asm

Compiler also uses a var named result, it would be silly to use yet another var.
I only need to know how to access result in the asm portion of a function...
by arco
29 Jun 2021 10:39
Forum: mikroBasic PRO for PIC General
Topic: Result in Asm
Replies: 6
Views: 1343

Result in Asm

How do you use Result (function return parameter) in an Asm part of a function?
(Result, _Result, MyFunction_Result, FARG_MyFunction_Result,...?)
by arco
19 Dec 2020 01:39
Forum: mikroBasic PRO for PIC General
Topic: 18FxxQxx support
Replies: 5
Views: 1411

Re: 18FxxQxx support

It's only a question of creating linker and definition files for the new processors, not a 'big job'...
I'll see if it's doable myself, because support from MikroE takes years...

Go to advanced search