Motorola AT Commands G24-L Developer's Manual page 210

At commands reference manual
Hide thumbs Also See for AT Commands G24-L:
Table of Contents

Advertisement

Hardware Information
Data sending (vector example):
Client has a data bus with 8 bits and plans to implement some protocol over it. In this example 4 pins (pins
1-4) are used as an output and 4 pins (5-8) are used as input.
Example of code is as follows:
AT+MIOD=000001111,0
OK
AT+MIOD=11110000,1
OK
AT+MIOD?
+MIOD: 11110000
OK
AT+MIOC=00001111,00000011
OK
AT+MIOC?
+MIOC: 01000011
OK
AT+MIOC=00001111,00000000
OK
AT+MIOC?
+MIOC: 01110000
OK
3-146
// Set IO pins 1-4 to be output level mode.
// Set IO pins 5-8 to be input level mode.
// Unnecessary, because by default all pins are input.
// (Optional) Read the IO pin definitions to confirm correct settings.
// Pins 1-4 output pins 5-8 input.
// At this point the module is configured to control the logic values of
all pins.
// Write vector, 0x3 on pins 1-4.
// (pins 1,2 high, pins 3,4 low).
// Read the pins status.
// Pins 1,2,7 show the logical value high.
// Write vector 0x0 on pins 1-4.
// (Optional) read the pins status.
// Pin 1-4 low, pins 5,6,7 show logical high.
G24-L AT Commands Reference Manual
April 15, 2008

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G24-lc

Table of Contents