Search found 211 matches

by CharlieM
Fri May 08, 2009 9:40 pm
Forum: Modules
Topic: Problem with DS18s20, only showing -1.05 Solved!
Replies: 22
Views: 12521

Hi Gert, I also had a lot of trouble with the DS18S20 module. You can try this code and see if it works for you. You will have to change the includes and the pic to suit your needs. Device = 18F4431 Clock = 20 Config OSC = HS, FCMEN = OFF, IESO = OFF, BOREN = OFF, BORV = 20, WDTEN = OFF, STVREN = OF...
by CharlieM
Mon May 04, 2009 11:11 pm
Forum: General
Topic: Got MY SF!
Replies: 0
Views: 2873

Got MY SF!

Hello everyone,

Well... I got my parcel today and now I can say I own the full version. :D . Thanks for all the help and I look forward to using and learning this Fantastic Compiler.
by CharlieM
Mon May 04, 2009 10:57 pm
Forum: Compiler
Topic: wrong highlighted line
Replies: 3
Views: 2384

Hi David, Thanks for the reply. so the error is thrown on the token that is not expected in the input stream. In your example "UNTIL" was found on a line where the compiler was expecting ")" So why did'nt the line that was actually missing the ")" get high lighted?Thee should have been two error mes...
by CharlieM
Mon May 04, 2009 12:59 pm
Forum: Compiler
Topic: wrong highlighted line
Replies: 3
Views: 2384

wrong highlighted line

Hi everyone, Let me explain, in this code: Inc (turn_count) 'usart.write (Dectostr (turn_count,13) this is where the error is..missing ) Until turn_count = w_count not here If I uncomment the USart.write line and hit F12 the Until turn_count = w_count" is highlighted and the error message ")" expect...
by CharlieM
Mon May 04, 2009 11:31 am
Forum: Compiler
Topic: My first program with SF compiler too!! cant get 18f4520...
Replies: 6
Views: 4176

You also need to set the osc to int osc by the config fuses
by CharlieM
Sun May 03, 2009 11:44 pm
Forum: Compiler
Topic: help
Replies: 7
Views: 3985

Hi Mark, I thought that was you.Thanks for the insight to SF.What you explained is very helpful.I wish that was in the help somewhere.I have read through the user manual,but I don't think the examples are there like you explained.I have bought the full version and can't wait to use it. I am just try...
by CharlieM
Sun May 03, 2009 9:36 pm
Forum: Modules
Topic: Help me with RS232 comms.
Replies: 8
Views: 5189

You may have to check the datsheet to see if there is anyting else on port C that you need to disable through the config fuses.
by CharlieM
Sun May 03, 2009 8:00 pm
Forum: Compiler
Topic: help
Replies: 7
Views: 3985

It seems to read or write to the usart should be simple.Maybe I am making harder than it has to be.I have used Proton+ and then PDS for 4 years and it does'nt get any simpler that that.SF sure seems to make things like writing to and receiving data very difficult.
by CharlieM
Sun May 03, 2009 7:56 pm
Forum: Compiler
Topic: help
Replies: 7
Views: 3985

Thanks for the info.To read decimnal values I just use USART.Read and the DECtoSTr conversion?
by CharlieM
Sun May 03, 2009 5:00 pm
Forum: Compiler
Topic: help
Replies: 7
Views: 3985

Hi Steven,

It does'nt make any difference.
by CharlieM
Sun May 03, 2009 12:57 pm
Forum: Compiler
Topic: help
Replies: 7
Views: 3985

help

Hi folks,

what is wrong with this line of code?

Code: Select all

 USART.Writebyte ("direction :",DecToStr (direction) ,13)  
I get: ) expected
by CharlieM
Sat May 02, 2009 8:22 pm
Forum: Modules
Topic: Help me with RS232 comms.
Replies: 8
Views: 5189

Hi Francesco.C,

What pic are you using and do you want to use soft usart or hardware usart?
by CharlieM
Sat May 02, 2009 1:09 pm
Forum: Compiler
Topic: Not enough parameters
Replies: 3
Views: 2443

Here is the full code I am trying to port over.As I mentioned I am port it over from PDS. '***********************************'declare vars*********************************************** Dim direction As Bit ' 1 is ccw 0 is cw Dim delay_time As Word ' controll stepper motor RPM Dim step_ As Byte ' m...
by CharlieM
Sat May 02, 2009 12:57 pm
Forum: Compiler
Topic: Not enough parameters
Replies: 3
Views: 2443

Hi Steven,
Thanks for the reply. Direction is a number and at this point in the program the pic is waiting for input from the user. direction is either a 1 or a 0.
by CharlieM
Sat May 02, 2009 12:02 am
Forum: Compiler
Topic: Not enough parameters
Replies: 3
Views: 2443

Not enough parameters

Hi everyone,
I am having some trouble with this line of code:

USART.Read DecToStr (direction,13)
I get a "not enough parameters error message.What am I doing wrong? I am trying to port a program over from PDS to SF.Any help is greatly appreciated.