reg05b0008_h8slpap| Application Note

reg05b0008_h8slpap PDF

reg05b0008_h8slpap| Application Note


APPLICATION NOTE

H8/300L SLP Series
Fast MSB and LSB Rotate Method for 8 bit Data

Introduction
The serial communication interface present on some of the SLP devices is capable of both synchronous and asynchronous communication. When receiving byte information, it is sometimes necessary to rotate the received data from MSB first to LSB first and vice versa. This application note investigates methods of speeding up an LSB to MSB rotate.

Contents
CONTENTS .................................................................................................................................................. 1 AIM .............................................................................................................................................................. 2 1. 8 BIT ROTATE THEORY..................................................................................................... 2

TRADITIONAL 8 BIT ROTATE................................................................................................................... 2 LOOK UP TABLE ................................................................................................................................... 3 2. 3. WORKSPACE ................................................................................................................... 6 CODE DESCRIPTION ......................................................................................................... 6

SWAP_MSB_LSB FUNCTION ............................................................................................................... 8 LOOK_UP_TABLE_METHOD FUNCTION ................................................................................................. 9 4. PERFORMANCE RESULTS ............................................................................................... 10

SPEED ............................................................................................................................................... 10 CODE SIZE ......................................................................................................................................... 11 CONCLUSION............................................................................................................................................ 12

REG05B0008-0100/Rev.1.00

October 2008

Page 1 of 13


reg05b0008_h8slpap Application Note renesas Download PDF

Add this permalink to your bookmarks for future download of reg05b0008_h8slpap ApplicationNote

Permalink: http://application.emcelettronica.com/renesas/reg05b0008_h8slpap

PDF reg05b0008_h8slpap APPLICATION NOTE