Wednesday 1 March 2017

microcontroller - Doesn't voltage on ground make it not ground anymore?


schematic


simulate this circuit – Schematic created using CircuitLab


Beginner here, trying to learn enough to start using a microcontroller.





  1. If the I/O pins are internally high, wouldn't pressing one of the buttons put voltage on the ground wire, making it no longer ground? Including Vss?




  2. I added R1 = 100Ω based on the STM8S003F3 datasheet max "Total current out of VSS ground lines (sink)" = 80 mA, and R2 = 270 Ω based on max "Output current source by any I/Os and control pin" = -20 mA. Am I doin' it rite? Is an additional resistor needed to limit current through (decoupling capacitor) C1?






No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...