@ first, I do not see the " magic " decoupling caps that have to be located just close to the µP ...
@ first, I do not see the " magic " decoupling caps that have to be located just close to the µP ...
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
I still don't understand how 15mV at VREF- is not able/sufficient to deal with 1.5mV at the pot...?
15mV pales into insignificance with respect to 0.234 volts of noise
Warning I'm not a teacher
I will add 2 other caps now.
EDIT: 0.1uF, 0.01uF and 0.001uF right at the pin, no difference, ADC stops at 12.
Last edited by Demon; - 12th March 2025 at 17:26.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Oh god..... (smacks-face)
I cleaned up the WPU, I think I had one on ADC.
I just tried again with the batteries and it went down to ADC=0.Code:WPUA = %11111010 ' Pin A2 = Vref- ' Pin A0 = ADC (B5K) WPUB = %11111111 WPUC = %00111111 ' Pin C7 = RX ' Pin C6 = TX ANSELA = %00000101 ' Pin A2 = Vref- ' Pin A0 = ADC (B5K) ANSELB = %00000000 ANSELC = %00000000
Arrrgggghhhhh.......
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
I've removed all caps, and this pot works perfect. The TPS56637 circuit is that clean when it comes to noise.
WPU was fighting with the ADCin pin, trying to pull it up.
Now the slider pots might still be a problem; I'll test those later. But right now I'm putting back the 2nd pot with switch.
I'll probably put several of those caps back on, I'll see (like at ADCin pin).
Unfreakingreal... :bangheadinwall:
EDIT: Oh yeah, definitely had to put the caps back on. The 2nd ADCin started affecting the 1st.
I put all the caps back in, everything is stable.
Last edited by Demon; - 12th March 2025 at 18:51.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
more proof that blindly setting pin registers is bad practice and serves no purpose .I cleaned up the WPU, I think I had one on ADC.
the safe setting is to leave them as default unless you need them to be different
if you use mcc its perfectly clear how each pin is set and self documenting
![]()
Warning I'm not a teacher
I'm still using MCS+.
Can we use MCC standalone? Or do we have to "create a project" and do the entire process within MPLAB?
I have both the MeLabs USB programmer and PK4. I suppose I could set up an older PC with MCS+ and Melabs pgmer, and use PK4 with MPLAB on this more powerful PC.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Yes you can install a stand alone application. No need to have the complete IDE.
https://ww1.microchip.com/downloads/....1-windows.exe
Ioannis
mcc stand alone is ok it works for all the chips i typically use. i don't know if they keep it UpToDate.Or do we have to "create a project" and do the entire process within MPLAB?
the latest mcc with mplabx6 is wildly different and i don't like the look of it so i don't use it
creating a project takes 2 or 3 minutes tops , its excellent for setting any and all modules including the osc not just the pins
you are only interested in the mcc generated files , they translate into pbp fairly easily with a bit of practice. the project has no other role other than documentation.
it matters not between mcc standalone and mplabx5.xx the effort and time are virtually identical
Warning I'm not a teacher
There is a much simpler tool under GCB (Great Cow Basic project) called PPS Tool. It is used for setting the PPS registers with ease.
This free compiler has great potential and good support (forum and YouTube videos).
In general it is easier to setup a PIC with GCB than PBP. Have not used it much to have a detailed opinion.
Ioannis
Bookmarks