Search found 126 matches

by garryp4
Wed Apr 03, 2024 4:43 pm
Forum: User Modules
Topic: FFT library
Replies: 0
Views: 2102

FFT library

Has anyone ever done an FFT library?
Thanks
by garryp4
Wed Feb 28, 2024 12:35 am
Forum: Compiler
Topic: Transfer a structure to another routine
Replies: 1
Views: 1615

Re: Transfer a structure to another routine

Never mind. I figured it out and too embarrassed to say what I did.
by garryp4
Tue Feb 27, 2024 8:04 pm
Forum: Compiler
Topic: Transfer a structure to another routine
Replies: 1
Views: 1615

Transfer a structure to another routine

I am trying to pass a structure to a main routine from a function. I have done this before for reading memory and have followed the syntax, but it does not want to work this time. The MAIN routine: Device = 18F16Q41 Clock = 64 Config FEXTOSC = OFF, // Oscillator not enabled RSTOSC = HFINTOSC_64MHZ,/...
by garryp4
Sun Feb 18, 2024 5:44 pm
Forum: Compiler
Topic: 18F16Q41 - #error _device + " does not support MSSP"
Replies: 2
Views: 1088

18F16Q41 - #error _device + " does not support MSSP"

the data sheet shows the device has SPI1 and 2 Device = 18F16Q41 Clock = 64 Config FEXTOSC = OFF, // Oscillator not enabled RSTOSC = HFINTOSC_64MHZ,// HFINTOSC with HFFRQ = 64 MHz and CDIV = 1:1 CLKOUTEN = OFF, // CLKOUT function is disabled PR1WAY = ON, // PRLOCKED bit can be cleared and set only o...
by garryp4
Tue Jan 23, 2024 6:00 pm
Forum: IDE
Topic: CONFIG GENERATAOR FOR 18F27Q84
Replies: 5
Views: 2251

Re: CONFIG GENERATAOR FOR 18F27Q84

Jerry: That took care of it

Thanks you very much!
by garryp4
Tue Jan 23, 2024 12:35 am
Forum: IDE
Topic: CONFIG GENERATAOR FOR 18F27Q84
Replies: 5
Views: 2251

Re: CONFIG GENERATAOR FOR 18F27Q84

Jerry: Thanks for the info. I have included my code with what I had from the ConfigGenerator commented out and what you sent with two changes. I get an error at the DEBUG line: Device = 18F27Q84 Clock = 64 { This is what I had from the ConfigGenerator Config FEXTOSC = OFF, // Oscillator not enabled ...
by garryp4
Sun Jan 21, 2024 6:03 pm
Forum: IDE
Topic: CONFIG GENERATAOR FOR 18F27Q84
Replies: 5
Views: 2251

CONFIG GENERATAOR FOR 18F27Q84

I am trying to program a 18F27Q84 using an NSDSP-2-X programmer from Northern Software. I know it works fine and all the connections are fine as I can program a different circuit with a 18F14Q41. For years I have used the programmer from MELABS which did not require a Config block inside my code. In...
by garryp4
Thu Apr 20, 2023 5:55 pm
Forum: Modules
Topic: SPI2xv and 18F37Q84
Replies: 4
Views: 2677

Re: SPI2xv and 18F37Q84

Jerry: Again, thanks so much! That did correct my problem, and now I have a few questions. How can I set the routine to use SPI1? I tried : 'SPI1 SPI1SCKPPS = $13 'RC3 > SCK1 RC3PPS = $31 'SCK1 > RC3 (bidir) SPI1SDIPPS = $14 'RC4 > SDI1 RC5PPS = $32 'SDO1 > RC5 instead of SPI2SCKPPS = $13 'RC3 > SCK...
by garryp4
Wed Apr 19, 2023 9:17 pm
Forum: Modules
Topic: SPI2xv and 18F37Q84
Replies: 4
Views: 2677

SPI2xv and 18F37Q84

Due to the availability of the 18F27J13 parts, I have changed to an 18F27Q84. The Vcap has been removed. My code for an SPI real time clock worked fine on the J13 part, but I can not get any response from the Q84 on the scope. Neither from the SCK1 or SDO1. The code is a bit lengthy but is just more...
by garryp4
Mon Apr 10, 2023 8:45 pm
Forum: Modules
Topic: Question about ISRTimer
Replies: 5
Views: 2555

Re: Question about ISRTimer

Jerry: Thanks so much for you help. I did not know about the 'clear' instruction. After a bit of contemplating, I realized I needed a 'While (t3_go) and (Timer.Items(0).Enabled)' statement for reading the gate. This also eliminated the for/to/next loop in the CAPTURE routine. I didn't see your reply...
by garryp4
Sat Apr 08, 2023 9:32 pm
Forum: Modules
Topic: Question about ISRTimer
Replies: 5
Views: 2555

Re: Question about ISRTimer

Thanks for the quick reply. I was missing 'Timer.Items(0).Enabled = true'. That did fix it. Now I am wondering if what my actual goal is possible with the timers. I built a circuit that uses IR to look for rain/snow. It puts out a pulse of varying length depending on the size of the droplet/flake. I...
by garryp4
Sat Apr 08, 2023 1:13 am
Forum: Modules
Topic: Question about ISRTimer
Replies: 5
Views: 2555

Question about ISRTimer

I am trying to get timer3 to run for 2 seconds. It works the first time after any MCLR but not again. I can not figure out how to reset the time. Here is my code. The LED's are just so I can see whats happening. The comments where I have questions have '****' : Device = 18F27J13 Clock = 8 #option TI...
by garryp4
Thu Mar 23, 2023 4:01 pm
Forum: General
Topic: Programmer for 18FxxQxx parts
Replies: 12
Views: 4481

Re: Programmer for 18FxxQxx parts

Resizing the drop down window did show the 64mhz option. However, this code does not work. I get gibberish to the terminal with the "clock = 64" and the 'include "intocs.bas" commented out: Device = 18F14Q41 'Clock = 64 Config FEXTOSC = OFF, // Oscillator not enabled RSTOSC = HFINTOSC_64MHZ,// HFINT...
by garryp4
Wed Mar 22, 2023 11:56 pm
Forum: General
Topic: Programmer for 18FxxQxx parts
Replies: 12
Views: 4481

Re: Programmer for 18FxxQxx parts

I don't have the same selections