P2 as switch mode power supply?
Rayman
Posts: 14,646
in Propeller 2
I have a few hundred of these 3.5" LCDs that are really nice, but need a triple power supply to work...
There are chips that can do this, like the MAX1779, but they add to the cost, BOM, and add board space...
It would be very convenient if I could use some P2 pins to do this.
I see this smartpin mode:
But, I have no idea how to use it or what is possible...
Any chance I could use P2 pins to replace MAX1779?
There are chips that can do this, like the MAX1779, but they add to the cost, BOM, and add board space...
It would be very convenient if I could use some P2 pins to do this.
I see this smartpin mode:
01010* = PWM switch-mode power supply, V and I feedback
But, I have no idea how to use it or what is possible...
Any chance I could use P2 pins to replace MAX1779?
Comments
The circuit also shows the vcom driver on the right side.
It's more or less just an opamp. Would be nice if P2 could replace that as well...
LCD needs +5V, +18V and -9V. Also need -5V for VCOM driver...
However, you are requiring boost conversion. You should add the MAX1779, definitely. Boost conversion cannot be done via a simple PWM. Yes, boost uses pulses, but in a completely different fashion than buck (e. g. , to pulse or not to pulse, instead of a continuous pulse with variable PWM).
Kind regards, Samuel Lourenço
Boy do I get a strange result when I click on the PDF document in this post. Instead of opening a document I end up in one of my P2 folders. Really weird.
Shut down laptop and restarted it. Same result.
Checked link and it looks correct. https://forums.parallax.com/discussion/download/128078/LTV350QV.pdf
Truly strange. Time to run malware scans and diagnostics. After I try another browser.
In your frustration, you probably changed the default download folder to whatever P2 folder.
Also firefox has settings about what to do with pdf files (and many others) . It can use the internal viewer, download to the default download folder (as it's doing), or send it to a third party plugin like Adobe as long as it was installed correctly.
I think you are correct in that it is a Firefox thing. Caught me by surprise because up until this morning Firefox always asked if I wanted to open the file or download it. I am running Linux Mint and have not made any changes to settings or updates to my system for at least a couple of weeks. Have to check my settings and updates.
@whicker, you are partly correct. Firefox preference was changed to download files to "Downoads". That may have been done during my last Firefox update a couple of weeks ago, however that does not explain why it was placing the file in my P2 folder as seen in the screen shot I posted earlier.
@Rayman, sorry for hijacking your thread, but I thought the problem might be related to something in this particular thread.
What currents on these ?
P2 can do the thinking side of PWM, but does not have super-fine granularity.
eg a 250MHz Sysclk will give 1MHz PWM duty ~ 8 bits and 500kHz PWM duty ~ 9 bits.
That's ~25mV steps at 80% full scale, which is probably ok for a digital supply ?
The 3v3 IO is a bit light to drive highest power MOSFETS, but it may be Ok for small boost converters.
eg DMN3731UFB4-7B specs 560 mΩ at 2.5V VGS
DMG2301L-7 specs 150mΩ @ VGS = -2.5V, so could do -ve supply flyback
Getting rapid feedback will need SW in P2, and ADCs are not very fast, so step response may not be very good.
It may be simplest to include clamp zeners, to give first-response over-voltage protection, then P2 needs to regulate for average loads.
That discrete approach needs to be compared with the simpler SMPS parts, and a 500mA part like AP3012KTR-G1 is 20c
- that has protection/regulation and mosfets all included.
During P2 development I asked Chip to have built-in comparators with DAC presetable levels and comparator's output on output pins for exactly this reason: control and shutdown power electronics (igbt/mosfets) in SMPS and similar environments
It'd be good to make up this circuit, perhaps it could plug into the P2ES as a demo, and be scaled from there
Yes, those SMPS smart pin modes are intended to use the internal 8-bit DACs and level comparators as voltage and current feedback mechanisms. Voltage detection may be via a resistor divider tap and current detection through a GND-side shunt resistor.
For safety, I would capacitively couple the NFET gate drive with a weak gate-side pull-down, in case the music stopped.
Very good idea.
Has this part of P2 even been tested yet ?
I think there are both hysteretic and PWM modes possible for P2-SMPS ?
https://forums.parallax.com/discussion/comment/1362413/#Comment_1362413