Search found 586 matches

by octal
Wed Jan 18, 2017 11:48 pm
Forum: User Modules
Topic: Neopixels WS2812B
Replies: 10
Views: 7532

Re: Neopixels WS2812B

Sorry Coccoliso, I'll post my module and functions right I go home. I'm very sorry. :oops: here is my module http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.NeoPixel This module uses bitbanging. A better approach that I didn't got time to implement is to map RGB data to a bit pattern and...
by octal
Mon Jan 16, 2017 8:51 am
Forum: User Modules
Topic: Neopixels WS2812B
Replies: 10
Views: 7532

Re: Neopixels WS2812B

I have already played with them and I can say that the datasheet is almost all false (no joking). :(
I'll post my code (tested on PIC18F25K22) once at home with detailed explanation about my findings and experience with them.
by octal
Mon Dec 19, 2016 9:08 am
Forum: General
Topic: Microscope for SMD rework
Replies: 2
Views: 4688

Re: Microscope for SMD rework

Hi Coccoliso,
I also used such tools sometimes ago, but try to do a lot of 0402 (mainly for MCU power filters or bluetooth RF filters) with such tools and you'll understand the utility of a true sterio microscope ;) (at least for me, my eyes are not as good as when I was 20 years old :mrgreen: )
by octal
Sat Dec 17, 2016 10:48 pm
Forum: General
Topic: Microscope for SMD rework
Replies: 2
Views: 4688

Microscope for SMD rework

Hello, I wanted to know which microscope (or zooming tool) are you using to do SMD rework? I personnaly was soldering up to 0603 parts by eye (without any zoom). At work, I was using a sterio-microscope with x10 zoom (and x20 or x40 for checking). I'm looking at buying an amscope SE400xyz and wanted...
by octal
Fri Nov 18, 2016 9:50 am
Forum: Compiler
Topic: Brain Fade? Reading 8 Bits of a Port to a Variable?
Replies: 3
Views: 3508

Re: Brain Fade? Reading 8 Bits of a Port to a Variable?

Hello Jon, you don't need the parenthesis after PORTB, PORTB is a system variable defined in the header file of your device (PIC), you just read it as you read any BYTE variable dim a(20) as Byte TRISB = $FF ' make portb an input a(1) = PORTB a(2) = PORTB .... I couldn't find anything in the documen...
by octal
Thu Nov 10, 2016 12:37 am
Forum: General
Topic: PIC18F2550 / PIC18F25K50 board
Replies: 2
Views: 4910

PIC18F2550 / PIC18F25K50 board

I built and assembled a small prototyping board for PIC18F2550/PIC18F25K50. The PCB has been produced by SeeedStudio (excellent results), and I assembled first prototype by hand (quickly). The board can be plugged directly on a breadboard, can be programmed using any PIC programmer via the 5 pin hea...
by octal
Thu Oct 20, 2016 9:35 am
Forum: Compiler
Topic: Overloading and subs with default parameters
Replies: 6
Views: 5204

Re: Overloading and subs with default parameters

I don't know what you want to do, but (from my own guess), you better use COMPOUND subroutines. Check help file and how SF use them in the various libraries like USART or SPI to write read various types of data using overloaded subs.
by octal
Wed Oct 19, 2016 7:18 pm
Forum: Compiler
Topic: Overloading and subs with default parameters
Replies: 6
Views: 5204

Re: Overloading and subs with default parameters

Read the Swordfish Help file about subroutines overloading. When you do overloading, you must **not** create, in anyway, an ambiguous situation. When you call your routine with only one parameter, the compiler (humans also) cannot determine your intentions. Check help file, it has extensive explanat...
by octal
Sat Oct 15, 2016 5:49 pm
Forum: Compiler
Topic: support added for K40 devices
Replies: 20
Views: 11554

Re: support added for K40 devices

Thank you very much for this update Jerry, you have been extremely generous with SF community.
I'll check the converter and will try to dedicate some more time to the plugin.

Regards
by octal
Wed Oct 05, 2016 12:45 pm
Forum: Compiler
Topic: support added for K40 devices
Replies: 20
Views: 11554

Re: support added for K40 devices

Thank you Jerry, this is very helpful. I'll take time to update the whole plugin and add full list of PIC chips. There are a lot of "LF" versions missing, and if you use MPLabX (like I do) with realIce or ICD3 you won't be able to do hardware debug (or flash) via MPLabX if your circuit uses an LF ch...
by octal
Wed Feb 24, 2016 10:16 am
Forum: User Modules
Topic: Swordfish --> Web Server
Replies: 6
Views: 6235

Re: Swordfish --> Web Server

You can merge your code directly in the same chip used for ethernet. Your firmware can use the SF ethernet library as any other library.

http://www.sfcompiler.co.uk/wiki/pmwiki ... r.Ethernet
by octal
Tue Nov 03, 2015 9:33 am
Forum: Compiler
Topic: Tips for optimising bank switching?
Replies: 27
Views: 10181

Re: Tips for optimising bank switching?

I used PIC18 quite a lot and I really like Microchip peripherals. They always offer a nice set of peripherals (even most complicated ones like USB and Ethernet) in a single small chips. My hope was always to see same chips without the banking thing and with a bit more RAM. My hope was exhausted when...
by octal
Mon Nov 02, 2015 4:49 pm
Forum: Compiler
Topic: Tips for optimising bank switching?
Replies: 27
Views: 10181

Re: Tips for optimising bank switching?

ARM is actually another option for us. My colleague uses Keil to develop for the LPC2294 which is used in a couple of our products, although it seems like quite an old chip. I personally really like the Microchip peripherals and have heard some horror stories as to how difficult ARMs can be to do s...
by octal
Mon Nov 02, 2015 2:46 pm
Forum: Compiler
Topic: Tips for optimising bank switching?
Replies: 27
Views: 10181

Re: Tips for optimising bank switching?

24FJxxGA002 series is very nice. 24FJ devices tend to have nice and very rich peripheral set. They exists in various packages and are well established architecture. The main problem with PIC24 series is that the silicon errata datasheets seems to never shorten even with the new versions of silicon r...
by octal
Wed Oct 28, 2015 1:27 pm
Forum: Compiler
Topic: Compiler Const bug?
Replies: 15
Views: 7060

Re: Compiler Const bug?

@SHughes_Fusion sorry, I read the thread too quickly, and I misunderstood the problem. I thought you were asking why does compiler use Float arithmetic instead of int one even when using integers. I see that there is a problem with signed interger arithmetic. I think there were already a bug like th...