Conversion Decimal to HEX and HEX to Decimal Format
Archiver
Posts: 46,084
I have Two relation problem with the Convertion in the program
I have a variable in Decimal Format
DATA VAR BYTE
This variable is put in the any procces (Math Decimal), then, I need to
send this variable by Serial (3 wire) (Command Shiftout) and the recieve
system work in HEX....
I need to put this VAR in HEX FORMAT, in the same VAR or other VAR
Example:
Damian have value (10) (Decimal format), I need to put in Damian will have
(A) (Hexadecimal format) Put this information in the memory.. No in the
Debug Format
The similary problem, when The system send to BS2p40 a File in HEX... I
need to put this file in BCD format in the same var or other var
Can you help me, Please
I appreciate your prompt response..
Ing. Damian Trujillo G
Venezuela,Caracas
I have a variable in Decimal Format
DATA VAR BYTE
This variable is put in the any procces (Math Decimal), then, I need to
send this variable by Serial (3 wire) (Command Shiftout) and the recieve
system work in HEX....
I need to put this VAR in HEX FORMAT, in the same VAR or other VAR
Example:
Damian have value (10) (Decimal format), I need to put in Damian will have
(A) (Hexadecimal format) Put this information in the memory.. No in the
Debug Format
The similary problem, when The system send to BS2p40 a File in HEX... I
need to put this file in BCD format in the same var or other var
Can you help me, Please
I appreciate your prompt response..
Ing. Damian Trujillo G
Venezuela,Caracas