Search found 1197 matches

by David Barker
Tue Dec 12, 2006 9:16 pm
Forum: Modules
Topic: Clearing some areas from the GLCD
Replies: 31
Views: 16558

You might want to go to the wiki and download a font converter update http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.UsefulLinks This version will allow you to set a range of ASCII characters to generate. When you have downloaded the executable, double click to install the plugin. From ...
by David Barker
Tue Dec 12, 2006 7:32 pm
Forum: Modules
Topic: Clearing some areas from the GLCD
Replies: 31
Views: 16558

You shouldn't call WriteImageByte() directly - that's why it is private. Don't change private to public with modules supplied with the compiler unless you know what you are doing or have been told to do so. Use SetImage() - try the sample file GLCDImage.bas to see how it is used - it displays a (8 x...
by David Barker
Tue Dec 12, 2006 4:40 pm
Forum: Modules
Topic: Clearing some areas from the GLCD
Replies: 31
Views: 16558

CS

Can you contact me via email so that I can send a new GLCD module for you to test...
by David Barker
Mon Dec 11, 2006 5:26 pm
Forum: IDE
Topic: Where is the Image Converter Plugin?
Replies: 2
Views: 3254

The image converter referenced in the help file is for the S1D15G00. If you are using monochrome, you will need a different image converter.

Steven Wright has written one for Swordfish which he is just testing. When he is happy with it, I'll put it on the wiki for download...
by David Barker
Sat Dec 09, 2006 8:32 am
Forum: Modules
Topic: Clearing some areas from the GLCD
Replies: 31
Views: 16558

> The problem with the width of the text (the leftovers) would
> hopefully solved by David.

Yes, I will look into this and make some changes. I will let you know when it is done...
by David Barker
Thu Dec 07, 2006 6:19 pm
Forum: Compiler
Topic: Detecting if I2C has been Initialized
Replies: 1
Views: 2326

The compiler won't be able to detect if it has been initialised or not, if that is what you mean. If you are writing a module that uses I2C, you can call 'Initialize' from within the code section of the module to ensure it is called before the main program executes. However, you will probably need a...
by David Barker
Thu Dec 07, 2006 6:11 pm
Forum: Compiler
Topic: Reading FLASH
Replies: 7
Views: 4943

The MCU has gone to sleep (END) before the USART has time to output all characters. Try putting a delay before END. Alternatively,

Code: Select all

Write ("$",HexToStr(CSUM,4), 13, 10) 
should do the trick...
by David Barker
Thu Dec 07, 2006 1:33 pm
Forum: Compiler
Topic: Reading FLASH
Replies: 7
Views: 4943

In order to calculate a checksum, you will need to read each byte in ROM. Here is some code which will read a byte from any address location function ReadByte(pAddress as TABLEPTR) as byte asm- TBLRD *+ movff TABLAT, result end asm end function function ReadByte(pAddress as longword) as byte TBLPTRU...
by David Barker
Tue Dec 05, 2006 1:29 pm
Forum: Modules
Topic: Expand the DS1820 library
Replies: 3
Views: 3952

I've posted a short article on the wiki showing how you can use Swordfish to connect to multiple OW devices of the same family...

http://www.sfcompiler.co.uk/wiki/pmwiki ... B20Article
by David Barker
Mon Dec 04, 2006 9:57 pm
Forum: Modules
Topic: Expand the DS1820 library
Replies: 3
Views: 3952

Nice to see you are getting to play will the compiler. According to the DS18S20 datasheet... "The temperature data is stored as a 16-bit sign-extended two’s complement number in the temperature register" So you shouldn't need to do what you are doing as pTemp is already a signed number. You also sho...
by David Barker
Mon Dec 04, 2006 5:58 pm
Forum: Compiler
Topic: Hardware SPI
Replies: 2
Views: 3016

If it is something I can test here, I might be able to assist - what sort of thing is it you are needing help with?
by David Barker
Sun Dec 03, 2006 9:22 am
Forum: Modules
Topic: Again OneWire-problems
Replies: 8
Views: 6248

> can you nevertheless explain how I have to set the RomID > because I think it's the same on DS18B20 or DS18S20. It's very easy. Here is an example which works with a DS18B20, using the following details (obtained from owsearch.bas) FAMILY $28 ($3F) ($0000002CD16E) // import modules... include "DS1...
by David Barker
Sat Dec 02, 2006 9:08 pm
Forum: Modules
Topic: Again OneWire-problems
Replies: 8
Views: 6248

That device is a DS18S20, not a DS18B20 - different family.
by David Barker
Sat Dec 02, 2006 8:47 pm
Forum: Modules
Topic: Again OneWire-problems
Replies: 8
Views: 6248

You have not given the full output from the owsearch.bas example, so I cannot see the device family. Please supply the full information. Here is my output FAMILY $28 ($3F) ($0000002CD16E) FAMILY $05 ($F1) ($00000019F75D) FAMILY $05 ($90) ($0000001A20B7) FAMILY $23 ($CA) ($0000005C62EE) 4 device(s) f...
by David Barker
Fri Dec 01, 2006 4:46 pm
Forum: Compiler
Topic: Even the examples run into Demolimit
Replies: 14
Views: 7174

> It is difficult to be patient when I can see that the money is > away since the 15.11.06 and nothing happens. Today I have > tried again (and for last time) to contact the seller. If he > wasn't answer until next week, then I contact David Baker > directly and try to demand the money back! (My Ban...