Search found 1197 matches

by David Barker
Fri Jan 26, 2007 6:21 pm
Forum: Modules
Topic: USB support ?
Replies: 9
Views: 6603

by David Barker
Fri Jan 26, 2007 2:14 pm
Forum: Compiler
Topic: boot loader
Replies: 5
Views: 3586

Just email me the device name (and if you need PLL) and I will see if I have them or can build them for you.
by David Barker
Fri Jan 26, 2007 2:06 pm
Forum: Announcements
Topic: USB Support
Replies: 0
Views: 8798

USB Support

Swordfish USB modules are now available. The USB HID module enables you to send and receive structured data from microcontroller to PC via a USB connection. The USB CDC module acts like a RS232 Virtual COM Port (VCP). Registered Swordfish users should just select VIEW...ONLINE UPDATES from the IDE t...
by David Barker
Wed Jan 24, 2007 5:05 pm
Forum: Compiler
Topic: Questions about compiler generated code
Replies: 9
Views: 5327

Yes, the PIC has only two possible interrupt levels (high and low). If two events share the same level, you need to differentiate in some way.
by David Barker
Wed Jan 24, 2007 4:39 pm
Forum: Compiler
Topic: What does this syntax mean ?
Replies: 1
Views: 1929

#option GLCD_CS1 = PORTD.7

GLCD_CS1 . GLCD_CS1@
PORT PIN
by David Barker
Wed Jan 24, 2007 4:36 pm
Forum: Compiler
Topic: Questions about compiler generated code
Replies: 9
Views: 5327

Sorry, I misunderstood your question - I thought you were referring to names generated by the compiler. As far as swordfish is concerned you can call an interrupt anything you like...It's just a name given to either a low or high interrupt source. What you do inside, and what interrupts are actually...
by David Barker
Wed Jan 24, 2007 4:15 pm
Forum: Compiler
Topic: Questions about compiler generated code
Replies: 9
Views: 5327

Your should not assume anything about the name of a sub, function or interrupt. If the compiler changes its underlying code generation (which it might) it would break any code based on assumptions about labeling.
by David Barker
Wed Jan 24, 2007 3:47 pm
Forum: Compiler
Topic: Questions about compiler generated code
Replies: 9
Views: 5327

> 1- Is there any cases where the compiler uses the Stack to > pass parameters to functions or to store local variables of > functions ? or does he use it only for storing the return address > of functions call? No > 2- If a sub is NOT of type TEvent, we can get its address using > the AddressOf() o...
by David Barker
Mon Jan 22, 2007 8:12 pm
Forum: Modules
Topic: USB support ?
Replies: 9
Views: 6603

Well, you certainly do pick up a few things along the way although I have to admit that the main 'USBSystem' module is a port from the microchip C libraries. I've pretty much left the code as is, so this should allow people who want to dig really deep into USB to reference much of the microchip docu...
by David Barker
Sun Jan 21, 2007 7:08 pm
Forum: Modules
Topic: USB support ?
Replies: 9
Views: 6603

As soon as I have something ready I will post an announcement on the forum. The code is rather complex and I won't be releasing it until I'm sure it all works OK. It's all written in Swordfish BASIC, no ASM... I am implementing both USB HID and CDC. The HID module offers transfer rates of 64KBytes s...
by David Barker
Thu Jan 18, 2007 11:41 am
Forum: Compiler
Topic: What does Access modifier do ?
Replies: 2
Views: 2345

Forces all params, locals and intermediate working registers to be located in access ram. Its not documented because it needs to be used with extreme care.
by David Barker
Thu Jan 18, 2007 11:29 am
Forum: Compiler
Topic: Call a User Definced Function from ASM code
Replies: 3
Views: 2868

That's what the example code I posted does...
by David Barker
Thu Jan 18, 2007 11:08 am
Forum: Compiler
Topic: Call a User Definced Function from ASM code
Replies: 3
Views: 2868

function MyUserSubroutine( SomeParam as byte) as byte result = SomeParam end function sub MyCallingSubroutine(myParam as byte) asm ; set bit Value... movf DataPort, W andwf MakeLow, W btfsc STATUS, C iorwf MakeHigh, W movwf DataPort end asm Value = MyUserSubroutine(myParam) asm decfsz Index, F bra ...
by David Barker
Wed Jan 17, 2007 12:51 pm
Forum: Compiler
Topic: Compiler Command Line Options
Replies: 5
Views: 3553

I cannot give you a date at the moment - the biggest demand from users is modules - so that's what I am currently looking at.

The IDE does not have an ICD at the moment but it is likely to be based around the COFF file format, if you want to get an idea of what will most likely be used...
by David Barker
Wed Jan 17, 2007 12:31 pm
Forum: Compiler
Topic: Compiler Command Line Options
Replies: 5
Views: 3553

> 1- The fact that there is no command line options, does this mean > that to compile a file using the command line compiler... You have to compile via the IDE. Command line is not supported at the current time. > 2- Is it possible to compile a module alone ? see this thread... http://www.sfcompiler...