TXZ Family
Comparator
32-bit RISC Microcontroller
TXZ Family
Reference Manual
Comparator
(COMP-B)
Revision 1.2
2020-11
1 / 14 2020-11-06
Toshiba Electronic Devices & Storage Corporation
Rev.1.2
TXZ Family
Comparator
Contents
Preface ................................................................................................................................................................. 4
Related document ..................................................................................................................................................... 4
Conventions .............................................................................................................................................................. 5
Terms and Abbreviations .......................................................................................................................................... 7
1. Outline ........................................................................................................................................................... 8
2. Configuration ................................................................................................................................................. 8
Operation description .................................................................................................................................... 9
3.1. Clock supply ....................................................................................................................................................... 9
3.2. Operation ........................................................................................................................................................... 9
3.3. Example for use ............................................................................................................................................... 10
4. Registers ..................................................................................................................................................... 11
4.1. Register List ..................................................................................................................................................... 11
4.2. Detail of Comparator Register ......................................................................................................................... 12
[CMPCTRLA] (Comparator Control Register) ............................................................................................................. 12
4.3. Detail of Digital to Analog Converter Registers ............................................................................................... 12
[DA0CR] (Control Register) ........................................................................................................................................ 12
[DA0REG] (Converted Value Setting Register) .......................................................................................................... 12
5. Revision History .......................................................................................................................................... 13
RESTRICTIONS ON PRODUCT USE ............................................................................................................... 14
2 / 14 2020-11-06
Rev.1.2
TXZ Family
Comparator
List of Figures
Figure 2.1 Configuration of Comparator and Outside circuits ................................................................... 8
List of Tables
Table 1.1 Comparator Functions................................................................................................................ 8
Table 2.1 Signal List ................................................................................................................................... 8
Table 3.1 Setting example (Calculation value) ........................................................................................ 10
Table 5.1 Revision History ....................................................................................................................... 13
3 / 14 2020-11-06
Rev.1.2
Clock Control and Operation Mode
8-bit Digital to Analog Converter
Advanced Programmable Motor Control Circuit
12-bit Analog to Digital Converter
Preface
Related document
TXZ Family
Comparator
4 / 14 2020-11-06
Rev.1.2
Conventions
● Numeric formats follow the rules as shown below:
Hexadecimal: 0xABC
Decimal: 123 or 0d123 – Only when it needs to be explicitly shown that they are decimal numbers.
Binary: 0b111 – It is possible to omit the “0b” when the number of bit can be distinctly
understood from a sentence.
● “_N” is added to the end of signal names to indicate low active signals.
● It is called “assert” that a signal moves to its active level, “deassert” to its inactive level.
● When two or more signal names are referred, they are described like as [m: n].
Example: S[3: 0] shows four signal names S3, S2, S1 and S0 together.
● The characters surrounded by [ ] defines the register.
Example: [ABCD]
● “n” substitutes suffix number of two or more same kind of registers, fields, and bit names.
Example: [XYZ1], [XYZ2], [XYZ3]
● "x" substitutes suffix number or character of units and channels in the Register List.
In case of unit, “x” means A, B, and C . . .
Example: [ADACR0], [ADBCR0], [ADCCR0] [ADxCR0]
In case of channel, “x” means 0, 1, and 2 . . .
Example: [T32A0RUNA], [T32A1RUNA], [T32A2RUNA]
● The bit range of a register is written like as [m: n].
Example: Bit[3: 0] expresses the range of bit 3 to 0.
● The configuration value of a register is expressed by either the hexadecimal number or the binary number.
Example: [ABCD]<EFG> = 0x01 (hexadecimal), [XYZn]<VW> = 1 (binary)
● Word and Byte represent the following bit length.
Byte: 8 bits
Half word: 16 bits
Word: 32 bits
Double word: 64 bits
● Properties of each bit in a register are expressed as follows:
R: Read only
W: Write only
R/W: Read and Write are possible
● Unless otherwise specified, register access supports only word access.
● The register defined as reserved must not be rewritten. Moreover, do not use the read value.
● The value read from the bit having default value of "-" is unknown.
● When a register containing both of writable bits and read-only bits is written, read-only bits should be
written with their default value, In the cases that default is “-“, follow the definition of each register.
● Reserved bits of the Write-only register should be written with their default value. In the cases that default is
“-“, follow the definition of each register.
● Do not use read-modified-write processing to the register of a definition which is different by writing and
read out.
[XYZn]
[T32AxRUNA]
TXZ Family
Comparator
5 / 14 2020-11-06
Rev.1.2