Search found 1269 matches
- Sat Jun 04, 2022 8:46 pm
- Forum: Compiler
- Topic: Vector Interrupts
- Replies: 10
- Views: 2858
Re: Vector Interrupts
The new IVT v2.1 module now includes an option that allows for sharing the saved context among multiple intr handlers, which can save ram and code space if using a number of interrupt handlers that require saving context. The updated module is part of the sf_update_6_1_2022 I also updated the wiki a...
- Sat Jun 04, 2022 12:36 pm
- Forum: Announcements
- Topic: Swordfish ICC V1.2.0.8, Library and Device File Update 6_1_2022 for Swordfish 2.2.3.6
- Replies: 0
- Views: 179
Swordfish ICC V1.2.0.8, Library and Device File Update 6_1_2022 for Swordfish 2.2.3.6
This update for V2.2.3.6 has various compiler, device file, and library updates including: ICC V1.2.0.8 - fixes code generation issues involving bit-wise logical operators (AND, OR, XOR) and longwords MPASM V5.91 with updated 8bit_device.info v1.61 - adds support for 18Fx6Q83 updated ConfigGenerator...
- Sat Jun 04, 2022 11:11 am
- Forum: Compiler
- Topic: xvISRRX on Q41
- Replies: 1
- Views: 120
Re: xvISRRX on Q41
There's a bit more to it when using the ivt.bas module. Try this... I modified the example to include your code. It compiles, but it's completely untested, so if it doesn't' work let me know and I'll dig up some hardware. // xvISRRX test device = 18F16Q41 clock = 64 // config settings #if (_device =...
- Tue May 31, 2022 11:22 am
- Forum: Compiler
- Topic: MUI (Microchip Unique Identifier)
- Replies: 2
- Views: 136
Re: MUI (Microchip Unique Identifier)
The DIA is located in the program memory space. Since it's read-only you should be able to access it using the TBLPTR like so: device = 18F16Q41 // read the Q41 DIA area located in program memory space // MUI0-MUI8 (9 words, 18 bytes) from $2C0000-$2C0011 // set tableptr address inline sub set_flash...
- Fri May 20, 2022 10:29 am
- Forum: IDE
- Topic: Missing the final compiler's line on the IDE
- Replies: 10
- Views: 529
Re: Missing the final compiler's line on the IDE
Glad we got it figured out, Lee.
I don't think there's a "users guide", just the 'development environment' section in the IDE help.
Sometimes I just stumble across stuff like this myself, so don't feel bad!
I don't think there's a "users guide", just the 'development environment' section in the IDE help.
Sometimes I just stumble across stuff like this myself, so don't feel bad!
- Tue May 17, 2022 11:33 am
- Forum: IDE
- Topic: Missing the final compiler's line on the IDE
- Replies: 10
- Views: 529
Re: Missing the final compiler's line on the IDE
You can have multiple editor windows open in the IDE with different programs/modules at the same time. If this is the case, if one of the editor windows is marked as 'The program "my test program" is the compiler build root file' , then no matter which editor window is open when you go to compile it...
- Mon May 16, 2022 12:48 pm
- Forum: Compiler
- Topic: Vector Interrupts
- Replies: 10
- Views: 2858
Re: Vector Interrupts
just fyi...
I'm working on an update to the IVT module that will allow multiple ISR's to share the SF system variable context,
which can reduce the amount of ram/code space used.
Stay tuned...
I'm working on an update to the IVT module that will allow multiple ISR's to share the SF system variable context,
which can reduce the amount of ram/code space used.
Stay tuned...
- Mon May 16, 2022 12:33 pm
- Forum: IDE
- Topic: Missing the final compiler's line on the IDE
- Replies: 10
- Views: 529
Re: Missing the final compiler's line on the IDE
Just so we're all talking about the same thing... is it the 'Results' window or the bottom 'Success' line that doesn't appear?
- Sun May 15, 2022 10:48 am
- Forum: IDE
- Topic: Missing the final compiler's line on the IDE
- Replies: 10
- Views: 529
Re: Missing the final compiler's line on the IDE
After verifying that setting, if you're getting some messages in the 'Results' window then at the right of the 'Results' titlebar there's a small 'downarrow'. Click that and try selecting 'Toggle View'.
You don't want to do that...I would try copying the SE IDE over to the full version...
- Fri Feb 11, 2022 11:44 am
- Forum: Compiler
- Topic: Illogical compilation error
- Replies: 2
- Views: 408
Re: Illogical compilation error
Just in case someone else runs across an issue like this, it turns out that the cause was having a module name that starts with a numeric character, ie "module 1M_FRAM".
As with all identifiers, module names must start with an alpha character or underscore.
As with all identifiers, module names must start with an alpha character or underscore.
- Wed Jan 12, 2022 9:14 pm
- Forum: Modules
- Topic: error in ADC.bas
- Replies: 0
- Views: 426
error in ADC.bas
I don't know when/how this happened, but there's a missing comma in the file ADC.bas. A comma needs to be added to the end of the line 'AN11 = $0B' as shown below: // channel select constants... public const AN0 = $00, AN1 = $01, AN2 = $02, AN3 = $03, AN4 = $04, AN5 = $05, AN6 = $06, AN7 = $07 #if (...
- Sat Jan 01, 2022 3:50 pm
- Forum: Compiler
- Topic: Q83/Q84 JTAG enable issues (IO not working)
- Replies: 0
- Views: 223
Q83/Q84 JTAG enable issues (IO not working)
There is an omission in the current Q83/Q84 device files that can cause problems with IO pins RA5, RB3, and RB5. With these parts, JTAG defaults to ON and the above IO pins don't work normally. To fix this, add a 'config JTAGEN=OFF' statement to your program. I'll fix that (along with a few other Q8...
- Mon Dec 20, 2021 11:51 am
- Forum: General
- Topic: Any thoughts on q41 parts?
- Replies: 18
- Views: 1977
Re: Any thoughts on q41 parts?
I dug up this code from my notes (so no promises!) // This code block configures the ADC for polling, Vdd and Vss references, ADCRC oscillator ADCON1 = 0 ADCON2 = 0 // Legacy mode, no filtering, ADRES->ADPREV ADCON3 = 0 // no math functions ADREF = 0 // Vref = Vdd & Vss ADCAP = 0 // default S&H capa...
- Mon Dec 20, 2021 10:54 am
- Forum: General
- Topic: Any thoughts on q41 parts?
- Replies: 18
- Views: 1977
Re: Any thoughts on q41 parts?
Glad you got it all working! I seem to remember something like this before and having to put a particular module first but obviously I'm not using much code in this. I usually add this as the very first two includes in the main program: include "intosc.bas" #option DIGITALIO_INIT = true include "set...
- Sun Dec 19, 2021 2:05 pm
- Forum: General
- Topic: Any thoughts on q41 parts?
- Replies: 18
- Views: 1977
Re: Any thoughts on q41 parts?
Rich- If everything's up to date, in the intosc.bas and setalldigital.bas files you should see: intosc.bas: * Version : 2.4 11/16/2020 JM * : add 18FxxQ40, 18FxxQ41 * : add 18Fx7Q83, 18FxxQ84 setdigitalio.bas: * v2.8 - add 18FxxQ40 * - add 18FxxQ41 * - add 18Fx7Q83 * - add 18FxxQ84 * - fix 18F5xQ43 ...