Pop Andrei Lucian Posted July 28, 2017 Posted July 28, 2017 Hello, I am talking strictly about GPIO's value and mode at reset. Under "sudo gpio readall" of H3 core (OPI Lite) I can see that ALL GPIO pins are 0V with different alternative mode functions. Under H3 core (OPI Lite) datasheet 1.2 says that value PC3 and PC4 GPIOs are pulled up? This are in contradiction! Did anyone measured the H3 core GPIOs value? Does H3 core has any pin of pulled-up mode during the reset time of the controller? Please help.
martinayotte Posted July 28, 2017 Posted July 28, 2017 Where did you found OPiLite 1.2 schematic, because I think it still 1.1 version and there is no external pullups on that board. If you are talking about internal pullups of every GPIOs, there are only turned on by software settings, so there are not present at reset, all GPIOs for almost any SoC are usually simple high impedance floating pins.
Andrew Crawford Posted July 29, 2017 Posted July 29, 2017 Hi Martinea, Im a new bee in the world Orange Pi. My promlem is I have an Orange Pi PC Plus H3 chip. Im running Armbian Python 3 . Im Wondering if you could kindly point me in the right direction with how to load the following: 1. all the IO similar to Raspberry PI . 2. IBE 3. a remote desk top like VNT in Raspberry Pi. I could not find any Library's for the above. I really like this board especially the WiFi Socket on the PCB. Thanks For your time.
martinayotte Posted July 29, 2017 Posted July 29, 2017 For GPIO, I suggest this one : https://github.com/duxingkei33/orangepi_PC_gpio_pyH3 IBE ? What do you means ? Remote Desktop ? I'm personally only using SSH, so I can't gave instructions here, but in this forum there are plenty of post about tightvncserver ...
Pop Andrei Lucian Posted July 29, 2017 Author Posted July 29, 2017 Hello, Thank you for fast notice. "Where did you found OPiLite 1.2 schematic?" Under official website: http://linux-sunxi.org/images/4/4b/Allwinner_H3_Datasheet_V1.2.pdf At page 68 it is stated that GPIOs PC3 and PC4 are "Default pulled up" (at reset time). Also, when I run gpio readall I get next output => That all are zero alue with different ALT function at reset time (with yellow in picture) Am I making something wrong? I want to trigger a LED when the micro controller is on reset faze and until the software loaded on the sd card did not started yet. " for almost any SoC are usually simple high impedance floating pins" --> under Raspberry Pi you have some GPIOs that are set as OUTPUT and PULLED-UP by default in order to specifically simulate this action.
martinayotte Posted July 29, 2017 Posted July 29, 2017 46 minutes ago, Pop Andrei Lucian said: Under official website: http://linux-sunxi.org/images/4/4b/Allwinner_H3_Datasheet_V1.2.pdf At page 68 it is stated that GPIOs PC3 and PC4 are "Default pulled up" (at reset time). Ok ! I see, it is not the OPiLite schematic, but the SoC H3 Datasheet. Looking atthis page 68, you can see that all GPIOs are at "Z" Reset State (during Reset been asserted), this means high-impedance like I mentioned. Also, further on page 74, even those 4 GPIOs with PullUps (which probably mean internal pullups on the pins itself, I didn't verify with a scope), have their "Default IO State" all to "DIS", means "disabled", and they stay like that until been initialized. That is why you still seeing them with value of zero... If your wish is to have a LED reflecting the fact that the chip is been resetted but no single byte read from SDCard, your only solution is to connect that LED to reset, but that doesn't mean much since a reboot won't make that LED turned on. EDIT : BTW, the reason those 4 pins have internal pullups is now clear, it is because there function2 is to attached a NAND, NAND_CE1/NAND_CE0/NAND_RB1/NAND_RB0, and having those floating to unknown state would means that NAND could be corrupted, so that is why they added those special pullups directly on the pin to prevent that. This means also the "Z" on page 68 for those pins is biased. EDIT2 : I've verified with my scope, and PullUps are effectively permanently there, while other GPIOs needs to be configured to get them.
Pop Andrei Lucian Posted July 29, 2017 Author Posted July 29, 2017 Thanks for such prompt notice !! I do understand now the meaning. Enlighten my way. But, Under OPI Zero (H2+) it looks that 2 of this pins have both OUT HIGH and IN HIGH No datasheet present in order to check the values. Or is there?
martinayotte Posted July 30, 2017 Posted July 30, 2017 I'm not understanding your last post ... Your screenshot maybe only confused me where to look at ...
Pop Andrei Lucian Posted July 31, 2017 Author Posted July 31, 2017 Sorry for getting confused, with green is initial OPI Zero GPIO values at startUp (reset time) Under OPI Zero (H2+) it looks that 2 of this pins have both OUT HIGH (wPi pin 0) and IN HIGH (wPi pin 9) Is there a datasheet present in order to check values from test with H2+ datasheet ones? (I see only fr H3)
martinayotte Posted July 31, 2017 Posted July 31, 2017 Their isn't much diffs bewtween H2+ and H3. But as I stated above "If your wish is to have a LED reflecting the fact that the chip is been resetted but no single byte read from SDCard, your only solution is to connect that LED to reset, but that doesn't mean much since a reboot won't make that LED turned on." , I don't think your wishes can be achieve ...
Pop Andrei Lucian Posted August 7, 2017 Author Posted August 7, 2017 Hello, Sorry for late reply, I was on vacation for a while. I do understand my idea is not feasible with OPI devices. During reset faze I will have all my LEDs connected to GPIOs with high impedance state (Z) => Not glowing. After reset I will run some batch script that will start my C/Python applications which will handle all the LEDs as wanted. Thank you for all the support! One short question. Do you know what is the maximum current driven from 3.3 V pins of OPI Zero or OPI Lite (GPIOs set as output or that two 3.3V dedicated pins)?
martinayotte Posted August 7, 2017 Posted August 7, 2017 The Allwinner_H3_Datasheet_V1.2.pdf document mentioned that absolute maximum Ii/o is rated to 40mA, but personally, I would not draw more than 20mA ... If more current needed, I would use a MOSFET to drive such thing like relays.
Pop Andrei Lucian Posted August 7, 2017 Author Posted August 7, 2017 Do you mean 20-40 mA output from all GPIOs pins in total ??? This is really really little. You may trigger only 2x20mA LEDs like this ?? Using all available GPIOs ??
zador.blood.stained Posted August 7, 2017 Posted August 7, 2017 32 minutes ago, Pop Andrei Lucian said: Do you mean 20-40 mA output from all GPIOs pins in total ??? No, per each pin, and drive strength can be changed per pin AFAIK
Pop Andrei Lucian Posted August 7, 2017 Author Posted August 7, 2017 Hello, What do you mean by "drive strength can be changed per pin AFAIK" ?? If you have 20-40 mA on each pin and you have 17 GPIOs + 2 dedicated 3.3V pins ==> 380mA - 760mA on all pins (H2+ of OPI Zero) I can see from schematic that there is only one step down circuit for 3.3V ==> that the GPIOs current is spited between this 19 pins. e.g. I can power 2 pins with 60 mA / each ==> I will have 260 mA left not used. Am I right?
zador.blood.stained Posted August 7, 2017 Posted August 7, 2017 16 minutes ago, Pop Andrei Lucian said: What do you mean by "drive strength can be changed per pin AFAIK" ?? I mean that in theory you can control the maximum current that can be sourced or sinked by each pin - 10, 20, 30 or 40 mA. No idea if any libraries expose these settings. 21 minutes ago, Pop Andrei Lucian said: e.g. I can power 2 pins with 60 mA / each No. 40mA per pin maximum (and I guess that defaults are not maxed out). How much current 5-3.3v step-down regulator can supply is another consideration, schematic says it's 0.8-1A, and this includes all SoC I/O pins, not only those that are exposed on the pin header.
martinayotte Posted August 7, 2017 Posted August 7, 2017 Beware also that a LED need a current limiting resistance, I choose usually 1K, depending of the brightness needed, and with 1K the current is then limited to 3mA. So, no need to worry if you have only 2 LEDs...
Pop Andrei Lucian Posted August 7, 2017 Author Posted August 7, 2017 Thanks a lot for the information!
Recommended Posts