Search found 36 matches

by nigle
Tue Mar 09, 2010 11:15 am
Forum: Compiler
Topic: USB and 14K50 or 13K50
Replies: 4
Views: 3822

RKP wrote:I do know you will need to update MPASM becuase the one packaged with Swordfish does not support the K50 series USB PIC's.
I have already had to do that to support the 18F8723!

One day the compiler will get fixed so that it doesn't keep 'upgrading' it to the old version.
by nigle
Mon Mar 08, 2010 1:42 pm
Forum: Compiler
Topic: USB and 14K50 or 13K50
Replies: 4
Views: 3822

Re: USB and 14K50 or 13K50

RKP wrote:Has anyone successfully used the USB module with either of those PIC's?
No, but I am starting work on it later this week. This is a commercial project, so I HAVE to make it work!
by nigle
Tue Mar 02, 2010 10:41 am
Forum: Modules
Topic: 7-bit ascii
Replies: 8
Views: 7677

Its a standard called SDI-12. The communication is 7n1 at 1200 baud. It isn't in the version of the standard that I downloaded: 4.1 Baud Rate and Byte Frame Format The baud rate for SDI-12 is 1200. Table 2 shows the byte frame format for SDI-12. 1 start bit 7 data bits, least significant bit transm...
by nigle
Mon Feb 22, 2010 11:18 am
Forum: User Modules
Topic: Graphics OLED writing... faster...maybe
Replies: 10
Views: 6796

octal wrote:I need for an application a display that could be sun readable
One of these: http://www.sparkfun.com/commerce/produc ... ts_id=9560 might do the job.
by nigle
Wed Jan 13, 2010 1:38 pm
Forum: Modules
Topic: Math
Replies: 14
Views: 7883

For a complicated formula like that it is generally best to use a precomputed lookup table.
by nigle
Wed Dec 09, 2009 2:25 pm
Forum: IDE
Topic: Conflicts between SFcompiler 2.1.0.1 and MPLAB IDE v8.10
Replies: 19
Views: 18099

richardb wrote:did this get resolved ?
Not that I know of. I ended up copying all of the library files into the project folder as a workaround, if I recall correctly
by nigle
Mon Oct 05, 2009 9:06 pm
Forum: Compiler
Topic: KS0108 GLCD strange behavior
Replies: 9
Views: 6123

I don't think that the cable length is the cause of your problem. I am running a colour TFT panel from a PIC32 through a 15cm cable, and it works perfectly despite write cycle times of about 40nS. Looking at your breadboard, I don't see any decoupling capacitors anywhere, at the very least there sho...
by nigle
Mon Aug 31, 2009 8:34 pm
Forum: Compiler
Topic: The Case of The Hungry Subroutine
Replies: 4
Views: 2974

The problem is that you are passing the string by value instead of by reference. This means that the compiler has to create one copy to feed to DEBUG_OUT and another to pass to USART.Write. Even though you are only passing a single character of the string ( plus the 00 terminator ) the compiler assu...
by nigle
Tue Aug 25, 2009 9:22 am
Forum: General
Topic: Resonators
Replies: 3
Views: 3259

Resonators are LOT less accurate than crystals, by a factor of at least 100, they are only slightly better than the internal RC oscllator.
by nigle
Thu Jul 30, 2009 9:23 pm
Forum: Compiler
Topic: Swordfish Floating Point Resolution
Replies: 4
Views: 3695

I read AN575, which refers to 16F and 17F cores, but not the 18F handled by Swordfish Oops, hadn't spotted that! However, the number format will be the same using an 18F part, and still have the same limits. How does the "Float" data type get its mantissa limits of +/- 1, if the mantissa is 23 bits...
by nigle
Thu Jul 30, 2009 10:17 am
Forum: Compiler
Topic: Swordfish Floating Point Resolution
Replies: 4
Views: 3695

Re: Swordfish Floating Point Resolution

Can I represent 1,000,000,000,000.000 000 000 000 000 1? No, that is way beyond the precision of a single or even double precision ( which Swordfish doesn't support anyway ) float. Using 128 bits would just about do it. The mantissa is 23 bits, which equates to slightly less than 7 decimal digits. ...
by nigle
Tue Jul 07, 2009 10:49 am
Forum: Compiler
Topic: Help in How to detect an Overflow.
Replies: 8
Views: 4850

replace the Inc( X ) instruction with the following:

Code: Select all

If X = 255 Then
	Overflow = true
Else
	Inc( X )
EndIf
Remember to set Overflow to false at the beginning!
by nigle
Thu Jun 25, 2009 1:11 pm
Forum: Compiler
Topic: close all or close page
Replies: 1
Views: 1898

When you compile, all open files are saved and then the one that was on screen is compiled. Any files referenced by Include statements will also be compiled, files open in other tabs will not be. If a module cannot be editied, it is because it is in the compiler's own library folder. If these need e...
by nigle
Mon Jun 22, 2009 12:24 pm
Forum: Compiler
Topic: structure variable acess problem
Replies: 6
Views: 4270

The code is probably working fine, but Isis is showing you the wrong memory for the array except for the first element. The first element is at 0x005B, but Isis thinks the next one is at 0x0082, 39 bytes away. This happens to be the size of the whole array, so either Swordfish is outputing incorrect...
by nigle
Tue May 26, 2009 3:51 pm
Forum: Compiler
Topic: pic 18F6723 support
Replies: 2
Views: 2245

I am using the 18F8723, I created the necessary files from the ones for the 18F8722. To do the same, in the compiler's include directory copy 18F6722.BAS and 18F7622.INC to files with 6723 in the name. Then, in 18F6723.bas change this line #const _adres = $0A // 10 bit ADC resolution to this #const ...