17.07.2013 Views

1-Byte-Hexadecimal to ASCII Code Conversion - Renesas

1-Byte-Hexadecimal to ASCII Code Conversion - Renesas

1-Byte-Hexadecimal to ASCII Code Conversion - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Functions<br />

H8/300H Tiny Series<br />

1-<strong>Byte</strong>-<strong>Hexadecimal</strong> <strong>to</strong> <strong>ASCII</strong> <strong>Code</strong> <strong>Conversion</strong><br />

1. The software HTOA converts a 1-byte hexadecimal number <strong>to</strong> its corresponding <strong>ASCII</strong> code, '0' <strong>to</strong> '9' or 'A' <strong>to</strong> 'F'.<br />

2. Unsigned integer data is used as the input argument.<br />

2. Arguments<br />

Contents S<strong>to</strong>rage Location Data Length<br />

Input 1-byte hexadecimal number R0L 1 byte<br />

Output <strong>ASCII</strong> code R0L 1 byte<br />

Indica<strong>to</strong>r of conversion C flag (CCR) 1 bit<br />

3. Changes <strong>to</strong> Internal Registers and Flags<br />

ER0<br />

ER1<br />

ER2<br />

ER3<br />

ER4<br />

ER5<br />

ER6<br />

ER7 (SP)<br />

31 16 15 8 7 0<br />

I U H UI N Z V C<br />

: No change<br />

: Varies<br />

0 : Fixed <strong>to</strong> 0<br />

1 : Fixed <strong>to</strong> 1<br />

REJ06B0084-0200/Rev.2.00 February 2006 Page 2 of 9<br />

Result

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!