Search found 459 matches

by Bytex
04 Jul 2010 02:29
Forum: mikroBasic PRO for PIC General
Topic: Transfer Float over USB to VB.Net
Replies: 2
Views: 2028

Re: Transfer Float over USB to VB.Net

Hello, You have to work on PIC side and on VB.NET side code modifications. The problem is the Microchip IEEE754 specific. here is the PIC solution, thanks to Florin Medrea (YO2LIO) You have to call the Microchip_To_IEEE754 procedure to convert a PIC float variable to a small four byte array before s...
by Bytex
30 Apr 2010 08:05
Forum: mikroBasic PRO for PIC General
Topic: Compiler question (Subroutine calls)
Replies: 17
Views: 6331

Re: Compiler question (Subroutine calls)

marcus wrote:

Code: Select all

if (Func1 = 1) and (Func2 = 1) then nop end if
Another question - will both functions always be called? I mean if the first executed function returns 0, will the second one be called?
The second function will not be called.
by Bytex
28 Apr 2010 06:51
Forum: mikroBasic PRO for PIC General
Topic: New MikroBasic 3.50 compiler
Replies: 4
Views: 2077

Re: New MikroBasic 3.50 compiler

Hi Barry.
I've seen your post here
http://www.mikroe.com/forum/viewtopic.php?f=91&t=24956

That error does not appear with the 3.2 release :?
by Bytex
27 Apr 2010 23:38
Forum: mikroBasic PRO for PIC General
Topic: New MikroBasic 3.50 compiler
Replies: 4
Views: 2077

New MikroBasic 3.50 compiler

Hello ME Team I've encountered a problem with the new 3.50 compiler: j = 0 while (j < DataLen) Asm TBLRD*+ End Asm BufferOut[j] = BufferOut[j] xor TABLAT inc(j) wend 1724 301 "j"is not valid identifier encryption_decryption_library.mbas It seems the compiler doesn't recognize variables after 'End As...
by Bytex
23 Apr 2010 13:22
Forum: mikroBasic PRO for PIC General
Topic: How to write the code better?
Replies: 2
Views: 1366

Re: How to write the code better?

Hello. My opinion is: You are using an two bytes address variable, so it will ever into the positive 0..65535 range. (word) By fixing the cntrl variable you can remove more lines of code like: SetConfigToI2C cntrl = 160 Soft_I2C_Start 'Starte I2C Soft_I2C_Write(cntrl) 'Schreibe Controlbyte soft_I2C_...
by Bytex
21 Apr 2010 19:22
Forum: mikroBasic PRO for PIC General
Topic: Development aid tools
Replies: 2
Views: 1362

Re: Development aid tools

Wow.
Thanks a lot Dany :D
by Bytex
17 Apr 2010 14:49
Forum: mikroBasic PRO for PIC General
Topic: Compiler question (Subroutine calls)
Replies: 17
Views: 6331

Re: Compiler question (Subroutine calls)

Thanks Colin.

Att.to: Ahmed
I can strongly say:

Code: Select all

dim byteX1 as byte
dim byteX2 as byte

byteX1 = Func1()
byteX2 = Func2()
if (byteX1=1) then
    if (byteX2=1) then
        nop
    end if
end if
Is better of yours.
This is faster and does spend less ROM...
by Bytex
17 Apr 2010 11:28
Forum: mikroBasic PRO for PIC General
Topic: Compiler question (Subroutine calls)
Replies: 17
Views: 6331

Re: Compiler question (Subroutine calls)

Dear Ahmed LAZREG.
I've no time to follow you on stupid sentences.

This is a PIC specific forum site. If you have some clever solutions for the first post, we are interessed of you.
If not, I've to say to you: Good luck. (au revoir)
by Bytex
17 Apr 2010 01:31
Forum: mikroBasic PRO for PIC General
Topic: Compiler question (Subroutine calls)
Replies: 17
Views: 6331

Re: Compiler question (Subroutine calls)

Ohh Teacher, I'm so sorry for the mistake.
I'm a beginner in PIC programming.
by Bytex
16 Apr 2010 21:22
Forum: mikroBasic PRO for PIC General
Topic: Compiler question (Subroutine calls)
Replies: 17
Views: 6331

Re: Compiler question (Subroutine calls)

Yes indeed. As you can see on ASM code, func1 is processed before func2. Sincerly, I personally would never rely on such thing. If in the future (or actully I don't know if it's not already the case), if the compiler use a code reorganisation algorithm, an algorithm that move parts of code in order...
by Bytex
16 Apr 2010 16:46
Forum: mikroBasic PRO for PIC General
Topic: Compiler question (Subroutine calls)
Replies: 17
Views: 6331

Re: Compiler question (Subroutine calls)

Yes indeed. As you can see on ASM code, func1 is processed before func2. ;Test5.mbas,15 :: if (Func1 = 1) and (Func2 = 1) then nop end if 0x0030 0xDFFA RCALL Test5_Func1 0x0032 0x5000 MOVF R0, 0 0x0034 0x0A01 XORLW 1 0x0036 0x0EFF MOVLW 255 0x0038 0xA4D8 BTFSS STATUS, 2 0x003A 0x0E00 MOVLW 0 0x003C ...
by Bytex
11 Apr 2010 22:27
Forum: mikroBasic PRO for PIC General
Topic: problems under windows 2000
Replies: 5
Views: 2416

Re: problems under windows 2000

I'm glad for you :wink:
by Bytex
11 Apr 2010 20:38
Forum: mikroBasic PRO for PIC General
Topic: problems under windows 2000
Replies: 5
Views: 2416

Re: problems under windows 2000

Hello Simon. I think you have a problem on your Windows 2K operating system. Follow this link so you can understand what is going on your computer: http://pcsupport.about.com/od/findbyerrormessage/a/gdiplus-dll-not-found-missing-error.htm Next this is the official Microsoft link where you can downlo...
by Bytex
29 Mar 2010 22:35
Forum: mikroC PRO for PIC General
Topic: Const tables gone missing??
Replies: 3
Views: 1767

Re: Const tables gone missing??

Hello.
Read this post: http://www.mikroe.com/forum/viewtopic.p ... 56&start=0

this is MikroBasic, but the problem is very close to your question.


Best regards,
by Bytex
29 Mar 2010 12:50
Forum: mikroBasic PRO for PIC General
Topic: PIC Random ROM table generator
Replies: 0
Views: 976

PIC Random ROM table generator

Hi all. I'm working on an Encryption/Decryption project. So, this is a simple VB.NET routine allow you to create a random table into the PIC ROM. The table will be located at the end of the ROM area. VB.NET (2005, 2008, 2010 release) code: Private Sub CreateRandomROMTable() Dim i As Integer Dim iRnd...

Go to advanced search