Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description



Similar documents
Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

SYMETRIX SOLUTIONS: TECH TIP August 2015

NHD-0420D3Z-FL-GBW-V3

SRF08 Ultra sonic range finder Technical Specification

CONCEPT1 RS232 COMMUNICATION

Consult protocol, Nissan Technical egroup, Issue 6

Bluetooth HID Profile

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

73M1866B/73M1966B FXOCTL Application User Guide November 2, 2009 Rev. 4.1 UG_1x66B_009

RFID MODULE Mifare Reader / Writer SL025B User Manual Version 1.4 Nov 2012 StrongLink

BV4513 Serial LED Display. Product specification. October 2009 V0.a. ByVac Page 1 of 19

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

USB Card Reader Configuration Utility. User Manual. Draft!

RFID MODULE Mifare Reader / Writer SL031 User Manual Version 2.7 Nov 2012 StrongLink

HOST Embedded System. SLAVE EasyMDB interface. Reference Manual EasyMDB RS232-TTL. 1 Introduction

RS-485 Protocol Manual

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)

Useful Number Systems

Lecture N -1- PHYS Microcontrollers

Decimal to Binary Conversion

The Answer to the 14 Most Frequently Asked Modbus Questions

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

RFID MODULE Mifare Reader / Writer SL032 User Manual Version 1.5 Nov 2012 StrongLink

Using Bluetooth-Enabled PosiTector 6000 with Statistical Process Control Software

Interface Protocol v1.2

User Manual. AS-Interface Programmer

Brunata Optuna W (171)

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM100(1328)

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

UniPi technical documentation REV 1.1

RFID MODULE Mifare Reader / Writer SL030 User Manual Version 2.6 Nov 2012 StrongLink

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

Sample EHG CL and EHG SL10 16-bit Modbus RTU Packet

Volume Serial Numbers and Format Date/Time Verification

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

20 Using Scripts. (Programming without Parts) 20-1

Nemo 96HD/HD+ MODBUS

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

Hagenberg Linz Steyr Wels. API Application Programming Interface

Using the Siemens S65 Display

BV4512. I2C-LCD- 128 x 64 Graphic Controller. Product specification. November 2008 V0.a. ByVac Page 1 of 14

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

USB - FPGA MODULE (PRELIMINARY)

2015/02/07 05:41 1/23 WIZ550WEB Users' Guide

Binary Representation

EtherNet/IP Modbus XPort, NET232, and NET485

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

LCD I 2 C/Serial RX Backpack. Data Sheet. LCD to I2C/Serial RX Backpack I2C or Serial RX communication with Standard 16 Pin LCD modules

8051 MICROCONTROLLER COURSE

Event counters in NOVA

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Timeout The Crosspoint Status Request message has a timeout, which means that you need to wait 1 second in between request messages.

OZ-47 Smart Board with Metal Oxide Sensor For Ozone Monitoring

Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0

Open1788 User Manual. Features

QuickScan i. QD2100 Barcode Imager. Product Reference Guide

Data sheet Wireless UART firmware version 4.02

10 Thomas, Irvine, CA USA Tel: (949) Fax: (949) Toll Free: (800) 23 FUTEK

2011, The McGraw-Hill Companies, Inc. Chapter 3

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

MAX5417L Evaluation Kit/Evaluation System

Exercise 1: Set up the Environment

Original instructions. PLUTO Gateway. User Manual. PROFIBUS GATE-P1/P2 DeviceNet GATE-D1/D2 CANopen GATE-C1/C2 Ethernet GATE-E1/E2

Application Unit, MDRC AB/S 1.1, GH Q R0111

Getting Started with IntelleView POS Administrator Software

Phantom4 Remote Management Module User s Manual

Master-Touch and ValuMass. Modbus Communications. INSTRUCTION MANUAL (Rev. 2.1)

Lab Experiment 1: The LPC 2148 Education Board

Technical Manual. FAN COIL CONTROLLER COOLING or HEATING ANALOG or PWM Art A

S88XPressNetLI v1.0. Installation, user and reference manual KDesign Electronics, PCB design by RoSoft

Ethernet Printer User s Guide

Caml Virtual Machine File & data formats Document version: 1.4

Soft-Starter SSW-06 V1.6X

Goals. Unary Numbers. Decimal Numbers. 3,148 is s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1

Serial Communications

Cover sheet. Reading out the topology data of a PROFINET IO system SFB52 "RDREC" FAQ September Service & Support. Answers for industry.

Decimal Number (base 10) Binary Number (base 2)

Base Conversion written by Cathy Saxton

Communications Protocol for Akai APC40 Controller

USB + Serial RGB Backlight Character LCD Backpack

HD44780-Based LCD Modules. Introduction to the LM018L

SocketScan Software Advanced Programming Guide

USB-BASED TILT SENSOR / ACCELEROMETER / VIBRATION ANALYSIS / AC SIGNAL ANALYSIS MODULE

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

Software Manual RS232 Laser Merge Module. Document # SU Rev A

APPENDIX E COMMAND BARCODES

