Search found 362 matches

by Doj
Tue Jun 02, 2009 12:33 pm
Forum: Modules
Topic: USART.WaitFor Question
Replies: 6
Views: 5033

The buffer will stop receiving data if you do not read from the buffer. The posts above tell you how to clear the buffer before you start to receive data and be sure that both bytes are empty. Program test_SERIAL 'device=18F4620<<<< place your device here Clock=8 Include "usart.bas" Dim test_string ...
by Doj
Mon May 25, 2009 5:23 pm
Forum: Compiler
Topic: Project too complex for the compiler?
Replies: 12
Views: 6776

Hello liak, The solution is in the text. I have found the need for a "GLOBAL" INCLUDE that is part of every module and it contains any routine that is used by modules that call routines in each other. It is quite hard to explain but really is not that likely to happen. I no longer have any issue of ...
by Doj
Sat May 23, 2009 9:11 pm
Forum: Compiler
Topic: Project too complex for the compiler?
Replies: 12
Views: 6776

I would not worry about it, its just a matter of understanding perceived problems.

There is not a problem with the compiler rather the use of it and I now never see any issues like this.
by Doj
Sat May 23, 2009 1:56 pm
Forum: Compiler
Topic: My first project with swordfish!!!
Replies: 27
Views: 12803

To use the internal oscillator in a real piece of hardware (the only real test) the OSCCON register will need bits 4,5 and 6 setting for 8MHz. When you use the "clock" in Swordfish it does NOT do anything to the PIC chip, no registers are altered in the PIC, it is purely to tell the compiler what it...
by Doj
Fri May 22, 2009 11:07 pm
Forum: Compiler
Topic: My first project with swordfish!!!
Replies: 27
Views: 12803

I use internal oscillator always for serial data but I never use more than 19200 baud so it is no problem. If you use higher speed then you could easily be asking for trouble. I would make it much slower to start with, say 9600/19200 for the tests, in a noisy environment like a car the slower the be...
by Doj
Fri May 22, 2009 7:59 pm
Forum: Compiler
Topic: My first project with swordfish!!!
Replies: 27
Views: 12803

psyche you should read the help file. It tells you exactly how to use a for next loop. for variable = expression to expression [step expression] {statements} next The for…next loop will execute one or more statements a predetermined number of times. Unlike while…wend or repeat…until loops, the for…n...
by Doj
Wed May 20, 2009 8:35 am
Forum: Modules
Topic: Starting with SPI. Need some help!
Replies: 2
Views: 2786

Hello Francesco, in my own experience SPI is more about the hardware interface rather than the code to drive it. Having used SPI on many devices I have found that you need to pick the device you want to use then get to grips with its own requirements. Memory devices tend to have similarities between...
by Doj
Tue May 19, 2009 9:15 am
Forum: Compiler
Topic: 18F46K20.bas
Replies: 2
Views: 2311

Thank you David that will do perfectly.
by Doj
Mon May 18, 2009 9:48 pm
Forum: Compiler
Topic: 18F46K20.bas
Replies: 2
Views: 2311

18F46K20.bas

I have a little issuette with regards to the amount of EEPROM available in a device, I am currently using the 46K20 but have a program that might work with a different device with lower amounts of EEPROM. I had hoped to use _eeprom from the 18F46K20.bas as the indicator but it is not recognised as a...
by Doj
Mon May 18, 2009 12:44 am
Forum: General
Topic: Writing own bootloader
Replies: 5
Views: 4345

I am soon to work on this for a commercial product.
It will be the hard way and learn the method and convert the code to SF.
If there are any real stumbling blocks I can let you know.
by Doj
Tue May 12, 2009 4:04 pm
Forum: General
Topic: Writing own bootloader
Replies: 5
Views: 4345

Hello liak,
Have a look on Microchip website for AN851.
This will tell you everything.
by Doj
Mon May 11, 2009 11:24 pm
Forum: User Modules
Topic: 18F26K20 SD Testing
Replies: 55
Views: 38532

It is NOT A COMPILER ISSUE. If you take a good look at the thread you will see the issue lies at Microchips door. The configuration files are generated automatically using Microchip information which for some unknown reason has been published incorrectly in this instance (copied no doubt from a prev...
by Doj
Mon May 11, 2009 8:11 pm
Forum: User Modules
Topic: 18F26K20 SD Testing
Replies: 55
Views: 38532

Take a look at my thread to see if this solves the issue.
http://www.sfcompiler.co.uk/forum/viewt ... ight=46k20
by Doj
Mon May 11, 2009 3:30 pm
Forum: General
Topic: Looking for PIC MultiCalc
Replies: 2
Views: 3914

look here at post 6
http://www.picbasic.co.uk/forum/showthread.php?t=11127
From Mr-E himself
by Doj
Tue May 05, 2009 7:53 am
Forum: Compiler
Topic: My first project with swordfish!!!
Replies: 27
Views: 12803

Looks perfect to me, I always either check the USART TX buffer flag or place a small delay after sending each character as the USART buffer is only a single character and if you try to load another character into it before it is empty the current character will be corrupted.