Any thoughts on q41 parts?

Discuss PIC and electronic related things

Moderators: David Barker, Jerry Messina

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Any thoughts on q41 parts?

Post by richardb » Sun Oct 31, 2021 10:33 am

Hi I was wondering what peoples experiances were with the q41 parts.

for me the PIC18F06Q41 looks very interesting for home projects, but more generally how have they worked for you? as i've had bad experiances with things like the adc in the k80 part.

so... whats the adc like ? does it have any offsets and is the noise ok when using 12 bits?


does the PPS work with confidance ie can i design the board for best layout rather than default pin operation?

can i use the pic without a crystal and rs232 without any issues?

and lastly are there any other issues that i should know about?


Richard
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1264
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Any thoughts on q41 parts?

Post by Jerry Messina » Sun Oct 31, 2021 11:31 am

So far, my experience has been generally positive.
whats the adc like ? does it have any offsets and is the noise ok when using 12 bits?
I haven't done any in depth measurements, so I can't really comment on this one.
does the PPS work with confidance ie can i design the board for best layout rather than default pin operation?
Yes, PPS works fine.
can i use the pic without a crystal and rs232 without any issues?
As long as you're working from 0-60degC, it's within 2%, so yes. Outside that range it gets a bit worse... up to 5% at the extreme which is too far out.
and lastly are there any other issues that i should know about?
Like most of the new parts the MSSP peripheral is gone and has been split into two SPI and I2C peripherals. The SPI is fairly backwards compatible, but the new I2C isn't, so any existing code would have to be re-written. For an I2C master , it's probably easiest to just use the software I2C routines.

A general limitation with these lower pin count parts is sometimes the fixed analog functions overlap (ie DACOUT and CMPIN share the same pin), but that happens on some of the bigger parts too. My biggest gripe is that the ICSP pins share RA0/RA1 pins so you can't use the analog functions on those if you use ICD debugging!

Jerry Messina
Swordfish Developer
Posts: 1264
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Any thoughts on q41 parts?

Post by Jerry Messina » Sun Oct 31, 2021 11:52 am

I should have mentioned to make sure you have the latest library updates to V2.2.3.6
see User Module Wiki page

https://www.sfcompiler.co.uk/wiki/wiki- ... 2_2021.zip

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Re: Any thoughts on q41 parts?

Post by richardb » Wed Nov 03, 2021 8:02 am

Thanks for that Jerry. I have now ordered one and will design a test board to check out some of the features and report back.


on another Note was the Q43 sram errata fixed ? and if so, is it easy to get the new silicon?

Richard
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1264
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Any thoughts on q41 parts?

Post by Jerry Messina » Wed Nov 03, 2021 9:56 am

Let us know how it goes, Richard.
on another Note was the Q43 sram errata fixed ? and if so, is it easy to get the new silicon?
Yes it was. B2 silicon fixed it, which was a few revs ago.

How easy is it to get?
Right now with the way things are, getting ANY silicon has been a real crap shoot.
Depending on the exact part, it looks like Digikey has a few.

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Re: Any thoughts on q41 parts?

Post by richardb » Wed Nov 03, 2021 2:19 pm

The chip shortage is kind of why i'm looking at these new parts, they cover most bases 12bit, 5v 64mhz and pps, except usb, and we are moving away from pic based usb anyway.

my plan was to buy some and test them and then buy a batch for stock if all looks good.

Thanks again.
Richard
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1264
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Any thoughts on q41 parts?

Post by Jerry Messina » Wed Nov 03, 2021 2:35 pm

I've been caught in this too, but so far it's been like playing "whack-a-mole" with redesigning things...
if you don't buy the parts when you see them available then when you go back they're gone.

If there's anything I can help with (besides actually finding parts), let me know, and good luck!

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Re: Any thoughts on q41 parts?

Post by richardb » Fri Nov 05, 2021 7:35 am

Thanks for the offer Jerry