How To Send A Message From A Computer To A Computer (Iwea) On A Microsoft Macbook 2.5 (Isoa) To A Microsatellite 2.4 (Ios) On An Unix (Ise

ROM Monitor. Entering the ROM Monitor APPENDIX

Web Site: Forums: forums.parallax.com Sales: Technical:

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

CipherLab 5100 Time Attendance Utility Manual

3-Channel 0-20mA analyzer with CAN bus and logic output. A2C-mA-M12-X. General Description. Features. Specifications

FG , 08501K, 08502K, 08503, 08503K, 08504K

ET-BASE AVR ATmega64/128

SPROG DCC Decoder Programmer

CM HOST CM CardTransporter Fuel Communication and Management Software Software version up to 3.1

Embedded Systems Design Course Applying the mbed microcontroller

10. XBee Command Reference Tables

1. Summary. 2. Module Application Instruction. DFPLayer Mini. 1.2.Features. 1.3.Application Specification Description

Transcription:

MPTH: Commands Table 1 below is a complete list of MPTH commands with descriptions. Note: Commands are three bytes long, Command Start Byte (default is 128), Command Code, Setting value. Table 1 : MPTH Commands Command Name Code Setting Value Description Future use 0 to 4 Hitachi LCD Command Pass-through 5 0x05 Set Serial Baud rate 6 0x06 Set LCD Size 7 0x07 Move cursor to position 8 0x09 0x01 = Clear display 0x02 = Home display 0x08 = Display off 0x0C = Cursor off / Blink off 0x0E = Blink on 0x0D = Cursor on / Blink on 0 = 300 baud 1 = 1200 2 = 2400 3 = [9600]* 4 = 19.2k 5 = 57.6k 6 = 115.2k 0 = 1x16 1 = 2x40 2 = 4x20 3 = [2x16]* Use this command to pass actual Hitachi commands through the Message Pump into the LCD. See the Hitachi specs sheets for a full list. Used to set the baud rate for the serial port. Used to change the LCD size. Where 1x16 would be an LCD with one row of sixteen characters, etc. 0 to size-1 0 to size of display-1 (eg. 2x16 LCD = 0 to 31) Save Custom Splash Screen 9 0x09 (does not matter) After this command is sent, the next sixteen characters will be stored to make a custom splash screen. Splash Screen 10 0x0A 0 = off 1 = [Show Default]* 2 = Show Custom Used to show or hide the welcome splash screen. If a custom splash screen is saved, it will

only show if this setting is set to value 2. Set MPTH Command Character 11 0x0B [0x80]* Every MPTH command is a three byte package. The first byte is the Command Character which lets the MPTH know if it is receiving a command. You may change this value if it conflicts with your application. I2C Address 12 0x0C GPIO TRIS 13 0x0D GPIO TRIS Save 14 0x0E GPIO 15 0x0F 0-254 [0x40 Hex]* 0x00-0x0F (0 to 15) b 0000nnnn where n is either: 0 = output 1 = input [0x0F - all inputs]* 0x00-0x0F Use this command to set a new I2C Address. The I2C Address is used on an I2C Bus to identify specific devices. (Never use 0xFF (255 Dec)) Set the port direction of the MPTH s GPIO port (input or output). Each of the pins on the GPIO port may be configured individually. The GPIO TRIS value is the four lower bits of the settings value were a set bit 1 is an input and a clear bit 0 is an output. See Table 2, for a clearer description of numbers. When on, a change to the TRIS value is saved to the EEPROM. You may not want to save the TRIS value to the MPTH's EEPROM every time it changes. If your application is running a MCP which constantly changes the TRIS value, the maximum (1M) erase/write cycles could be exceeded. Sets the value to output on the GPIO port. Note:

Request current GPIO value Auto Output GPIO changed value Auto Output delay factor 16 0x10 17 0x11 18 0x12 (does not matter) 0 to 255 [0x40]* Outputs will not function unless the corresponding GPIO TRIS bits are clear (set to zero - output). Requests the MPTH to output the most recent GPIO value via the serial port, at the current baud rate. Can be used to check if an input (button) is pressed. ------------------------------ ----------------------- It is also possible to read the GPIO port using I2C. But, to get the GPIO value over I2C vs serial, simply have your microprocessor do a single I2C read request. An I2C read request is performed by sending an I2C message which is just the I2C address with the read / write bit set 1. When auto output of the GPIO value is on, every time the inputs (buttons) of the GPIO change a byte will be sent out via the serial port. Note: If a button is pressed and released it will produce two bytes, one when the GPIO changes due to the press and another when the GPIO changes due to the release. Also, if PWM is active GPIO pin 1 will be ignored (it is constantly changing). Sets a "debounching" delay on the GPIO port inputs. Used to help clean-up button inputs on the GPIO port when used with Auto-output

Echo display to Serial 19 0x13 PWM Active 20 0x14 PWM Value 21 0x15 of changed values on GPIO port. Set higher if you get false presses, or lower if you miss button presses. When this option is set to 1, any text that is sent to the LCD for display will also be echoed out of the serial port. The source of the display text may be either serial or I2C. The GPIO 1 pin is also a PWM (pulse width modulation) output pin. When set to on, the pin will output a 1.19khz square PWM signal. Note: No signal will be output if the GPIO TRIS value for pin 1 is not set to be an output. This value sets the duty cycle of the PWM signal. Where 0 is full off and 255 is full on. Any value from 0 to 255 is acceptable. Setting will be saved to EEPROM and used every time the MPTH is powered up until either the settings are changed again or the MPTH is reset. [ value ]* denotes a factory default value. Note: The numbering used in the MPTH Command chart (Table 1) is a mix of decimal numbers and Hex numbers. Hex numbers in the chart start with the 0x prefix. This prefix is used in some programing languages, and is used here to help you distinguish between decimal and Hex numbers. The Hex numbers are included in this chart as they are needed if you want to send commands to the MPTH with terminal software. Do not type the 0x in front of a Hex number in your terminal software.

Table 2 (below), is a small list of decimal numbers with Hex (Hexadecimal) and binary equivalents for your convenience.