Search found 48 matches

by AndyO
Sat Mar 05, 2011 6:31 am
Forum: Compiler
Topic: FSR to reach beyond 250 byte RAM limit
Replies: 4
Views: 3204

I'm currently evaluating both SF SE and Proton's Amicus
You might want to have a look at Digital DIY. The site has code examples, tutorials, completed projects and a forum section for both Swordfish and Proton which might help you make a comparison between the two.

Cheers,

Andy.
by AndyO
Tue Dec 28, 2010 6:18 am
Forum: User Modules
Topic: Module to display large digits on a 4-line character LCD
Replies: 1
Views: 2259

Module to display large digits on a 4-line character LCD

BigDigit.bas displays large digits and other characters on a 4-line character LCD. Two different fonts and two character widths are available. http://digital-diy.com/images/stories/authors/andyo/BigDigit/Group.jpg Module description and code hosted at digital-diy.com Hope it's of use to someone. An...
by AndyO
Wed Dec 08, 2010 3:53 pm
Forum: Modules
Topic: LCD Module missing scrolling commands
Replies: 4
Views: 3248

Nice articles - thanks or sharing.

It seems that as long as you issue a Cursor Home or a Clear Display command after you're finished shifting than that will reset the address block back to where it's supposed to be and you're good to go with the next command?
by AndyO
Sat Dec 04, 2010 11:44 am
Forum: IDE
Topic: How to designate pin by reference for a sub?
Replies: 4
Views: 4641

Is this the sort of situation where macros would help?

If you change my original code to this, does it produce more efficient code?

Code: Select all

dim TestPin0 as portb.0
dim TestPin1 as portb.1

macro FlashPin(pin)

    high(pin)
    delayms(1000)
    low(pin)

end macro


FlashPin(testpin0)
FlashPin(testpin1)
by AndyO
Sat Dec 04, 2010 7:00 am
Forum: IDE
Topic: How to designate pin by reference for a sub?
Replies: 4
Views: 4641

You can use ByRef to pass a pin to a sub:

Code: Select all

Dim TestPin0 As portb.0
Dim TestPin1 as portb.1

sub FlashPin(byref Pin as bit)

    high(Pin)
    delayms(1000)
    low(Pin)

end sub


FlashPin(testpin0)
FlashPin(testpin1)
by AndyO
Sat Oct 30, 2010 12:27 am
Forum: General
Topic: Swordfish + PWM + Servo
Replies: 1
Views: 2349

I put together a Swordfish module for controlling hobby-type servos which might do what you need. Module, description and sample code are at Digital-DIY
by AndyO
Fri Sep 10, 2010 1:59 pm
Forum: General
Topic: Welcome Back!
Replies: 14
Views: 10530

I'll second Jon's post - welcome back :D
by AndyO
Sat May 01, 2010 8:01 am
Forum: Compiler
Topic: Disable RAM Optimisation?
Replies: 16
Views: 10724

I may have missed the point here but if the problem is caused when your interrupt routine calls a sub / function then could you do this: interrupt MyInt() save(0,MyFunction) 'Interrupt code which calls MyFunction restore end interrupt That will context save any RAM locations which are used by MyFunc...
by AndyO
Sat Mar 27, 2010 6:42 am
Forum: General
Topic: need some more help!
Replies: 5
Views: 3898

I've not had a problem with upper / lower case. Someone corect me if I've got this wrong but I thought there was a problem with Swordfish and using Timer0 in 16bit mode. When writing to TMR0 you need to write the high byte first and when reading from TMR0 you need to read the low byte first. Writing...
by AndyO
Thu Mar 25, 2010 12:27 pm
Forum: Compiler
Topic: loading a word variable with a timer value
Replies: 7
Views: 4125

Strange. The following compiles fine for me:

Code: Select all

Device = 18F1220
Clock = 8

Dim Timer1 as TMR1L.AsWord
Dim WordValue as Word


Timer1 = 1000
WordValue = Timer1
Can you try the above and see if you get the same error? Can you post your code where the error occurs?
by AndyO
Thu Mar 25, 2010 11:48 am
Forum: Compiler
Topic: loading a word variable with a timer value
Replies: 7
Views: 4125

What device are you using?
by AndyO
Thu Mar 25, 2010 12:21 am
Forum: IDE
Topic: Problem with F12!
Replies: 7
Views: 5394

Afraid I can't help at all. But wanted to say thanks as I wasn't aware of the 'F12 to compile only' shortcut. If it's not rubbing salt into your wounds, I will be using it quite a bit from now on :)

Hope you get your problem sorted. Does re-installing SF help?
by AndyO
Tue Mar 23, 2010 4:22 am
Forum: Wiki Announcements
Topic: RC Servo Module
Replies: 4
Views: 7678

Cheers. I've used the module to make a simple USB 8 channel servo controller - source code and description here:

http://digital-diy.com/forum/viewtopic.php?f=12&t=392
by AndyO
Sun Mar 21, 2010 2:42 am
Forum: Wiki Announcements
Topic: RC Servo Module
Replies: 4
Views: 7678

RC Servo Module

I've written a module to control 1 to 8 RC Servos. The full description and code are hosted at digital-diy.com.

I've also added it to the Modules page of the Wiki but couldn't put a direct link to the digital-diy.com page. Hope it's of use to someone.

Cheers,

Andy.
by AndyO
Wed Mar 03, 2010 11:48 am
Forum: Compiler
Topic: RC servo control
Replies: 78
Views: 69672

I don't have my dongle with me so can't check this but is it possible that each ADC read is triggering the interupt when the conversion is completed?