Search found 1197 matches

by David Barker
Wed Oct 11, 2006 3:42 pm
Forum: Compiler
Topic: Multiple (High and Low Priority) Interrupt Issues...
Replies: 14
Views: 9194

I've been thinking this one over and agree with Tim that 'saving everything' would be an extremely bad road to follow. However, I also have to agree with Steve that FSR0 and FSR1 should be saved automatically when performing a Save(0), as clearly these registers will be changed as part of the system...
by David Barker
Tue Oct 10, 2006 7:30 pm
Forum: Compiler
Topic: Multiple (High and Low Priority) Interrupt Issues...
Replies: 14
Views: 9194

Now, any words about the context saving issue. Once I got both ISRs working, I tried adding SAVE(0)...RESTORE. This generated the same erratic operation, particularly garbage on the LCD, but also resetting the value of the numbers. I know that it is overkill for my ISRs, but I would like to get a b...
by David Barker
Tue Oct 10, 2006 9:08 am
Forum: Compiler
Topic: Multiple (High and Low Priority) Interrupt Issues...
Replies: 14
Views: 9194

I've just taken a quick look at your program and there are a few things that you need to look at. As Darrel has already mentioned, you need to ensure that the IP of the interrupt matches the priority level of the ISR. You should also not clear and set any 'enable' flags from within your ISR. From th...
by David Barker
Sat Oct 07, 2006 8:25 am
Forum: User Modules
Topic: Swordfish SED 1335 Module
Replies: 20
Views: 18245

Jacks module does not currently hook into the default Swordfish GLCD library. He wrote it before the main Swordfish GLCD module was conceived, so it is very much a stand alone implementation (which works very well). However, because it does not hook into the main GLCD module, you don't get features ...
by David Barker
Fri Oct 06, 2006 7:48 pm
Forum: User Modules
Topic: Temperature Coversion Module
Replies: 9
Views: 8049

I see you have been busy playing with the wiki! I've approved the link to the image so you can take a look... If you think you will be using the wiki, I can add you to the list of people who have external link approval. Just email me with a preferred UserName and Password. You will appreciate that b...
by David Barker
Fri Oct 06, 2006 7:41 pm
Forum: Compiler
Topic: Constant Array Max Size
Replies: 2
Views: 3069

64K is the maximum for constant data. You can see an example of a large array by opening

Samples\GLCD\Nokia6100\xImages.bas

The Balloon array is a 24 bit color image which takes 25354 bytes.
by David Barker
Fri Oct 06, 2006 6:12 pm
Forum: User Modules
Topic: Temperature Coversion Module
Replies: 9
Views: 8049

An overview of editing and creating pages can be found here http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=PmWiki.EditingOverview But if you want a quick guide, read on... Go to the WKI sandbox (practice area) http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=Main.WikiSandbox then select edit. At the bot...
by David Barker
Fri Oct 06, 2006 2:57 pm
Forum: User Modules
Topic: Temperature Coversion Module
Replies: 9
Views: 8049

A great little module Darrel. Lite and well focussed... As Tim has already pointed out, please feel free to use the Swordfish Wiki to post code snippets, projects, modules etc. http://www.sfcompiler.co.uk/wiki One of the things I have noticed with other forums is that really useful bits of code (lik...
by David Barker
Thu Oct 05, 2006 9:07 am
Forum: Compiler
Topic: WDT
Replies: 9
Views: 7215

Thanks for the code. I have identified a problem with the compiler, which has now been fixed. It was caused by the line Case "HOME" LCD.WriteAt(1,1,"should home") ... this part of the case statement is always FALSE, as a single char (tempchar) can never be equal to a string ("HOME"). Removing the de...
by David Barker
Wed Oct 04, 2006 3:03 pm
Forum: Compiler
Topic: WDT
Replies: 9
Views: 7215

> even doing this doesnt work i can only get it to run if > explicitly turn off the wdt fuse in the epicwin programmer. This is my fault. If you select FILE...OPEN, then browse the 'Library' folder for 'system.bas'. Open it in the IDE. Double click on the 'lock' icon to enable editing. about halfway...
by David Barker
Wed Oct 04, 2006 1:32 pm
Forum: Compiler
Topic: WDT
Replies: 9
Views: 7215

You need to add a special compiler directive at the beginning of your main program before any include files. For example, device = 18F452 clock = 20 #option WDT = true include "usart.bas" dim Value as byte SetBaudrate(br19200) Value = ReadByte ... EXPLANATION Just using the standard config directive...
by David Barker
Wed Oct 04, 2006 9:58 am
Forum: Modules
Topic: lcd options
Replies: 2
Views: 3799

Can you try the following: (1) In the code explorer window, you will see 'LCD' in the includes section. Click on 'LCD' to open the file in the IDE (2) At the top of the LCD code, you will see a small 'lock' icon with the text "LCD is a compiler system file and is read only" Double click on the lock ...