Search found 1220 matches

by Jerry Messina
Fri Jun 19, 2020 5:03 pm
Forum: General
Topic: Diagnostics hardware
Replies: 13
Views: 1021

Re: Diagnostics hardware

> just a shorter period of interruption.

Have you thought about just making the transmitter interrupt driven?

Write your message to a buffer, enable the TX interrupt and let it send things out while you go about your business.
by Jerry Messina
Fri Jun 19, 2020 2:10 pm
Forum: General
Topic: Diagnostics hardware
Replies: 13
Views: 1021

Re: Diagnostics hardware

Well, if you're sending date out a UART they you could always crank up the speed, but that depends on your pic, clock, etc. Most of the PC USB-TTL uart interfaces I use w/pics work up to about 230K baud with no problems, and 460K if you're careful. If you want to send stuff out using SPI or I2C, I t...
by Jerry Messina
Fri Jun 19, 2020 1:07 pm
Forum: General
Topic: Diagnostics hardware
Replies: 13
Views: 1021

Re: Diagnostics hardware

Unless I want some sort of runtime log of events I use the ICSP debugger w/any of the pickits or ICD's.
That way there's pretty much no overhead in code size or time.

How are you sending stuff out the ICSP pins? Software UART? If so, what speed?
by Jerry Messina
Thu Jun 18, 2020 1:35 pm
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 546

Re: Clock Speed

Right now, any 'delayus' or 'delayms' calls will cause a problem with 'clock' settings < 1

I'll have to take a look at that...
by Jerry Messina
Thu Jun 18, 2020 11:03 am
Forum: Compiler
Topic: Clock Speed
Replies: 8
Views: 546

Re: Clock Speed

It looks like it's ignoring any fractional portions of the 'clock' statement when it generates a delay (MHz resolution only).

Anything < 1MHz is evaluating to 'clock = 0' so it blows up and doesn't generate any library code (hence the missing 'SBCDSTD')
by Jerry Messina
Tue Jun 16, 2020 3:44 pm
Forum: Announcements
Topic: IDE Assembler Plugin V2.0.0.2
Replies: 0
Views: 683

IDE Assembler Plugin V2.0.0.2

The IDE Assembler Plugin has been updated to provide support for using mpasmx and long file names

https://www.sfcompiler.co.uk/wiki/pmwik ... er.Plugins

This update is now included as part of the installation of V2.2.3.4 and above
by Jerry Messina
Tue Jun 16, 2020 1:50 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1547

Re: Default Variable Assignment

@octal - good to see you made it back. Guess you cleared up your browser issue, whatever that was. @David - Well I never...and how did you discover that new meaning exactly I just happened to use that there "Oogle" thingamabob for "RHS" and that was one of the first few that popped up. Never a dull ...
by Jerry Messina
Tue Jun 16, 2020 12:29 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1547

Re: Default Variable Assignment

... and just to be REALLY clear, my use of "RHS" was NOT how the Urban Dictionary defines it!

https://www.urbandictionary.com/define.php?term=RHS
by Jerry Messina
Mon Jun 15, 2020 4:09 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1547

Re: Default Variable Assignment

Code: Select all

dim x as byte
dim y as byte

y = x
gives me "variable x might not have been initialized"

If you don't define an initializer then the variable doesn't get assigned anything, just as before.

Until you use 'x' on the RHS of an expression it doesn't matter.
by Jerry Messina
Mon Jun 15, 2020 2:22 pm
Forum: Compiler
Topic: Default Variable Assignment
Replies: 27
Views: 1547

Re: Default Variable Assignment

...you can have function calls in your initialisation code.
Cool!
by Jerry Messina
Mon Jun 15, 2020 2:19 pm
Forum: Compiler
Topic: Using I2C to scan for devices
Replies: 2
Views: 264

Re: Using I2C to scan for devices

Here's how I do it: Bit 0 of the address is the RD_WRN bit, so I only use the even numbered "addresses". (I can't recall ever seeing a "read-only" device). If the slave is present, it will ACK its address byte, so no other data needs to be sent. Besides, you never know what you might be doing there....
by Jerry Messina
Mon Jun 15, 2020 11:35 am
Forum: Announcements
Topic: Online update - 15-06-2020
Replies: 0
Views: 683

Online update - 15-06-2020

There is a new compiler update (2.2.3.3) available for registered users. Download: http://www.mecanique-web.co.uk/downloads/swordfish-si.exe and enter your activation key to install. You can view a list of changes here: https://www.sfcompiler.co.uk/wiki/pmwiki.php?n=Swordfish.VersionHistory For SE v...
by Jerry Messina
Sun Jun 14, 2020 10:07 pm
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 799

Re: USB HID Bootloader v1.4.3 over memory

What, no eBidet? What kind of backwards place have I signed up for?

I guess I'll just have to stay socially distant and keep working remotely!
by Jerry Messina
Sat Jun 13, 2020 8:54 pm
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 799

Re: USB HID Bootloader v1.4.3 over memory

David gave me a virtual parking space a while back... now if I could just get my jeep across the pond I'd be in like flint.

I asked for a key to the virtual executive washroom but no go!
by Jerry Messina
Sat Jun 13, 2020 4:09 pm
Forum: Modules
Topic: USB HID Bootloader v1.4.3 over memory
Replies: 10
Views: 799

Re: USB HID Bootloader v1.4.3 over memory

I modified HIDBootloader18F.bas to reduce its memory footprint. For the 2553 I think it comes in somewhere around 4076 bytes now when using USBsystem.bas V1.4.4, so you can enable the LED again if you like. There's also a new setting that will reduce it a bit more as long as you don't need IDLOC pro...