-
Notifications
You must be signed in to change notification settings - Fork 92
HydraFW GPIO guide
#HydraFW GPIO (General Purpose Input/Output)
Input type: 0 to 5V
Output type: 3.3volt normal, or open drain
(pull up/pull down resistors integrated in MCU or external).
Pull-up/down resistors Integrated in MCU: Between 30 to 50K (Typical 40K).
Maximum voltage: 5.5volts (5volt safe).
Output type - open drain/open collector (high=Hi-Z, low=ground),
normal (high=3.3volts, low=ground).
Use open drain/open collector output types with pull-up resistors
for multi-voltage interfacing.
This guide is updated towards firmware release HydraFW v0.6 Beta: HydraFW (HydraBus) v0.6-beta-0-g897f173 2015-11-29
##GPIO configuration syntax description:
Configuration: gpio <PA0-15, PB0-11, PC0-15, PA*> <mode (in/out/open-drain)> [pull (up/down/floating)]
Interaction: gpio <PA0-15, PB0-11, PC0-15, PA*> [period (nb ms)] <read/continuous> or <on/off>
Syntax:
-
<string>
One or more GPIO pins PA0-15, PB0-11, PC0-15, PA* -
mode
with parameterin
,out
oropen-drain
-
pull
with parameterup
ordown
orfloating
to choose internal MCU pull up/down or no pull/external -
read
read GPIO value(s) -
continuous
read continuously -
on
Set GPIO pin (work only for GPIO configured asout
oropen-drain
) -
off
Clear GPIO pin (work only for GPIO configured asout
oropen-drain
)
###GPIO configuration & interaction example:
Configuration & interaction on HydraNFC GPIO:
> gpio pa3 pb11 mode out off
Clearing PA3 PB11
> gpio pa2 pc0-1 mode out on
Setting PA2 PC0 PC1
> gpio pb11 mode out on
Setting PB11
> gpio pa2-3 pc0-1 pb11 r
PA2 1
PA3 0
PB11 1
PC0 1
PC1 1
- CHANGELOG
- Console commands
- Binary mode guide
-
NFC/HydraNFC v1 guide
- Read UID of an ISO/IEC_14443 Tag
- Read UID and data of a MIFARE Ultralight Tag
- Read UID of an ISO/IEC 15693 Tag
- Emul ISO14443a Tag
- Emul MIFARE Ultralight Tag
- Emul Mifare Classic Tag
- Unique NFC sniffer design
- Launch NFC sniffer from console
- Sniffer ISO14443A wireshark pcap
- Autonomous/stand-alone sniffer mode
- Sniffer ISO14443A real-time infinite trace mode
- HydraFW-HydraNFC-v1.x-TRF7970A-Tutorial