Search found 1199 matches
- Wed Oct 16, 2024 1:04 pm
- Forum: Compiler
- Topic: unable to open .bas files
- Replies: 4
- Views: 176
Re: unable to open .bas files
What was the problem?
Re: Key
I have sent you a PM
- Wed Dec 27, 2023 10:42 am
- Forum: User Modules
- Topic: rs-485
- Replies: 12
- Views: 48945
Re: rs-485
I think Jerry has covered it, but this is what I put on my website some time ago:
http://www.mecanique-web.co.uk/downloads/umc/
the protocol PDF may be of interest
http://www.mecanique-web.co.uk/downloads/umc/
the protocol PDF may be of interest
- Thu Jun 22, 2023 6:28 am
- Forum: General
- Topic: PMs not sending
- Replies: 1
- Views: 3366
Re: PMs not sending
You're messages don't show as sent until someone picks them up.
- Thu Jun 22, 2023 6:27 am
- Forum: Compiler
- Topic: install issue
- Replies: 1
- Views: 3535
Re: install issue
I have PM'd you.
- Mon May 22, 2023 8:20 am
- Forum: Compiler
- Topic: Interrupts and variable saving
- Replies: 13
- Views: 13475
Re: Interrupts and variable saving
Thanks Jerry!
- Tue Apr 11, 2023 11:37 am
- Forum: General
- Topic: PIC18F2550 Configuration
- Replies: 15
- Views: 14521
Re: PIC18F2550 Configuration
Hi The code you have posted looks looks more like PROTON (or POSITRON as it is called now). Some examples include: Declare Xtal = 20 => clock = 20 Dim pinLed PORTB.5 => Dim pinLed As PORTB.5 High OnLed => High(OnLed) pause 50 => delayms(50) also your block and loop constructs: while wend => while [b...
- Sun Dec 18, 2022 10:29 am
- Forum: Modules
- Topic: SD Card, PPS and the 18f26K40
- Replies: 17
- Views: 11926
Re: SD Card, PPS and the 18f26K40
> ... make a copy of the file and put it into the
> UserLibrary folder. That will override the copy in the Library folder.
> You can make changes to that file instead, and the original will always
> be there untouched.
This is the correct and best way of doing it...
> UserLibrary folder. That will override the copy in the Library folder.
> You can make changes to that file instead, and the original will always
> be there untouched.
This is the correct and best way of doing it...
- Wed Dec 14, 2022 12:01 pm
- Forum: Compiler
- Topic: access to characters in string constant
- Replies: 10
- Views: 11067
Re: access to characters in string constant
Yes, you will have to use a workaround - something like:
or
Code: Select all
Sub mySub(addr As Word)
End Sub
mySub(@"1234")
Code: Select all
Sub mySub(addr As LongWord)
End Sub
mySub(@"1234")
- Wed Dec 14, 2022 9:23 am
- Forum: Modules
- Topic: SOFTWARE UART - ASM ERRORS
- Replies: 15
- Views: 20076
Re: SOFTWARE UART - ASM ERRORS
Thanks, I can see that now. It looks like the routine isn't being linked in correctly. I can think of a number of fixes but I know Jerry has spent some considerable time on this module so don't want fiddle with his code ;-) I've asked him to take a look. In the meantime, you can add the following to...
- Wed Dec 14, 2022 8:59 am
- Forum: Compiler
- Topic: access to characters in string constant
- Replies: 10
- Views: 11067
Re: access to characters in string constant
Just for reference, if you want to pass by reference using a 32 bit pointer (rather than 16) use:
for example:
Code: Select all
#option large_code_model = true
Code: Select all
#option large_code_model = true
Const array() As Byte = (1,2,3,4)
Sub mySub(ByRefConst str() As Byte)
End Sub
mySub(array)
- Tue Dec 13, 2022 12:24 pm
- Forum: Compiler
- Topic: access to characters in string constant
- Replies: 10
- Views: 11067
Re: access to characters in string constant
It hopefully will get fixed but internally, it's a complicated change to the compiler and I certainly don't want to break anything! Purely out of interest, why are you accessing a constant in this way in your code?
- Tue Dec 13, 2022 9:32 am
- Forum: Modules
- Topic: SOFTWARE UART - ASM ERRORS
- Replies: 15
- Views: 20076
Re: SOFTWARE UART - ASM ERRORS
Can you post a small (as small as possible) piece of main program code that generates the error please
- Tue Dec 13, 2022 9:27 am
- Forum: Compiler
- Topic: access to characters in string constant
- Replies: 10
- Views: 11067
Re: access to characters in string constant
It's a known issue. You cannot do that with string constants. However, you can use an array of char constants...
- Mon Dec 05, 2022 9:36 am
- Forum: Compiler
- Topic: Subroutine Declaration order?
- Replies: 3
- Views: 4661
Re: Subroutine Declaration order?
Yes, the help file is a little outdated. Prototype was added early on but after the compiler release.
Thanks for your kind comments on the compiler...
Dave
Thanks for your kind comments on the compiler...
Dave