EasyManuals Logo
Home>Lantronix>Microcontrollers>xPico

Lantronix xPico User Manual

Lantronix xPico
79 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #65 background imageLoading...
Page #65 background image
9: GPIO Interface
Command 19h, Set Directions
Send:
2 parameters
Bytes 1-4: Mask
Bit X
1 means the direction for GPIO X will be updated with the value in the
second parameter.
0 means the direction for that GPIO will not change.
Bytes 5-8: New Directions
Bit X
1 means GPIO X will become an output.
0 means it will become an input.
Response:
1 parameter
Bytes 1-4: The updated directions
Command 1Ah, Set Active Levels
Send:
2 parameters
Bytes 1-4: Mask
Bit X
1 means the direction for GPIO X will be updated with the value in the
second parameter.
0 means the active type for that GPIO will not change.
Bytes 5-8: New Active Levels
Bit X
1 means GPIO X will become active low.
0 means it will become active high.
Response:
1 parameter
Bytes 1-4: Updated active levels
Command 1Bh, Set States
Send:
2 parameters
Bytes 1-4: Mask
Bit X
1 means the state for GPIO X will be updated with the value in the
second parameter.
0 means the state for that GPIO will not change.
Bytes 5-8: New States
Bit X
1 means GPIO X will become active.
0 means it will become inactive.
Response:
1 parameter
Bytes 1-4: Updated states
Examples
Example 1: PC sends command 10h to find out which configurable pins are
available as GPIO.
PC -> xPico: 10h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
xPico -> PC: 10h, 03h, 00h, 00h, 00h
Command details:
xPico User Guide 65

Table of Contents

Other manuals for Lantronix xPico

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Lantronix xPico and is the answer not in the manual?

Lantronix xPico Specifications

General IconGeneral
BrandLantronix
ModelxPico
CategoryMicrocontrollers
LanguageEnglish

Related product manuals