Search found 362 matches

by Doj
Mon May 04, 2009 10:41 pm
Forum: Compiler
Topic: My first project with swordfish!!!
Replies: 27
Views: 12795

To send the data from the array you will need a loop that counts from 0 to the maximum of the array size and then transmit it using a data conversion.

Code: Select all

USART.Write(DecToStr(b(loop))

by Doj
Mon May 04, 2009 5:51 pm
Forum: Compiler
Topic: My first project with swordfish!!!
Replies: 27
Views: 12795

psyche, You are misunderstanding the use of USART library, there is another recent post which explains about its usage. You are using a non standard baud rate so the UART module will show an error, you will need to alter the module in order to use your value(quite easy) The other area is that you ar...
by Doj
Mon May 04, 2009 5:17 pm
Forum: Compiler
Topic: My first program with SF compiler too!! cant get 18f4520...
Replies: 6
Views: 4176

Hello Ash, If you look in the "18F4520" include file, at the very end you will see the configuration setup which is used for default, this shows OSC=HS by default. As shown in previous posts you are able to override the default by declaring the wanted configuration in the "PROGRAM" page of your code...
by Doj
Sun May 03, 2009 10:23 pm
Forum: Modules
Topic: Help me with RS232 comms.
Replies: 8
Views: 5196

What happens if you do this:-

Code: Select all

Device = 18F2553 
Clock = 20

Include "usart.bas"

while 1=1

USART.SetBaudrate(br19200)
USART.Write("HELLO WORLD",13)
DelayMS(200)

wend

by Doj
Sun May 03, 2009 9:44 pm
Forum: Compiler
Topic: help
Replies: 7
Views: 3985

Hello Charlie, I started with Proton in 2002 and have been involved with the forum ever since, I used that compiler exclusively until two years ago and understand completely that it might seem less advantageous to be more comprehensive in the way SF is. PDS is very easy to use but that ease can hide...
by Doj
Sun May 03, 2009 7:43 pm
Forum: Compiler
Topic: help
Replies: 7
Views: 3985

Hello Charlie, you are not using the function correctly, the concept for the library is not necessarily the same as you may have seen in other languages. USART.Writebyte ("direction :",DecToStr (direction) ,13) Your mistake here is to use one of the "overloaded" functions that the call to a "compoun...
by Doj
Sat May 02, 2009 9:39 pm
Forum: Modules
Topic: Help me with RS232 comms.
Replies: 8
Views: 5196

If you are using the USART module the setup is very simple.

Code: Select all

    Include "usart.bas"
    
   USART.Write("HELLO WORLD",13)

Sorry do not know how to use the software module.
by Doj
Tue Apr 14, 2009 10:46 am
Forum: Compiler
Topic: Project too complex for the compiler?
Replies: 12
Views: 6774

Hello Nigle, I have seen this type of problem with large programs and whether its a compiler issue or not I do not know, I very much doubt there is any problem with it rather assumption made on our part. What I found were issues with SCOPE that show when you have one module calling code in another m...
by Doj
Tue Apr 14, 2009 12:20 am
Forum: Compiler
Topic: Config fuse help!
Replies: 4
Views: 2854

you are missing the comma after INTIO2.

All the delimitation is by comma, the fact it is on a different line is irrelevant all white space is ignored.

Take the manual to bed and it explains all, obviously a warm bedfellow takes priority!
by Doj
Mon Apr 13, 2009 11:59 pm
Forum: Compiler
Topic: Config fuse help!
Replies: 4
Views: 2854

I checked the microchip "C18 CONFIG SETTINGS" document and it says yes! you have the correct usage. What is shown in the example is incorrect syntax for SF. Config OSC = INTIO2, MCLRE = OFF, FCMEN = OFF, WDT = OFF The above is, commas must be placed after all but the last entry. Sorry if you already...
by Doj
Fri Apr 10, 2009 2:32 pm
Forum: Compiler
Topic: Interrupt Based Usart
Replies: 15
Views: 7209

by Doj
Fri Apr 10, 2009 1:48 pm
Forum: Compiler
Topic: PIC18FxxJ11 Series
Replies: 12
Views: 7227

The capacitor module is very interesting and the DMA transfer looks good. I am sure David can knock up the include file for them. In the meantime you could just modify one of the other J series includes to get you going, the peripherals are all register based so are easy to add and the include file ...
by Doj
Thu Apr 09, 2009 10:57 pm
Forum: Compiler
Topic: 18K K series
Replies: 4
Views: 3525

Yes David I know, silly really, the people at the top have been informed, I also found this lovely typo when reading through:-

• PIC18F26K20, PIC18F46K20: 64 Kbytes of Flash
Memory, up to 37,768 single-word instructions


Mmmm, free flash anyone?
by Doj
Thu Apr 09, 2009 9:56 pm
Forum: Compiler
Topic: 18K K series
Replies: 4
Views: 3525

18K K series

I today came up against an issue in the 18F46K20 that has not shown its self in the year or so I have used these chips. A program I am writing was compiled for the 45K20 and was working great (even thought the chip was a 46K20), on running out of ram I decided to change the declare to 46K20 and sudd...
by Doj
Thu Apr 09, 2009 9:47 pm
Forum: Compiler
Topic: Interrupt Based Usart
Replies: 15
Views: 7209

Might I second these sentiments, welcome Roshan.

There are a couple of other posts about this subject that might give you some ideas, also look on the WiKi (click button at page top) there is an interesting module by the compilers author for receiving NMEA data in an interrupt.