What is the default settings of gpio signal in output mode?
When a gpio located on the HAT connector is set as output, what is the default output mode? Pull up resistor of 100k, open collector or ?
Is there any electrical specification of the gpio signal for the UP Xtreme board?
I Use UP Xtreme and this is the how I do the configuration:
echo 22 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio22/direction
jayman New Member Posts: 66 ✭✭
Keep in mind that the HAT GPIOs are level-shifted by the MAX V CPLD, so the characteristics you're seeing at the HAT pin are not dictated by how you program the GPIO, but by how you configure the HAT in BIOS. Each GPIO can be set as Input/Output, and when set to Output it can further be set to default High or default Low (both in push-pull mode).
Of course for your GPIO pins to work correctly, the configuration of the pin itself has to match the configuration of the CPLD in BIOS.
Hi @tomass ,
When GPIO pin set as output, the default output mode is push-pull, and pull-up 2.2K by internal CPLD chip.
When GPIO pin set as input, the default input mode is open-drain (Open-Collector).
Thanks @jayman and @Pratik_Kushwaha! This brought lights on my thoughts.
In BIOS I could just set the default high/low for output and no options for input! Is there another menu in BIOS for the more specified options like (input) pull-up/down resistor value, (output) open collector, push-pull ?
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 548 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 10 UP Squared V2
- 25 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral