PRINTHEX

Top  Previous  Next

Action

Sends a variable in hexadecimal format to the serial port.

 

 

Syntax

PRINTHEX var

 

 

Remarks

var

The variable to print.

 

The same rules apply to PRINTHEX as PRINT.

 

The PRINTHEX routine can be used when you have a RS-232 interface on your uP.

See the manual for a design of an RS-232 interface.

The RS-232 interface can be connected to a serial communication port of your computer.

This way you can use a terminal emulator as an output device.

You can also use the build in terminal emulator.

 

 

See also

PRINT , INPUTHEX  , SPC

 

 

Example

Dim x  As Byte

INPUT x                        'ask for var

PRINT x                        'print it in decimal format

PRINTHEX "Hex " ; x        'print it in hex format