I like where your heading with that method Jerry - its not a direct fix, though a workaround none-the-less!
While I understand your intent, could you give me a quick demo (the code doesn't need to be functional - just want a look at your approach/structure)
Search found 200 matches
- Sat May 01, 2010 12:57 pm
- Forum: Compiler
- Topic: Disable RAM Optimisation?
- Replies: 16
- Views: 10715
- Sat May 01, 2010 1:49 am
- Forum: Compiler
- Topic: Disable RAM Optimisation?
- Replies: 16
- Views: 10715
Thanks for the reply Matt. I use the same approach, though it doesn't fix my issue unfortunately. You should be able to save all your vars using save(0,var1,var2,etc.) according to the help file. That will only work with public or locally defined private variables within the interrupt itself. It wil...
- Fri Apr 30, 2010 8:15 am
- Forum: Compiler
- Topic: Disable RAM Optimisation?
- Replies: 16
- Views: 10715
Disable RAM Optimisation?
Is there a way to disable the RAM optimisation? (If SF appears to share/recycle locally declared variables to optimise memory.) SF gets it right 95% of the time, though I have run into issues especially when dealing with interrupt driven code. I'm using Save(0) etc - also, I'm not calling the subs/f...
- Sat Apr 24, 2010 5:03 am
- Forum: Compiler
- Topic: Small issue with PIC18F87J10
- Replies: 2
- Views: 2770
Found this post after running into the same issue. The linked zip file is either corrupt or does not contain any data. A work around for both the 18F4410 and 18F45J10 ; Device = 18F45J10 Clock = 40 Config FOSC = HSPLL, FOSC2 = ON (manually set the FOSC2 config setting to ON) Edit - I am enabling PLL...
- Mon Apr 05, 2010 11:25 am
- Forum: Compiler
- Topic: "wend" problem trying to find what am i doing wron
- Replies: 8
- Views: 4991
So on an error, first look at the line where it's happened, and it that looks reasonable, start working backwards up the code.... Right on Jon. 9/10 times the error is a result of something above the line it flagged it on. Just the way the compiler works. Consider this not so useful program: Dim tm...
- Sun Mar 14, 2010 10:56 am
- Forum: General
- Topic: How close is the Swordfish 24F compiler?
- Replies: 63
- Views: 81746
I am driven by the word from Steve a while back that Dave will soon be back. Though this is definitely an extended break of official support. I could not put a number on how many posts/comments/articles I have read where someone has recommended the use of SF over other compilers. Perhaps the SE limi...
- Thu Mar 11, 2010 10:37 am
- Forum: General
- Topic: Pic 16F887 compatible with swordfish ?
- Replies: 1
- Views: 2238
does that mean, that the 16f887 is not compatible with swordfish ? SF only supports the 18F range of PIC's. There are plenty of benefits for this restriction, most of them relating to the fact that 16F's are quite old. List of supported devices; http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=Swordfi...
- Sun Feb 21, 2010 11:06 am
- Forum: Compiler
- Topic: ADC module and interrupt/context saving question
- Replies: 3
- Views: 3297
I have not gone to far into your code, though I noticed that you are calling ADC.read from inside the interrupt. AD.Read is a blocking call that will take time to complete. Perhaps setting the ADC conversion start bit within the interrupt would be a better solution? That way you could simply poll th...
- Fri Feb 12, 2010 2:04 pm
- Forum: Compiler
- Topic: RC servo control
- Replies: 78
- Views: 69629
I'm overlooking something here... Trying to use xor's servo code (posted on page 3 of this topic), though I find the servo refreshes are operating at 400Hz instead of the desired 50Hz The original program is quite lengthy, and it has been reduced to xor's *working* code with a simple function return...
- Sat Jan 16, 2010 11:28 am
- Forum: Compiler
- Topic: Strange SE Limitation
- Replies: 9
- Views: 5313
Are there any other limitations such as program memory usage (or some other)? I'd like to try all that stuff out b/f buying the complete version....... Swordfish SE only has two limitations from what I understand; 1) 200 byte RAM limitation 2) No USB support From there, the rest of the program is f...
- Sat Jan 16, 2010 11:14 am
- Forum: Compiler
- Topic: Strange SE Limitation
- Replies: 9
- Views: 5313
I can appreciate why scaled integer math would run faster and take less storage but why not use flt pt if storage and sufficient cycles are available? From my POV - Scaled integer maths is white hat programming when considering the devices in use. Becoming familiar with the approach will allow code...
- Fri Jan 15, 2010 6:05 am
- Forum: Compiler
- Topic: Strange SE Limitation
- Replies: 9
- Views: 5313
- Fri Jan 15, 2010 6:02 am
- Forum: Compiler
- Topic: Strange SE Limitation
- Replies: 9
- Views: 5313
The FloatToStr function in the system library "convert.bas" will exceed the free version limitations, if you want an alternative then try using the FloatToStrSE module found in the User Wiki http://www.sfcompiler.co.uk/wiki/pmwiki ... oatToStrSE (written by Florin Medrea)
- Thu Dec 17, 2009 11:21 am
- Forum: Compiler
- Topic: compiler include for 18F2650 and 4650
- Replies: 10
- Views: 5844
Re: compiler include for 18F2650 and 4650
Hi free_electron, do you have a datasheet link for the 18fx650 pic's? Unless I missed something on my searches - they don't appear to exist??free_electron wrote:anyone know if i can just copy over the defines for the 2550 and 4550 ?
i would like to use the 2650 and 4650 because of double the rom ...
- Tue Dec 15, 2009 10:08 am
- Forum: General
- Topic: Inverting Serial Data without MAX232.
- Replies: 6
- Views: 4565
Looks like a feature list rather then a complete datasheet, though chances are it is operating at +/-5V RS232 voltage levels. King Snake from the digital-diy.com forums (he also gets around here at SF) recently had a similar issue, and came up with some solutions If it is using standard RS232 voltag...