INTL 3:770/1 3:770/3   
   REPLYADDR JL@gct.com   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: <3h3jej5072rp8v7dou767q1k75j7jrneeu@4ax.com> f07c07b4   
   REPLY: 3130a001   
   PID: SoupGate-Win32 v1.05   
   XPost: sci.electronics.design   
      
   On Tue, 17 Sep 2024 10:49:58 +0200, Arie de Muijnck    
   wrote:   
      
   >On 2024-09-17 04:58, john larkin wrote:   
   >> The RP2040 has a cool mode where it can be made to boot up with the   
   >> USB port looking like a memory stick. That's great for software   
   >> installs or upgrades. The Pico board has a BOOT button on the board;   
   >> if the pico is powered up with the button pushed, it goes into that   
   >> boot mode.   
   >>   
   >> But if I have a product (actually a family of products) in a nice   
   >> aluminum box, a user would have to remove the top cover, remove all   
   >> power sources (there can be three), and hold the button down while   
   >> reconnecting power.   
   >>   
   >> Some of my customers also want to lock a box such that it's impossible   
   >> to write to any nonvolatile memory while it's in a secure area.   
   >>   
   >> So here's an idea: a small hole in the box allows a toothpick or a   
   >> paper clip to push a button. A short push is a regular reset. A long   
   >> push is a memory-stick mode boot. We can have a rotary switch LOCK   
   >> hole too.   
   >>   
   >> https://www.dropbox.com/scl/fi/bbhdy053xsdzv77g0brc5/B-box_Re   
   et_Button_3.jpg?rlkey=40ozzdvczf4z8625u8i081a9b&raw=1   
   >>   
   >> Does that look like it will work? The paranoid customer can pave over   
   >> the two holes, and even the end-plate screws, with an official-looking   
   >> sticker.   
   >>   
   >> Schmitt trigger U3 is unfortunate and likely unnecessary, but it   
   >> insures against a low-probability hazard.   
   >>   
   >   
   >I used the same idea, but with less hardware. The switch triggered (RC   
   differentiator) the reset pulse and the MCU senses the state of the switch   
   after the reset pulse trailing edge. I used the bootloader code for that   
   timing. The RP2040 could sense the    
   switch state on the BOOT- pin after a long (5 second?) reset pulse, but that   
   would mean a slow start on each power on.   
      
   My circuit doesn't delay a normal powerup. That's dominated by the   
   roughly 200 msec reset generated by the MAX809 after the 3.3 supply   
   stabilizes.   
      
   >   
   >I think your idea would work OK, just a bit complex. Just NEVER short a cap   
   with a switch (or relay) without a series resistor.   
      
   I don't think the 10u cap will weld the contacts of the pushbutton.   
      
      
   >   
   >Arie   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 1/19 16/0 19/37 80/1 90/1 105/81 106/201 123/130 129/305   
   SEEN-BY: 142/104 153/757 7715 203/0 218/700 840 220/70 221/1 6 242   
   SEEN-BY: 221/360 226/17 30 100 227/114 229/110 111 114 200 206 300   
   SEEN-BY: 229/317 400 426 428 470 550 616 664 700 230/0 240/5832 266/512   
   SEEN-BY: 267/800 280/5003 282/1038 291/111 292/854 301/1 310/31 320/119   
   SEEN-BY: 320/219 319 2119 322/757 762 325/304 335/364 341/66 342/200   
   SEEN-BY: 396/45 423/81 460/58 633/280 712/848 770/1 3 100 330 340   
   SEEN-BY: 772/210 220 230 5020/400 5053/58 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 1 320/219 229/426   
      
|