Search found 82 matches

by RKP
Tue Jul 13, 2010 3:02 am
Forum: General
Topic: SF and the future
Replies: 57
Views: 77415

This maybe wishful thinking on my behalf, but maybe this web site going away; will be the clean break that will be needed for David and company to introduce a new compiler that will program the PIC18's, PIC24's and Dspic's as well. Just wishful thinking from me anyway, I guess we will find out soon ...
by RKP
Thu Jun 10, 2010 10:33 pm
Forum: Compiler
Topic: New to I2C. Need some help!
Replies: 6
Views: 4250

Try adding this line I2C.Acknowledge(I2C_ACKNOWLEDGE) Sub Read_Temp() I2C.Initialize I2C.Start I2C.WriteByte(SE95_addr) ' Access device by its address I2C.WriteByte(TEMP) ' Access TEMP register I2C.Restart I2C.WriteByte(SE95_addr+1) TEMP_Val_MSB = I2C.ReadByte ' Read TEMP MSB I2C.Acknowledge(I2C_ACK...
by RKP
Thu Jun 10, 2010 8:51 pm
Forum: Compiler
Topic: New to I2C. Need some help!
Replies: 6
Views: 4250

Francesco,

Could post all your code and put it in the "Code" tags.

RKP
by RKP
Thu Jun 10, 2010 2:21 am
Forum: Compiler
Topic: New to I2C. Need some help!
Replies: 6
Views: 4250

Francesco, Try looking at my post here: http://www.mikroe.com/forum/viewtopic.php?f=10&t=22478&p=112903#p112903 I know it is with a diiferent compiler but functionality is the same. The SE95 is a more accurate version and a drop in replacement of a LM75. Anyway there are a few things I noticed that ...
by RKP
Sat May 15, 2010 5:48 pm
Forum: Compiler
Topic: Extended Instruction Set
Replies: 11
Views: 7803

Thanks Jerry, I agree with all of your input. I am a little surprise that no one else has had any input on this subject. Also I did look into Diolan's assembler since it was open source but, I decided to try and solve it thru Swordfish. It may have been a wrong choice on my part. Anyway in the assem...
by RKP
Sat May 15, 2010 3:03 am
Forum: Compiler
Topic: Extended Instruction Set
Replies: 11
Views: 7803

Yes, you are correct the USBCDC library does use the FSR2 register. I will have to check my assembler when I get back to work on Monday, but it seems to work. I also checked almost all the Swordfish libraries and so far the only one that calls out FSR2 is the one you are found. I am going on the ass...
by RKP
Fri May 14, 2010 8:16 pm
Forum: Compiler
Topic: Extended Instruction Set
Replies: 11
Views: 7803

Jerry, After reading the the data sheet for the PIC that use the Extended Instruction Set and after my head stop spinning. I came to the conclusion that all I need to do was add these lines at the top of my program after my A/D and Port init stuff. FSR2L = $00 ' Added for XINST bit FSR2H = $00 ' But...
by RKP
Fri May 14, 2010 6:10 pm
Forum: Compiler
Topic: Extended Instruction Set
Replies: 11
Views: 7803

Woo hoo!! Solution found, :D :D

Thanks David, for open source files! 8)

Now I can use Diolan's USB HID bootloader with Swordfish. :P
by RKP
Thu May 13, 2010 3:30 pm
Forum: Compiler
Topic: Extended Instruction Set
Replies: 11
Views: 7803

Extended Instruction Set

Has anyone managed to get a program that works with the XINST Config bit being set to ON? The reason I ask is that, I am trying to work with a bootloader that has the XINST bit set. The bootloader will not work with the XINST bit OFF and my program will not work with the XINST bit ON. So does anyone...
by RKP
Wed Apr 21, 2010 6:42 pm
Forum: User Modules
Topic: t6963c GLCD module
Replies: 31
Views: 20364

Raistlin, Try adding this line: MEMCOM = %10000000 after the SetAllDigital() line. If it works, here is why. From the data sheet pg. 111 (Page 113 on PDF) PORTD is multiplexed with the system bus as the external memory interface; I/O port functions are only available when the system bus is disabled,...
by RKP
Mon Apr 19, 2010 6:40 pm
Forum: Compiler
Topic: 18F14K50 works with Swordfish, as HID USB device
Replies: 9
Views: 8378

Here is my test program and descriptor file I used to verify that the modified files works for these 13K50 and 14K50 family of parts. Test file { ***************************************************************************** * Name : UNTITLED.BAS * * Author : [select VIEW...EDITOR OPTIONS] * * Notice...
by RKP
Mon Apr 19, 2010 6:22 pm
Forum: Compiler
Topic: 18F14K50 works with Swordfish, as HID USB device
Replies: 9
Views: 8378

Here is follow up post to get the USB HID modules to work for these parts. These are the files that need to be modified. But first copy the files to the user library located here Swordfish\UserLibrary. The files names are: USBSFR.bas, USBConfig.bas and USBSystem.bas. I will just post the before and ...
by RKP
Mon Apr 19, 2010 5:46 pm
Forum: Compiler
Topic: 18F14K50 works with Swordfish, as HID USB device
Replies: 9
Views: 8378

18F14K50 works with Swordfish, as HID USB device

Here are the changes that I made to get the PIC18F13K50 and 14K50 family of PIC's to function as HID devices on your PC. This going to be a rather long post so if anyone would like to make Wiki out of this I would greatly appreciate it as I could not wiki it myself. This is of course, after some use...
by RKP
Sun Mar 28, 2010 12:20 am
Forum: Compiler
Topic: USB and 14K50 or 13K50
Replies: 4
Views: 3822

Nigel, Any luck on your project? I spent most of my off day trying to get the compiler to compile without any errors and I finallly suceeded. Just wondering how your project is going. I have finally got a chip but no 12MHz crystal so I have no way of trying it out to see if it really works. I was ju...
by RKP
Tue Mar 09, 2010 3:34 am
Forum: Compiler
Topic: USB and 14K50 or 13K50
Replies: 4
Views: 3822

Nigle, I wish you luck on your project. My project will probably use the 2455 as that PIC is supported. I do know you will need to update MPASM becuase the one packaged with Swordfish does not support the K50 series USB PIC's. See here http://www.sfcompiler.co.uk/forum/viewtopic.php?t=1062 I will se...