whitequark changed the topic of #glasgow to: glasgow debug tool · code https://github.com/GlasgowEmbedded/Glasgow · logs https://freenode.irclog.whitequark.org/glasgow
<zeiris> PyRun_SimpleString + LD_PRELOAD?
<davidc__> zeiris: you monster
bgamari has quit [Quit: ZNC 1.7.2 - https://znc.in]
bgamari has joined #glasgow
m4ssi has joined #glasgow
bgamari has quit [Ping timeout: 264 seconds]
bgamari has joined #glasgow
<whitequark> davidc__: I am quite sure all of those are best handled via a socket
<whitequark> let's discuss the rest!
<whitequark> unlike a lot of things in Glasgow, I don't already know (what I think is) the best way to do it
whitequark has quit [Ping timeout: 252 seconds]
whitequark has joined #glasgow
eddyb has quit [Ping timeout: 264 seconds]
eddyb has joined #glasgow
Jasjar has quit [Ping timeout: 246 seconds]
<_whitenotifier-9> [GlasgowEmbedded/Glasgow-Archive] whitequark pushed 2 commits to master [+2/-0/±0] https://git.io/fj3j5
<_whitenotifier-9> [GlasgowEmbedded/Glasgow-Archive] whitequark 464a332 - Add G00031: IBM PS/2 Hardware Technical Reference ­- Keyboard and Auxiliary Device Controller
<_whitenotifier-9> [GlasgowEmbedded/Glasgow-Archive] whitequark bd5a3f5 - Add G00032: INTEL 82077AA CHMOS SINGLE-CHIP FLOPPY DISK CONTROLLER
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] whitequark pushed 1 commit to master [+0/-0/±2] https://git.io/fj3jd
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] whitequark f5e1013 - applet.memory.floppy: add doc reference for System 34 track format.
Jasjar has joined #glasgow
Jasjar has quit [Quit: ZNC 1.7.3 - https://znc.in]
Jasjar has joined #glasgow
cr1901_modern has joined #glasgow
<whitequark> cr1901_modern: btw I have a large part of a PS/2 applet
<whitequark> the problem is i never figurd out how to make it function reliably
<cr1901_modern> the keyboard or mouse part?
<whitequark> either
<whitequark> see the thing is
<whitequark> it's packet based
<whitequark> but it will never tell you where the packet boundaries are
<whitequark> this is fine in an IBM PC, because you can always just inhibit the device
<whitequark> the problem is that glasgow has FIFOs
<whitequark> so, you send a command to inhibit, it arrives.... some unknown time later.
<whitequark> combined with the fact that the mouse or keyboard will gladly send you packets on its own
<cr1901_modern> yea that sounds like it's going to be a problem. Why can't there be some gateware just before the I/O pins which inhibits on your behalf (and then propogates to the FIFO)?
<whitequark> think of how it would work
<whitequark> e.g. mouse sends 3 byte report
<whitequark> it sends 1 byte into that report, that gateware activates
<whitequark> the 1 byte glasgow has just received is already in the FIFO travelling towards the host
<cr1901_modern> Hmmm, okay... >>
<whitequark> glasgow doesn't know if the 1 byte is an entire packet, half a packet, third of a packet
<whitequark> so it can't wait until it's complete, for example
<cr1901_modern> I'm not actually familiar w/ PS/2 mice. I was under the impression the PS/2 keyboard was "the same protocol as the AT keyboard, just a smaller connector"
<cr1901_modern> was the keyboard protocol extended?
<whitequark> it's also packet-based
<whitequark> G00031 explicitly describes that
<cr1901_modern> Okay then indeed my question doesn't apply :P
<whitequark> hm wait, it doesn't
<whitequark> cr1901_modern: it might have been extended
<whitequark> the docs i can find elsewhere say that keyboards are all packet based
<whitequark> i.e. it has an output buffer and if you inhibit it, it starts sending from the start of the output buffer
<cr1901_modern> In my AT2XT protocol converter, I inhibit the keyboard after every key is received: https://github.com/cr1901/AT2XT/blob/master/src/main.rs#L149
<cr1901_modern> This worked for my needs on the PS/2 keyboards I tested, so I never delved further lol
<cr1901_modern> yes PC keyboards do have like a 16-32 byte buffer. Some keys require more than one byte to send. However, it is encoded in-band how long the expected key input is.
<cr1901_modern> So I can still inhibit safely after each byte is sent w/o things breaking
<whitequark> cr1901_modern: inhibiting the keyboard and explicitly requesting each key to be sent is something i've considered
<whitequark> cr1901_modern: hang on
<whitequark> does the keyboard resend the entire multi-byte combination?
<whitequark> or only the next key
<whitequark> er
<whitequark> next byte
<cr1901_modern> No, only the next byte
<whitequark> huh
<cr1901_modern> https://github.com/cr1901/AT2XT/blob/master/src/keyfsm.rs#L97-L143 This is the State Machine I use to handle AT keycode processing
<cr1901_modern> https://github.com/cr1901/AT2XT/blob/master/src/keyfsm.rs#L73-L94 This is the code that figures out what to do in response to the next state
Jasjar has quit [Ping timeout: 250 seconds]
<whitequark> mmm
<cr1901_modern> https://github.com/cr1901/AT2XT/blob/master/src/main.rs#L195-L249 And lastly, this takes the command from L73-L94, does the command, and returns a response to the state machine (whether it succeeded, failed, etc) to figure out what to do next
Jasjar has joined #glasgow
<marcan> taking the kicad lock
<whitequark> cr1901_modern: ack, this helps
<cr1901_modern> whitequark: Good to know :). Have no idea whether this helps w/ mouse protocol or not- never studied it lol (serial mice are still cheap, while XT keyboards aren't)
<marcan> whitequark: is it okay to not label the Vio leds? we don't really have the silkscreen space for that.
<marcan> (refspec is in there, I mean an actual label for the led)
<tnt> marcan: btw, excuse my ignorance, but who's the character on the back silkscreen ?
<tnt> tx :)
<whitequark> marcan: yeah
<tnt> ah, nice reference :)
<cr1901_modern> (N.b. I liked the Netflix version)
<marcan> lol
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan pushed 2 commits to master [+0/-0/±8] https://git.io/fjsfI
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 104b364 - revC1: add Vio active LEDs, misc fixes
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 4fbc0c3 - revC1: clean up some datasheet links & MPNs
<marcan> whitequark: now just the regulator rework pending, right?
<_whitenotifier-9> [Glasgow] marcan commented on issue #127: Add LEDs for status of port Vio - https://git.io/fjsf3
<_whitenotifier-9> [Glasgow] marcan closed issue #127: Add LEDs for status of port Vio - https://git.io/fjmPT
<whitequark> marcan: yep!!
<marcan> somehow we had a \n inside a couple component field names, that confused kicad a bunch
<marcan> fixed that in 4fb...
<whitequark> ok
<marcan> uhh wait, something went horribly wrong with the refs for the diodes
<marcan> the silk
<marcan> wtf
<marcan> oh, because those footprints got updated
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan pushed 1 commit to master [+0/-0/±1] https://git.io/fjsfM
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 90ee899 - revC1: fix silkscreen borkage due to footprint updates
<marcan> whitequark: I also went over the silkscreen styles and fixed inconsistencies
<whitequark> excellent
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan pushed 1 commit to master [+0/-0/±1] https://git.io/fjsf7
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 604c352 - revC1: fix fab layer too
<marcan> whitequark: https://mrcn.st/p/nkp8hEG9
<marcan> the first two are all the refspecs
<marcan> right side largely uses 0.7, we could make them all 0.7 to match if desired (it's really needed in the dense area where the Vio stuff is)
<marcan> the rest are manual text labels
<whitequark> as you wish
<whitequark> the current situation doesn't look grating to me
<marcan> it's a very subtle difference
<marcan> slightly harder to maintain though, because it's subtle
<marcan> the main benefit to making everything 0.7 wouild be just avoiding the chance for error there
<marcan> (e.g. a mismatch across the symmetry line or whatever)
<marcan> whitequark: to recap, OnSemi NCP718/NCP705 or TI TLV733/755 in DFN6
<marcan> (all those should be footprint compatible)
<marcan> have a favorite to be the canonical one?
<whitequark> probably TI
<marcan> 300mA or 500mA per rail?
<whitequark> 1V2, 300 mA
<whitequark> 3V3, i'd say 500 but it's hard to say
<marcan> it's the same footprint anyway so shrug
<marcan> I'll make it 500
<whitequark> the FX2 is about 150 mA, the shifters at like 200 MHz... i don't know
<whitequark> 500 seems safer
<marcan> sure
<marcan> also LVDS expansion boards get that too
<whitequark> oh, yeah
<marcan> whitequark: TLV755 is upstream, 733 isn't. I'll use 755 for the symbol, we can adjust the MPN to 733 of course.
<whitequark> marcan: let's upstream it, too?
<marcan> is it worth it? it's just a drop-in with lower current
<marcan> I mean I'm not going to copy it, just use the upstream symbol
<whitequark> i guess it's fine
<marcan> I didn't add the single ESD diodes either, used generic sym/fp
<marcan> oh they're just aliases upstream anyway
<marcan> and actually we don't have the 755 in the right package either
<marcan> we can upstream some aliases later, but at that point we might as well do the whole series
<whitequark> yep
<marcan> ah, we don't have the right package at all, meh
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
<marcan> there are some WSON6 regs, but not the right pinout
<marcan> damn
<marcan> whitequark: ok, custom part then, going to the pile of upstreamables
<whitequark> ack
<marcan> whitequark: I'm using the existing package (based on the Microhip spec) and just adding a variant with thermal vias for now.
<marcan> think it's worth adding a TI variant with their recommended footprint?
<whitequark> hmm
<whitequark> we'd have to do that for upstreaming, right?
<marcan> not sure?
<marcan> I see *some* manufacturer specific package variants, but I think most symbols use standard ones?
<marcan> otherwise what's the point of the standard ones at all
<whitequark> mhm, true
<whitequark> then I'd say existing package is fine
wenna has joined #glasgow
wenna has quit [Quit: Client has closed the connection]
electronic_eel has joined #glasgow
<electronic_eel> marcan: thanks for adding the vio leds
<electronic_eel> was just trying to gild the lily regarding the silkscreen
<electronic_eel> how about this: https://i.postimg.cc/SR8JwTw7/vio-variant2.png
<electronic_eel> or another variant: https://i.postimg.cc/VkwCcwsS/vio-variant1.png
<davidc__> whitequark: agreed (re socket). I don't know the best way to do it either; but I'll make up a list of the use cases I know about, and the tricky corner cases for each where I know them
<whitequark> excellent
<electronic_eel> re socket: I was thinking the idea of a direct connection between progs like sigrok and the fpga over
<electronic_eel> I don't know if it is such a great idea
<electronic_eel> you can't change the bitstream this way
<electronic_eel> let's say you want some cool trigger logic in the fpga, then you'd need to change the bitstream
<electronic_eel> also let's say we develop some cool compression to improve throughput
<electronic_eel> then sigrok needs a compatible counterpart
<electronic_eel> but developing improvements for the compression is difficult because we always need to also update sigrok (or similar progs)
<electronic_eel> So I think a socket between the program and the Glasgow program on the host is best
<electronic_eel> the Glasgow program can then translate the stuff that goes over the wire to the fpga
m4ssi has quit [Remote host closed the connection]
<davidc__> For a high-throughput LA; the bitstream and host (display) software will always be intertwined
<davidc__> translation is no good.
<electronic_eel> so new compression and the like could be developed without having to change other programs
<davidc__> Unless you have gobs of CPU power, realtime decompression and recompression is a no-go
<electronic_eel> but is 480mbit high throughput these days?
<davidc__> and you definitely want to spool to disk in a compressed format
<davidc__> its not necessarily the bitrate of the compressed data thats the problem; its the bit-rate of the uncompressed stream
<davidc__> trivial example: a high speed, but very low duty cycle SPI bus
<electronic_eel> yes, exactly. the low duty cycle bus is what I'm thinking of when talking about compression
<whitequark> davidc__: you don't have to decompress
<whitequark> you can translate one compressed format to another
<whitequark> like two different kinds of RLE
<davidc__> whitequark: assuming they are similar enough, yes
<whitequark> you can decompress to some intermediate representation, generally
<tnt> Can sigrok work internally with RLE compressed samples now ? A few month ago it couldn't (i.e. driver had to decompress to raw).
<whitequark> i think decoders still have to do that? which is really odd.
<davidc__> I didn't dive into the code, but it seems they still iterate sample-by-sample, rather than by-edge
<tnt> depends on which PD, some definitely set 'conditions' / wait-for-change
<tnt> but I wasn't even talking about the PD, I was just talking internally how sigrok & pulseview can represent the data from the session.
<whitequark> ah
<marcan> whitequark: https://mrcn.st/t/Screenshot_20190425_021830.png this is what I've got
<whitequark> mgtk
<whitequark> *lgtm
<marcan> I used planes as recommended by the datasheet, but everything is wired prior to that on the topside, so they could be deleted without breaking anything
<electronic_eel> marcan: it looks like they are recommending to connect pin 2 (nc) to the gnd plane in the datasheet
<electronic_eel> (fig. 34 - layout example for DRV)
<marcan> http://www.ti.com/lit/ds/symlink/tlv733p-q1.pdf says pins 1-2 and 5-6 together
<marcan> looks like their rec is different for the different parts, lol
<electronic_eel> yes, seems like. I looked at the TLV755
<tnt> Too bad there isn't a 1.3 or 1.35v version :p
<marcan> whatever, I already did it one way, not going to make both sides different and not going to change it to GND :p
<electronic_eel> marcan: yes, ok. I think it means that it doesn't matter much in the end
<marcan> electronic_eel: I think the reason why the 755 version does that is due to the capacitor GNDs
<marcan> the Cin has no other path to GND with that layout
<marcan> but mine does since I put it off to the other side
<marcan> so shrug
<marcan> I like the idea of beefier trace around vin/vout since that's where all the current goes
<electronic_eel> Often GND is best for thermal transfer - may be another reason for them too
<marcan> yeah
<marcan> but it already has an exposed pad anyway, so shrug
<marcan> I think we're probably okay
<electronic_eel> do you have vias in the exposed pad?
<marcan> yes
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan pushed 2 commits to master [+1/-0/±6] https://git.io/fjsLZ
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 919b8a6 - RevC1: add TLV733/755/757 in DFN-6 footprint to library
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 69828f7 - RevC1: Replace 1V2/3V3 regulator with TLV755/733 series
<electronic_eel> I just saw that the upper ldo doesn't have vias above like the lower one
<electronic_eel> but with vias in the exposed pad it should be ok
<marcan> hm, yeah, I can add those to the top too
<electronic_eel> is symmetrical then ;)
<marcan> yeah, the initial intention was "vias in between both sides" but it makes more sense to have them at the top too :-)
<marcan> also, I think I can get rid of the stitch across the top layer to the left of the SDA testpoint: https://mrcn.st/t/Screenshot_20190425_024128.png
<marcan> that's there because previously the 1V2 trace went pretty far down, and segmented the 3V3 plane kind of nastily (it was still connected but it felt too roundabout)
<marcan> but now that pops off the top side regulator, so there's plenty of 3V3 plane
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan pushed 3 commits to master [+1/-0/±7] https://git.io/fjsLl
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan ddf1749 - revC1: add TLV733/755/757 in DFN-6 footprint to library
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan f3fa13a - revC1: Replace 1V2/3V3 regulator with TLV755/733 series
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 1db6e87 - revC1: Add extra vias to the 1V2 regulator top side
<electronic_eel> yes, the 3V3 stitich doesn't seem to be necessary now anymore
<electronic_eel> marcan: what do you think about the silkscreen suggestion I posted: https://postimg.cc/Cnhh8NMz
<electronic_eel> I can create a proper pull req when you are finished
<electronic_eel> assumed you like it
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan pushed 1 commit to master [+0/-0/±1] https://git.io/fjsLE
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 4bf1052 - revC1: get rid of 3V3 plane stitch across top side
<marcan> electronic_eel: maybe like this? https://mrcn.st/t/Screenshot_20190425_030437.png
<marcan> I don't like C30 that close to the edge of the board, otherwise same idea (D14 doesn't need to be that far away)
<marcan> (more readable)
<electronic_eel> yes, nice. I'd use "Vio" with small "io" though
<marcan> everything else is uppercase though
<marcan> I'll defer to whitequark on this one
<electronic_eel> yes, you are right, the other led descriptions are uppercase
<electronic_eel> then go with uppercase
<_whitenotifier-9> [Glasgow] marcan commented on issue #130: Change regulator from MIC5355-S4YMME - https://git.io/fjsLS
<_whitenotifier-9> [Glasgow] marcan closed issue #130: Change regulator from MIC5355-S4YMME - https://git.io/fjY25
<_whitenotifier-9> [Glasgow] marcan opened issue #134: TLV733/TLV755 family - https://git.io/fjsL7
<_whitenotifier-9> [Glasgow] marcan assigned issue #134: TLV733/TLV755 family - https://git.io/fjsL7
<whitequark> marcan: so... we're done?
<electronic_eel> whitequark: there was this vio regulator issue you had last week
<whitequark> oh hmm
<electronic_eel> IIRC the en line was off but the regulator still providing power
<whitequark> yes.
<electronic_eel> after shorting it out
<whitequark> marcan said he'll try reproducing it.
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan pushed 1 commit to master [+0/-0/±1] https://git.io/fjsLd
<whitequark> it's marginal...
<_whitenotifier-9> [GlasgowEmbedded/Glasgow] marcan 7d2f53c - revC1: make space for and add silkscreen label for VIO LEDs
<marcan> ah yeah, I need to try that
<marcan> whitequark: can you refresh my memory?
<whitequark> yes, sec
<electronic_eel> marcan: silkscreen looking nice!
carl0s has joined #glasgow
<_whitenotifier-9> [Glasgow] whitequark opened issue #135: Regulator behavior after short circuit - https://git.io/fjsLb
<whitequark> marcan: see #135
<marcan> whitequark: okay, I can repro, and this is weeeeeeeird
<marcan> the EN pin is dead at 0V, yet the regulator is passing current
<marcan> but just *touching* EN kicks it into resetting
<whitequark> yep
<whitequark> probably a regulator bug? :(
<marcan> yeah... let me look over the datasheet more closely
<electronic_eel> is the en signal maybe dropping too slow for the regulator?
<electronic_eel> there is a 100k pulldown, maybe that is too high?
<marcan> maybe, I was going to test that
<electronic_eel> when looking at fig 30 in the datasheet it seems that EN is used for all kinds of internal power
<electronic_eel> like for the bandgap and error amp
<electronic_eel> could be that it makes the en susceptible to glitches
<marcan> not sure if that's really "power"...
<electronic_eel> yeah, the figure is quite vague
<electronic_eel> but they don't show a buffer with schmitt trigger at the en input
<electronic_eel> so they probably don't have one
<marcan> heeee no
<marcan> the problem is we're oscillating
<whitequark> whaaaaat
<marcan> but...why
<electronic_eel> who is oscillating?
<marcan> whitequark: well the current limit is oscillating (the vusb one)
<marcan> which is fine
<marcan> but the question is why is EN going high
<whitequark> i wonder if the FX2 has small internal pullups
<whitequark> i... don't think it's supposed to?
<whitequark> it might though
<marcan> 5V is going high but *not* 3V3
<marcan> so... where is the current into EN coming from
<electronic_eel> I had a similar problem when using an FTDI usb ic. During reset it enabled my power regulator, then when reset was finished it disabled it as it should
<marcan> wait, no
<electronic_eel> was a silicon bug in the ftdi in the end
<whitequark> electronic_eel: see we don't trust the FX2
<marcan> so I get about 400mV on 5V and 40mV on EN and 3V3
<marcan> (had a snafu with probe settings)
<electronic_eel> yes, not trusting usb ics is good practice
<marcan> so the FX2 is presumably trying to pull EN high as 3V3 rises
<marcan> I wonder what the startup behavior is here
<electronic_eel> marcan: desolder the regulator and have a look with the scope during powerup
voxadam has quit [Read error: Connection reset by peer]
<marcan> ugh, I have a ground loop making everything more confusing
<electronic_eel> run a laptop off battery and with wifi, that gets rid of it (for low voltage cases like this)
<marcan> yeah, EN is really 0V, the waveform I was seeing was the ground loop
<marcan> shorting EN to GND does not unjam it
<electronic_eel> can you try to catch the moment it goes down with the scope?
<marcan> yeah
<marcan> but let me fix the ground loop first
<electronic_eel> then you can see if it falls slow or strange
<marcan> btw, mine spontaneously recovers sometimes
<marcan> ohh here's a fun one
<marcan> if I trigger the short, then unplug the glasgow, then plug it back in, it does not recover
<marcan> unplugging it, removing the short, reinstating the short, and plugging it back in *still* leaves it wedged
<electronic_eel> but plugging in without the short fixes it?
<marcan> however, removing the short and letting it power up properly, then reinstating it (with no vio now), and unplugging it and plugging it back in works
<marcan> so there is some serious capacitance somewhere keeping something alive
<marcan> it has one bit of long-term memory :D
<marcan> maybe we just need discharge resistors on a bunch of rails?
<electronic_eel> is the regulator enabled for a very short time during plugin?
<marcan> if that were the case it would wedge on cold power up with a short unconditionally
<marcan> but it doesn't
<electronic_eel> like the fx2 pulling en up for a short time
<marcan> it only happens after it was *already* wedged when it was powered down
<electronic_eel> huh
<whitequark> lol re: one bit of memory
<electronic_eel> question is if it is the fx2, the regulator or something else
<marcan> the regulator is definitely involved
<marcan> because that EN pin is going nowhere near Vil
<electronic_eel> maybe the thermal protection going crazy?
<marcan> doesn't explain the memory :D
<electronic_eel> it could still be hot when you replug
<electronic_eel> so the temp is the memory
<marcan> and it would still be hot after I replug after fixing the problem
<marcan> so no
<marcan> i.e. I can leave it unplugged for longer than a reset cycle
<electronic_eel> I don't like this
<electronic_eel> marcan: do you have samples of other ldo models laying around that would fit the footprint?
<marcan> so the 1 bit of memory survives shorting all 3 rails to GND
<marcan> *magic*
<electronic_eel> maybe you can patent this as a new alternative to flash ;)
<marcan> okay, I don't get this
<marcan> it has to be the regulator, there is no other explanation
<marcan> the one bit of memory is the gate capacitance of the pass FET of the regulator
<marcan> EN is solid low
<electronic_eel> there is some text about the pass fet gate in the datasheet of the reg, the enable section
<electronic_eel> but it is vague
<marcan> yeah
<electronic_eel> seem they leave it to the user to discover what is going on...
<marcan> seems to me that in the pursuit of low Iq they have absolutely no self-discharge on that gate
<electronic_eel> yes, that may well be the reason
<electronic_eel> so we should choose a regulator that isn't so optimized for low Iq
<marcan> fwiw that thing holds charge for over 1 minute
<electronic_eel> the gates in flash memory hold their charge for years
<marcan> well yeah :p
<marcan> but those are floating gates
<marcan> this one is connected to stuff
<electronic_eel> true
<electronic_eel> but there is a reason why you usually put pulldowns on gates
<marcan> so one solution to this is to just introduce some resistance
<marcan> 1 ohm across Vio definitely gets the regulator into current limiting, but doesn't kill glasgow entirely
<marcan> that's 0.5V at 500mA, and we can stick it before the feedback divider so it'll just cause dropout, not bad regulation
<marcan> I wonder how low we can go while avoiding the issue
<whitequark> iiiinteresting
<marcan> the problem here is that the regulator *does* have gate discharge
<electronic_eel> at what current does your reg begin to limit?
<marcan> but if the short is super low impedance, the *input* to the regulator doesn't rise high enough for it to start *working*
<marcan> everything is so far below operating voltage it's just stuck in this weird limbo
<marcan> but if you have just enough resistance to allow Vin to rise high enough for all the protections to kick in, it's fine
<electronic_eel> the plan is to provide 150mA for Vio - that would be just 0.15V
<marcan> yeah
<marcan> well, we actually go higher, and that's good
<electronic_eel> how high does the regulator go before it begins to limit?
<marcan> oh btw
<marcan> the culprit here is the VUSB current limit
<marcan> bypassing that brings it back to life
<marcan> maybe we should switch to the 1.5A version?
<whitequark> that sounds fine
<marcan> whitequark: should I mouser it and see if it fixes the problem?
<whitequark> yep
<electronic_eel> hmm, but does it limit at 1.5A or is that just the designed current
<electronic_eel> with a limit at 2A or even higer?
<marcan> 2.15
<marcan> but I mean, it's a safety
<electronic_eel> There are nice usb current limiters available at LCSC
<electronic_eel> they allow to set the current with a resistor
<marcan> and fwiw, I could see myself wanting >500mA out of glasgow
<marcan> give it 100mA for internal use, 300mA per port, that's 700mA
<marcan> the current limit is actually 360mA typ per port
<whitequark> 100mA for internal use is low
<whitequark> more like 200
<marcan> sure
<electronic_eel> I use them in a project to limit a power output at 500mA
<electronic_eel> so that the controller doesn't reset when you draw more
<electronic_eel> works like a charm
<electronic_eel> but it is not powered by usb
<marcan> whitequark: I'm going to mouser the 1.5A limits, as well as some of the new regulators and the ESD diodes to mess around with
<marcan> might frankenstein some things in just to prove that they work
<whitequark> ack
<electronic_eel> why not the power limiters with resistor?
<electronic_eel> too much hassle changing the footprint?
<electronic_eel> or do you not trust chineses manufacturers?
<marcan> that's just a switch, what we have is also ESD protection
<marcan> 2-in-1
<electronic_eel> ok, so esd would be one more part
<marcan> that I'd also have to fit in there :-)
<electronic_eel> but setting the current limit with a resistor is really nice
<electronic_eel> you could move the osciallator up a bit
<whitequark> i'd rather keep the BOM with only western vendors
<whitequark> simply because i can point at mouser and say, "get this"
<electronic_eel> but LCSC has become a reliable source too
<whitequark> also because i can complain to TI and they will actually respond
<whitequark> ehhhh
<marcan> except the pink LEDs :D
<electronic_eel> was just going to say that too...
<electronic_eel> even esden buys some of his stuff at LCSC
<marcan> well, order placed
<marcan> off to sleep
<whitequark> electronic_eel: i could not find pink LEDs anywhere else at all
<electronic_eel> you really don't trust chinese vendors
<electronic_eel> I know that there is no kind of support from them
<electronic_eel> but I have made enough bad experiences with western vendors too
<whitequark> cypress has been utterly useless
<whitequark> lattice too
<electronic_eel> there are just very few who actually help you, even with actual bugs in their products
<electronic_eel> you need to buy big chunks of components directly from them, not through a distributor
<electronic_eel> then they assign you an FAE
<electronic_eel> before that stage you get completely ignored by them
<electronic_eel> so I see no big difference between chinese and western vendors
<gruetzkopf> heh
<marcan> btw, I also ordered a bunch of low-value resistors
<marcan> so I can try that approach
<electronic_eel> marcan: you mean like between 0.1 ohm and 0.5 ohms?
<whitequark> electronic_eel: ti is p helpful
<electronic_eel> I once had a problem with one of their AM335x usb drivers
<electronic_eel> they weren't able to help, the driver still has this bug
<electronic_eel> it was with usb isochronous mode - maybe that is too cursed
<electronic_eel> maybe the analog department is better
electronic_eel has quit [Quit: Konversation terminated!]
electronic_eel has joined #glasgow
electronic_eel has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
electronic_eel has joined #glasgow
carl0s has quit [Quit: Page closed]
movax has joined #glasgow