Search found 105 matches

by garryp4
Sat Jan 15, 2022 9:22 pm
Forum: Compiler
Topic: Illogical compilation error
Replies: 2
Views: 242

Illogical compilation error

I keep getting a Compilation Error message that is always on line 13. First it was showing up in the commented out text header. I deleted the header then the error happen on an Include line. I can add lines to move the code up or down but the error is always on line 13. I completely uninstalled the ...
by garryp4
Sun Jan 03, 2021 7:03 pm
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 1002

Re: USART2 interupt

Jerry: I took a crack at ti but think I am not coding it correctly. The circuit has usart1 connected to hterm and usart2 to a Digi Zigbee radio. I know it all works because my program does send and receive from both ports. I want to use the interrupts because I never know when data will come across ...
by garryp4
Sat Jan 02, 2021 3:42 pm
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 1002

Re: USART2 interupt

Jerry:

Thanks! I will try it out tomorrow.
by garryp4
Sat Jan 02, 2021 3:30 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 4140

Re: Problem with the path to the Library folder

I do not see project.'anything' in any folder associated with Swordfish. However, running Swordfish as administrator seems to make Swordfish go to the programdata\mecanique\swordfish\library every time. I just don't understand why.
by garryp4
Fri Jan 01, 2021 7:35 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 4140

Re: Problem with the path to the Library folder

I just stumbled into something that seems to correct all the directory problems. I made the shortcut to 'run as administrator' and all the issues cleared up. I do not understand why, but figured I would let you know.
by garryp4
Fri Jan 01, 2021 7:28 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 4140

Re: Problem with the path to the Library folder

I still can not find project.idf anywhere on my system.
by garryp4
Fri Jan 01, 2021 3:36 am
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 4140

Re: Problem with the path to the Library folder

Where is the project.idf file? I cant find it.
by garryp4
Wed Dec 30, 2020 2:07 pm
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 1002

Re: USART2 interupt

Jerry:

Thanks! I am using an 18F47J13 and an 18F27J13. The serial is the only interrupt for this project.

Garry
by garryp4
Tue Dec 29, 2020 10:13 pm
Forum: Modules
Topic: USART2 interupt
Replies: 8
Views: 1002

USART2 interupt

How can I setup USART2 to process an interrupt? Can I used ISRRX with both USART1 and USART2 at the same time? I need to get data from which ever has it available at the time.

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

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: 424

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: 4140

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: 645

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: 645

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: 4140

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...