Search found 1469 matches

by Jerry Messina
Mon Mar 18, 2024 9:57 pm
Forum: User Modules
Topic: isrrx routine
Replies: 2
Views: 6

Re: isrrx routine

The xvISRRX2 module is for use with vectored interrupt mode. For "standard" interrupts the ISRRX2 module should work with the Q43. Currently, there's no function to get the number of bytes in the buffer... if DataAvailable returns true then use ReadByte to get the data ' read data from the buffer an...
by Jerry Messina
Fri Mar 01, 2024 1:38 pm
Forum: General
Topic: UMC Bootloader
Replies: 10
Views: 131

Re: UMC Bootloader

Yeah, you have to have the 'UMC Firmware' button enabled in the MCLoader.

It shows as highlighted on my machine, but that probably depends on the OS, setup, etc, etc
by Jerry Messina
Thu Feb 29, 2024 1:20 pm
Forum: General
Topic: UMC Bootloader
Replies: 10
Views: 131

Re: UMC Bootloader

Here's a copy of the stand-alone UMC loader file for the Q43. The umc_18FxxQ43.asm file contains info on how to assemble it to get the hex file... SF has all the files you need. It should work with any of the Q43 family, allows use of UART1-UART5, and contains settings for PPS mapping to change the ...
by Jerry Messina
Wed Feb 28, 2024 1:43 pm
Forum: General
Topic: UMC Bootloader
Replies: 10
Views: 131

Re: UMC Bootloader

Sorry Rich... real life got in the way. Hopefully I'll be able to get back to it today or tomorrow. As far as the ports go, the default is to use the "standard"uart pins, but you can change this... ;----------------------------------------------------------------------------- ; UART PORT/PIN selecti...
by Jerry Messina
Sat Feb 24, 2024 3:20 pm
Forum: General
Topic: UMC Bootloader
Replies: 10
Views: 131

Re: UMC Bootloader

I have a bootloader file put together for the Q43... now I just need to test it.

Won't be able to get to it till after the weekend
by Jerry Messina
Fri Feb 23, 2024 1:55 pm
Forum: General
Topic: UMC Bootloader
Replies: 10
Views: 131

Re: UMC Bootloader

1 - The UMCLoader app in the MCLoader\umc folder is the latest version. 2 - You're not going to be able to use UMCBuild.exe to generate the bootloader for newer devices... it needs some microchip files that are no longer available. See UMC Build Error for more details. What I've done for more recent...
by Jerry Messina
Sun Feb 18, 2024 11:12 pm
Forum: Compiler
Topic: 18F16Q41 - #error _device + " does not support MSSP"
Replies: 2
Views: 64

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

The library files SPI.bas and SPI2.bas are for use with devices that have an MSSP peripheral. For the new xv18 core devices with individual SPI and I2C peripherals, use SPIxv.bas and SPI2xv.bas. The defines/options might be a little different, so check them out. You'll definitely have to map the pin...
by Jerry Messina
Tue Jan 30, 2024 12:48 pm
Forum: General
Topic: half bridge/full bridge pwm
Replies: 4
Views: 159

Re: half bridge/full bridge pwm

I see. That app note would worry me... think I'd add the pulldown resistors to the ALI/BLI inputs to keep them low just in case.
by Jerry Messina
Mon Jan 29, 2024 11:30 pm
Forum: General
Topic: half bridge/full bridge pwm
Replies: 4
Views: 159

Re: half bridge/full bridge pwm

Looking at the HIP4081A datasheet, it has a DIS input that would help with initialization issues. If you pull that high it should disable the outputs until you have set up the PWM outputs... tie that to an IO pin and set it low once everything is ready. Both the PWM and CWG peripherals can generate ...
by Jerry Messina
Mon Jan 29, 2024 2:13 pm
Forum: General
Topic: half bridge/full bridge pwm
Replies: 4
Views: 159

Re: half bridge/full bridge pwm

The PWM peripheral has a lot more control than the CCP used in PWM mode. but you might look at the CWG (complimentary waveform generator). In any case, if you need the IO pins to power up low you'll have to add pulldown resistors on the IO pins to keep the pins low during startup. IO pins powerup as...
by Jerry Messina
Fri Jan 26, 2024 11:43 am
Forum: General
Topic: OPEN SOURCE PIC PROGRAMMER
Replies: 2
Views: 73

Re: OPEN SOURCE PIC PROGRAMMER

For the 18F25K50 there's also this one from the same guy who does the Pickitminus software ...

Nice thing about that one is you can use it with MPLAB as a debugger, UART serial analyzer, etc.
by Jerry Messina
Tue Jan 23, 2024 10:06 pm
Forum: IDE
Topic: CONFIG GENERATAOR FOR 18F27Q84
Replies: 5
Views: 240

Re: CONFIG GENERATAOR FOR 18F27Q84

Great. Glad you're up and running.

If you notice anything funny as you add your real code, just yell.
There's a lot that's changed with these new chips so the libs may need some massaging.
by Jerry Messina
Tue Jan 23, 2024 1:12 pm
Forum: IDE
Topic: CONFIG GENERATAOR FOR 18F27Q84
Replies: 5
Views: 240

Re: CONFIG GENERATAOR FOR 18F27Q84

My mistake, Garry. I forgot I'm using an updated set of programs with some new features. Remove the DEBUG for the time being. Try something simple first just to verify the settings and programming, something like this should work if you have a pin/LED you can toggle... Device = 18F27Q84 Clock = 64 C...
by Jerry Messina
Sun Jan 21, 2024 11:11 pm
Forum: IDE
Topic: CONFIG GENERATAOR FOR 18F27Q84
Replies: 5
Views: 240

Re: CONFIG GENERATAOR FOR 18F27Q84

Here's some background on this... The Q83/Q84 actually have 35 CONFIG registers, located from $300000-$300022 However, there's a problem. In absolute mode, the MPASMX assembler won't let you use the 'CONFIG' directive with >16 config bytes... past that you get random assembly errors, MPASMX blows up...
by Jerry Messina
Thu Dec 21, 2023 1:36 pm
Forum: User Modules
Topic: rs-485
Replies: 12
Views: 47597

Re: rs-485

You can always start a different thread about using the UMC if you like. There's no different forum, just the wiki page and the info found in the swordfish MCLoader\UMC folder. With UMC, you build your app code as you would normally. When you program the UMC code into the uC, the RESET vector will p...