Noob question-GPIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-08 9:03 PM
I know this may be a silly question, so hopefully there is a quick answer: Im trying to configure one of the GPIO pins for a simple output. However when I measure the pin voltage, it reads 3v. Is there any way I can configure the output to be at 5v? I would think this would be as simple as setting the output mode (set to push\pull at the moment).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-09 12:00 AM
Im trying to configure one of the GPIO pins for a simple output. However when I measure the pin voltage, it reads 3v.
How does it read 3 volt ? Do you measure with a voltmeter, or do you mean ''High'' signal ?Is there any way I can configure the output to be at 5v?
No. Being ''5V tolerant'' means, this GPIO pin can accept 5V as input, without stopping to work properly. A GPIO output can switch between ''Low'' and ''High'', which are GND (0V) and Vdd (3.3V). It never generates voltages in excess of Vdd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-09 7:17 AM
Im just using a volt meter to measure the pin voltage when I trigger it from high to low. I just kinda of expeced it to be at the standard 5v when high, instead of 3v.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-09 7:24 AM
''the standard (sic) 5v''
5V has not been ''The Standard'' for many years now! ''instead of 3v'' Given that the processor is running on 3V, where would the 5V come from?
Note that it's an uppercase 'V' for volts.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-09 8:01 AM
Suspect a, ''Discovery board'' lured you in. ARM MCUs are complex devices - far beyond the ''usual'' hobbyist choice.
For you to succeed w/this class MCU - much serious reading (even study) of datasheets, code examples, this/other forums - is surely required. As stated - days of EZ solder, 40 pin MCUs in DIP packages - long gone! Your 5V expectations are somewhat, ''time warped...'' Reading between the lines - should you seek to ''interface'' to older, 5V logic/devices - in many cases (but not all) the 3V3 MCU levels will be ''seen'' as logic high. Where they are not - you must acquire voltage translator ICs (many makers) - which can convert from/to various voltage levels.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-09 8:14 AM
Also, should you seek to ''interface'' to older, 5V logic/devices, beware that the ''5V-tolerance'' of (certain) inputs does have some provisos - again, much serious reading (even study) of datasheets, etc, is surely required.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-09 11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-09 1:04 PM
An unfortunate fact - most schools, ''do not keep up'' with newest/best... 5V has long been passe.
As FM stated earlier - only mention of 5V & GPIO most of us can recall - is the ability of some/many GPIO to handle 5V when the GPIO is configured as input - never output. If you can find - and share here - any further such description - we'd be most surprised!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-10 12:27 AM
''the user manual is a little bit misleading''
Which user manual - the one for the Discovery board, or the one for the chip itself?
Note that the ones for the Discovery boards (and DevKits) contain full schematics - so you can see what voltages go where...A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-10 2:06 AM
Which user manual - the one for the Discovery board, or the one for the chip itself?
Admittedly, the ST style if documentation appears to be somehow fragmented. I like TI's datasheets, which are like ''ST-Datasheet + ST-Reference Manual'', meaning you have it all in one document. It's a pity TI disregards M0 and apparently M3. But nevertheless - as a beginner one should form the habit of gathering all available documentation of your item of interest, and read it carefully. And admittedly, again, ST's manuals are a hard read sometimes ...
