"01010 PWM switch-mode power supply, V and I feedback" P2 Smart Pin question(s)
ngeneer
Posts: 62
in Propeller 2
has anyone used this mode?
is there a circuit for doing this?
any code for doing this?
what does this mode even do?
it seems slick to, not only keep a load power from drooping, but also to sense, for example, motor stall?
could it do that?
Comments
I've used it once so far. Not for any switchmode function though. It's the only smartpin mode that has both input and output components and as such I was able to make it perform a conditional clock function - https://forums.parallax.com/discussion/comment/1552342/#Comment_1552342
It generates an even square wave on its output while its smartB input is high.
Note the sysclock/10 clock rate. The function needs to terminate the SD clock output within the same SD clock cycle that smartB goes low. There is I/O staging and the smartpin is synchronously clocked itself ... which means it still takes a few sysclock ticks to respond to a changed input. The large divide by 10 is needed for reliable response when sysclock is overclocked in the high 300's MHz.
curious.... thanks for the new idea!