Search found 126 matches

by garryp4
Sat Dec 26, 2020 9:20 pm
Forum: Modules
Topic: SPI.Transfer a string
Replies: 1
Views: 2228

Re: SPI.Transfer a string

Figured it out. I was not declaring the the string variable with an extra byte for the null character. Public Function READ_STRING(p_addr As LongWord) As String * 4 OPEN_SPI() Low(mem_cs) SPI.Transfer(read_data) ' Read instruction SPI.Transfer(p_addr.byte2) ' Address byte 2 SPI.Transfer(p_addr.byte1...
by garryp4
Sat Dec 26, 2020 3:49 pm
Forum: Modules
Topic: SPI.Transfer a string
Replies: 1
Views: 2228

SPI.Transfer a string

I would like to transfer a byte as a string from an eeprom memory. I can transfer a byte in and out with no problem, but can not figure out how to read the byte as a string or convert it to a string.

Thanks!
by garryp4
Wed Dec 16, 2020 11:20 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 13886

Re: Problem with the path to the Library folder

David: I think there is still an issue with the hierarchy of the selected folder. First should be the root folder the current working .bas file is in. Second should be the c:\ProgramData\Mecanique\Swordfish\Library so as those files get updated, the newest one is used. I am currently writing a new p...
by garryp4
Sun Sep 06, 2020 3:50 pm
Forum: Modules
Topic: VERIFY USART2_TX/RX PIN error with USART_2
Replies: 2
Views: 2474

Re: VERIFY USART2_TX/RX PIN error with USART_2

That was it.

Thanks so much!
by garryp4
Sat Sep 05, 2020 8:13 pm
Forum: Modules
Topic: VERIFY USART2_TX/RX PIN error with USART_2
Replies: 2
Views: 2474

VERIFY USART2_TX/RX PIN error with USART_2

I am getting a warning after compile from the USART2 module. #warning "**VERIFY USART2_TX PIN - assuming PORTB.6**" #warning "**VERIFY USART2_RX PIN - assuming PORTB.7**" My guess is I am not setting the PPS pins correctly. The PPS module shows the example "pps.assign_output(RA0PPS, PPS_TMR0)" and "...
by garryp4
Fri Sep 04, 2020 4:49 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 13886

Re: Problem with the path to the Library folder

I uninstalled both Swordfish and Firewing from the laptop system. Then I deleted C:\ProgramData\Mecanique. Then I deleted c:\users\g\documents\swordfish. Then I deleted c:\ProgramFiles\mecanique. There should have been no reference to Swordfish or Firewing left on the system. The I installed the cur...
by garryp4
Tue Sep 01, 2020 4:42 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 13886

Re: Problem with the path to the Library folder

I delete the complete user Swordfish directory, close explorer then reopen to verify the directory is still gone. Then I launch Swordfish and the user directory is re-created. I can duplicate this every time. I went so far as wiping Swordfish and the user directory off the system. I even did a searc...
by garryp4
Tue Sep 01, 2020 4:14 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 13886

Re: Problem with the path to the Library folder

There in lies a problem. The updates go tot the c:\ProgramData\Mecanique|Swordfish\Library directory and Swordfish looks first in c:\users\g\documents\swordfish\userlibrary, missing the updated modules. And why does Swordfish keep creating the c:\users\g\documents\swordfish\userlibrary directory aft...
by garryp4
Sat Aug 29, 2020 2:16 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 13886

Re: Problem with the path to the Library folder

Any updates go to the c:\ProgramData\Mecanique|Swordfish\Library so it seems Swordfish should look there first, then the working directory. Otherwise the libraries will not be current.
by garryp4
Thu Aug 27, 2020 3:17 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 13886

Re: Problem with the path to the Library folder

Also, I have just set up a fresh tower PC and loaded Swordfish and do not get this problem. Both are running Windows 10.
by garryp4
Thu Aug 27, 2020 3:13 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 13886

Problem with the path to the Library folder

I'm having a problem with Swordfish creating a library directory in the wrong place. The correct path to the library is c:\ProgramData\Mecanique|Swordfish\Library. However, when I select some modules from the Code Explorer list, and if that module is in c:\users\g\documents\swordfish\userlibrary, th...
by garryp4
Sat Aug 22, 2020 4:12 pm
Forum: Modules
Topic: Can't get spi to read data
Replies: 19
Views: 11354

Re: Can't get spi to read data

I am running windows 10 on this laptop.
by garryp4
Sat Aug 22, 2020 4:10 pm
Forum: Modules
Topic: Can't get spi to read data
Replies: 19
Views: 11354

Re: Can't get spi to read data

The path to intOSC that opens up automatically is c:\users\g\documents\swordfish\userlibrary\intocs.bas. Is there someplace I can define the path? I have not been able to find a way.
by garryp4
Fri Aug 21, 2020 10:37 pm
Forum: Modules
Topic: Can't get spi to read data
Replies: 19
Views: 11354

Re: Can't get spi to read data

Jerry: I still got the compile errors with the intOSC.bas and setdigitalio.bas. Saw your comment "Clock = 8 // current intosc.bas v2.1 limit". Checked the rev of intOSC.bas when I clicked on it and I have v1.6. Did a search of my hard drive and found v2.1. How can I make the IDE point to the correct...
by garryp4
Wed Aug 19, 2020 6:50 pm
Forum: Modules
Topic: Can't get spi to read data
Replies: 19
Views: 11354

Re: Can't get spi to read data

Jerry: Thanks for the mrf89xa.zip file. I have finally got some time between odd jobs to look at it. Sorry this had to take a back burner. I changed the pins to match the hardware and tried to compile. The 18f47j13 doe not appear to be supported in the intosc.bas or setalldigital.bas, so commented o...