Rich
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1264
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Any thoughts on q41 parts?

Post by Jerry Messina » Sat Dec 04, 2021 1:20 pm

I should have mentioned... there are two sites I've been using lately to help find parts.

https://www.findchips.com
https://octopart.com

If nothing else it gives a good overview of what you're up against these days.

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Re: Any thoughts on q41 parts?

Post by richardb » Thu Dec 09, 2021 9:48 am

Thanks Jerry for those links. We have bought 100 of the PIC18F06Q41 and I've designed a very simple board for purely for testing I'm interested in how good the adc is and how well the opamp works as I've not really tried using opamps on pics before.


Rich
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1264
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Any thoughts on q41 parts?

Post by Jerry Messina » Thu Dec 09, 2021 10:43 am

A colleague of mine who used it really likes the part. Says it has a boatload of features for such a small chip.
I'd be interested to hear how things work out, so please keep us posted on what you find, Rich.

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Re: Any thoughts on q41 parts?

Post by richardb » Sun Dec 19, 2021 12:14 pm

Hi Again, Looks like I've failed at the basics, i cant get an led to flash on internal osc

i have the following code

Code: Select all

Device = 18F06Q41
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


Include"IntOSC.bas"

Include "utils.bas"

Dim led As PORTC.2

SetAllDigital

Output(led)

While true 
	led = Not led
    DelayMS(100)  
Wend  
End

it doesn't do anything i'm trying to run at the max internal osc i was wondering if the "Include"IntOSC.bas"" id vslid and the setall digital as i didnt see the 18f06q41 in the file.

i generated the config from the config generator and tried with the full config.

anh help would be apreciated.



Rich
Hmmm..

Jerry Messina
Swordfish Developer
Posts: 1264
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Any thoughts on q41 parts?

Post by Jerry Messina » Sun Dec 19, 2021 2:05 pm

Rich-

If everything's up to date, in the intosc.bas and setalldigital.bas files you should see:
intosc.bas:

Code: Select all

*  Version : 2.4 11/16/2020 JM 
*          : add 18FxxQ40, 18FxxQ41
*          : add 18Fx7Q83, 18FxxQ84
setdigitalio.bas:

Code: Select all

* v2.8 - add 18FxxQ40
*      - add 18FxxQ41
*      - add 18Fx7Q83
*      - add 18FxxQ84
*      - fix 18F5xQ43 add ANSELC
*      - add '#option DIGITALIO_ADREF' to allow setting ADREF
Make sure you have SF 2.2.3.6 installed, and then apply the update from the User Module Wiki page
https://www.sfcompiler.co.uk/wiki/wiki- ... 2_2021.zip

(2.2.3.6 should get you the updated intosc and setdigitalio modules, but the 2_22_2021 update
should get everything else up to date)

If none of that seems to work let me know...

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Re: Any thoughts on q41 parts?

Post by richardb » Sun Dec 19, 2021 6:21 pm

Thanks for getting back to me quickly.


OK been out Christmas shopping and came back and found the led flashing.... so powered off and back on and still flashing.

re flashed the pic and the flashing stopped again....
I was at version 2.2.3.6 and 1.2.0.6
so did the update zip and the versions were upto 2.2.3.6 and 1.2.0.7, i checked the library info like you suggested and they match.



re flashed still no flashing yet.

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.


Rich
Hmmm..

richardb
Posts: 283
Joined: Tue Oct 03, 2006 8:54 pm

Re: Any thoughts on q41 parts?

Post by richardb » Sun Dec 19, 2021 6:29 pm

Argh!!!

so after unplugging the programmer the led flashing started again. it seems that after upgrading the ipe to allow for programming 18f06q41's the programmer forgot i wanted to leave the pic out of reset, even after it supposedly had used "previous setting" from a previous installation.


Thanks again Jerry for your excellent support.


Rich


better try the adc next !
Hmmm..

Post Reply