GPIO is an acronym for general purpose input/output. The term is typically applied to a pin on a microcontroller or other device that may be changed between an input and output under software control. It can be used for an application defined purpose, as opposed to being constrained to a single ...
1
vote
1answer
28 views
Faster IO on ARM Cortex-M3 (Sam3x8e) than PIO_SODR and PIO_CODR?
I have a very simple C program that toggles a pin on a Cortex-M3 board (SAM3X8E) with a 84MHz clock speed. I built this using Atmel Studio 6.1.
...
0
votes
1answer
64 views
How to wire a Normally Open Button to a BeagleBone Black?
This one should be simple, but I'm fairly new to this.
The button has a COM and an NO terminal. Beaglebone pins can only take 6mA, so I don't have much room for error. My question is, how do I wire ...
3
votes
2answers
108 views
Manual SPI interface on Raspberry PI
I am trying to control a MCP4131 digital pot from my Raspberry Pi using the
library here
Using the GPIO pins, I am "emulating" an SPI interface. I bring the ChipSelect pin to low, write my byte, ...
1
vote
2answers
59 views
Peak voltage rating means voltage drop?
This LDR is said to have Peak voltage rating of 400V in the description. Does this equal the voltage drop, meaning that I need to supply at least 400V or is it the maximum voltage value?
0
votes
0answers
25 views
Troubles sharing GPIO and JTAG on MC56F8006
This is my first time with freescale (DSC MC56F8006) and I am having some troubles related to GPIOD3 and GPIOD0 configured as digital output/input respectively shared with the JTAG. When I try to ...
2
votes
2answers
83 views
how can a GPIO of stm32 have many alternative functions?
I am working on the assignments of pins of STM32F103ZET1.
On page 31 of datasheet, it says that PA0 has many alternative functions: ...
5
votes
1answer
151 views
AVR Pin Dual Use: Input and Output at (seemingly) the same time
I have been working on a few different versions of a bicycle light control circuit which reads in various buttons and sets various outputs accordingly such as headlight, taillight, blinkers, etc.
My ...
3
votes
4answers
92 views
What happens to other component's power consumption, when uC is switched to low-power mode
Currently, I am using a uC (Atmel ATtiny85-PU20), which will eventually run battery powered, and I am trying to reduce power consumption of entire circuit to maximise time between battery changes. ...
2
votes
1answer
168 views
USB to GPIO module
I'm working on a project which involves having users press buttons on a webpage which the server needs to send onto a microcontroller in the form of a GPIO signal. The only ports available on the ...
5
votes
2answers
95 views
i2c external pullup kills communication
I am using an MCP23017 (which shouldn't matter tho) to extend the number of GPIO pins of an arm based linux computer using i2c-dev bitbanging. It all works fine with wires of a few centimetres.
The ...
6
votes
3answers
368 views
How to drive a 20mA LED From a 4mA max GPIO Pin
I have an IC that has an GPIO with which I would like to drive a LED.
Since the device will be running off battery, keeping the power use low (Zero maybe) while the LED is off as a priority.
The ...
0
votes
1answer
104 views
Beaglebone GPIO always return 1
I'm trying to get a button to work on my Beaglebone. I bought MAKE Volume 32 and tried to follow the guide in there.
But when I read the GPIO pin, do I always get 1.
I also tried to disconnect ...
1
vote
1answer
241 views
GPIO input connected to garage door button
I know there are other GPIO / Garage door related questions, but this is not a duplicate- I need to read the status of the garage door button, not a garage door sensor.
I would like to connect the ...
2
votes
1answer
160 views
Seven segment display becomes dimmer as more segments are lit
I've got a common cathode, two digit seven segment display (LDD-N512RI-RA) hooked up to the GPIO pins of a microcontroller (Coldfire MCF52233 DEMO). The problem is that the brightness of the display ...
5
votes
5answers
279 views
Pull-up and Pull-down Resistor Usage on Input or Output MCU Pins
Are pull-up/down resistors (whether internal or external) only needed for MCU INPUT pins? In contrast, an MCU pin configured as an OUTPUT "knows what level it's at" because it does the driving - a ...
0
votes
2answers
145 views
General Questions about PIC24 MCU Input and Output Pin Impedance, Voltage, and Current
I'm having a mental lapse. Try and help me make sense of a few basic things concerning microcontroller pins at the hardware level, please!
Correct me if I'm wrong… in the circuit of Figure 1 (see ...
2
votes
2answers
117 views
4 GPIO 16 Mosfets
I have 4 GPIO's and I have to drive 16 mosfets for my application.
MCU -> 4 GPIO -> something must be here(SPI mosfet driver??) -> 16 mosfets
I thought that if I have an SPI mosfet gate driver IC, ...
6
votes
3answers
839 views
Miniature Traffic Light with Raspberry Pi: Wiring many LEDs
Background:
I am a Civil Engineer specialized in traffic control devices and I have a small hobby project to build a scale model traffic light system. I can manage and control the traffic light ...
2
votes
1answer
75 views
NXP LPC1343 GPIO questions
I am an embedded SW developer who wants to get more familiar with HW design. I have an LPCXpresso board with an LPC1343 on it. I want to build some circuit around that. I thought I'll start by finding ...
2
votes
3answers
69 views
Reading value of bit in PxIN register
I need to get the value of an input but only need to get one specific bit. Im porting some software and can't seem to think of a way to get the value from PxIN for the microchip pic it looks like ...
2
votes
3answers
164 views
Can Arduino MISO be set as output?
So I designed a PCB which consists of an atmega328 controlling a digital potentiometer (MCP4131) using SPI. I stupidly connected the pot's i/o to the MISO (master in, slave out) pin on the arduino ...
4
votes
4answers
242 views
Accessing individual I/O pin on MSP430
Im porting some software from Microchip PIC (using the HI-Tech C Compiler) to TI MSP430, and in the existing code they access the pins directly with something like:
...
0
votes
2answers
155 views
how do I output through GPIO pins instead of RS232 from a Z8 Encore MCU?
I'm currently learning about MCUs in school (read: n00b) and I'm trying to fool around with the equipment at home. Problem is that I only have a netbook and don't have any serial IOs on it, so I have ...
0
votes
3answers
469 views
STM32F407 board [closed]
I started learning embedded programming. But there are many things which is not understandable!
There are many things like USART, GPIO, DMA, SPI, I2s, I2c....... and others.
I have manual and other ...
2
votes
3answers
232 views
Can I use I2C bus or GPIOs as I2C to connect I2C devices?
This question is regarding use of I2C Bus/GPIOs as I2C.
My application processor has three I2C controllers. Is it preferable to connect all I2C devices (obviously we can not connect more than 128 ...
3
votes
1answer
314 views
Measuring almost 1 volt between Raspberry Pi input pin and ground, why?
I'm trying to use a switch to to provide input to software running on the Raspberry Pi. I have software running right now that continually reads the input pin and prints the result. Problem is, even ...
10
votes
1answer
892 views
Getting a large number of (~100) digital output signals from Arduino
I would like to be able to control around 100 independent LEDs using an Arduino. The problem is that the Arduino does not have nearly enough pins that can be configured for this. What would be a way ...
2
votes
1answer
198 views
Need of External Pull Up/Pull Down for Processor I/O pins
For a particular I/O pin, its been mentioned in the processor data manual that there is Internal pull down, after power on reset, in the device with a default drive state of the pin as tristate(Z).
I ...
1
vote
3answers
624 views
Using GPIO in PC
I've got a simple project on host device that should drive 2 pins with high logic level (voltage 3.3V, 5V or 12V - doesn't matter) and wait for 2 others pins become driven high level by the peripheral ...
5
votes
4answers
264 views
Are CMOS outputs high-Z when unpowered?
If a microcontroller I/O pin drives an external MOSFET, and the microcontroller's power is turned off, will that MOSFET's gate be floating? I know sometimes a resistor is added to ground, but are ...
1
vote
1answer
479 views
GPIO and relay quesiton
I have a question about the YouTube video Raspberry Pi Controls Relay. It's about controlling a SainSmart 4-Channel 5V Relay Module. Is it driven directly off the 3.3V GPIO?
4
votes
1answer
553 views
Why does MSP430 have 2 capture signals for each capture/compare channel? Pin assignments recommendations?
Let's take MSP430G2553 as an example. If you look at the pinout in datasheet, you'll see:
P2.1/TA1.1
P2.2/TA1.1
One could think that those TA signals identical and multiplexed twice as a courtesy ...
8
votes
5answers
411 views
When IO is limited on a uC, how do you move the logic away from the uC?
For instance, if you had an Arduino with 4 digital IO pins, how could you independently light > 4 LEDs, or read the state of > 4 buttons?
8
votes
1answer
994 views
Plugging a LDR into GPIO pins of a Raspberry Pi
I want to connect a LDR into the GPIO pins of my Raspberry Pi, I know that Raspberry Pi doesn't have an analog-to-digital converter so what I want to do is to signal a HIGH signal (3.3v) on the GPIO ...
5
votes
1answer
590 views
Open Drain vs Open Collector
Is there a practical difference between Open Drain and Open Collector outputs, or are the terms used interchangably? If they are indeed different, what are the contexts where each is advantageous? My ...
2
votes
1answer
433 views
Problem writing to MCP23017 I/O Expander registers (i2c)
I am creating a basic cable tester device and using I2C to interface with two MCP23017 I/O expander chips.
In my code each MCP23017 slave has its own address and I can communicate with both of them ...
6
votes
3answers
505 views
Why would an input pin have both a pull-up and pull-down resistor?
In his answer detailing the various types of input pins, Russell McMahon leaves the following note [referring to input pins]:
there are special cases where a resistor to high and low at once is ...
3
votes
3answers
1k views
Using a 5V LCD screen from a 3.3V Raspberry Pi GPIO pin
I have an LCD screen which expects power from a 5V line, but I want to hook it up to my Raspberry Pi's GPIO pins which only supply 3.3V. What equipment do I need to increase the voltage from 3.3V to ...
0
votes
1answer
165 views
ARM: Read the value of an Alternate Function pin
I have an ARM STM32 where each GPIO pin can be configured as "input", "output", "analogue" or "alternate function". In "alternate function" mode, the ARM drives a lot of the logic for basic ...
1
vote
3answers
194 views
How to go from GPIO to digital signal?
I'm sitting here with my Raspberry PI and some other equipment that requires digital signal (high/low, enabled/disabled).
But the Pi only has a GPIO so to get it to work I would need a microchip of ...
0
votes
0answers
265 views
Need help reading pins on STM32F107VC
Recently I've started exploring ARMs by buying open107v board (based on the STM32F107VCT6) from China.
I've already figured out how to write to ports, but cannot get pin read. Here is a piece of code, ...
2
votes
4answers
390 views
What is the common pin configuration upon microcontroller reset?
I have looked through two datasheets and user manuals now for two different microcontrollers (LPC2387 and STM32F4xx), and I haven't found (probably missed) anywhere where the initial state of the GPIO ...
7
votes
1answer
3k views
Push-pull/open drain; pull-up/pull-down
I am reading the datasheet of an ARM Cortex chip, specifically the GPIO chapter. Ultimately, I want to configure various GPIO pins to use them in "Alternate Function" mode for read/write access to ...
3
votes
3answers
378 views
Controlling more relays than the no. of free IO pins a uC has - Low-cost options
While I understand that moving up to a high pin-count uC might be the simplest option, I am looking for Low-cost options to do the same with low pin-count uC.
Would like to control a maximum of 8 ...
2
votes
2answers
1k views
Are I/O pin internal resistances equal to the Thevenin resistance?
I'm trying to find the Thevenin resistance of an I/O pin for the ATmega644. I see on the datasheet that there is a 20-50 kohm range of internal pull-up resistance. So with that, I can create a ...
