Chapter 32 Bcd Correction Circuit - Renesas RL78 Series User Manual

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/F13, F14
32.1 BCD Correction Circuit Function
The result of addition/subtraction of the BCD (binary-coded decimal) code and BCD code can be obtained as BCD code
with this circuit.
The decimal correction operation result is obtained by performing addition/subtraction having the A register as the
operand and then adding/ subtracting the BCD correction result register (BCDADJ).
32.2 Registers Used by BCD Correction Circuit
The BCD correction circuit uses the following registers.
 BCD correction result register (BCDADJ)
(1) BCD correction result register (BCDADJ)
The BCDADJ register stores correction values for obtaining the add/subtract result as BCD code through
add/subtract instructions using the A register as the operand.
The value read from the BCDADJ register varies depending on the value of the A register when it is read and those
of the CY and AC flags.
The BCDADJ register is read by an 8-bit memory manipulation instruction.
Reset input sets this register to undefined.
Address: F00FEH
After reset: undefined
Symbol
7
BCDADJ
R01UH0368EJ0210 Rev.2.10
Dec 10, 2015

CHAPTER 32 BCD CORRECTION CIRCUIT

Figure 32-1. Format of BCD Correction Result Register (BCDADJ)
R
6
5
CHAPTER 32 BCD CORRECTION CIRCUIT
4
3
2
1
0
1654

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RL78 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Rl78/f13Rl78/f14

Table of Contents

Save PDF