![Cypress PSoC CY8C23533 Скачать руководство пользователя страница 252](http://html1.mh-extra.com/html/cypress/psoc-cy8c23533/psoc-cy8c23533_technical-reference-manual_2706366252.webp)
188
Document # 001-20559 Rev. *D
Digital Blocks
17.2.1
DxBxxDRx Registers
The DxBxxDRx Registers are the digital blocks’ Data regis-
ters.
Bits 7 to 0: Data[7:0].
The Data registers and bits pre-
sented in this section encompass the DxBxxDR0,
DxBxxDR1, and DxBxxDR2 registers. They are discussed
according to which bank they are located in and then
detailed in the tables that follow by function type.
For additional information, refer to the Register Details
chapter for the following registers:
■
■
■
17.2.1.1
Timer Register Definitions
There are three 8-bit Data registers and a 3-bit Control register.
explains the meaning of these registers in the con-
text of timer operation. The Control register is described in section
Note
DR2 is not writeable when the timer is enabled.
Add.
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
0,xxh
Data[7:0]
# : 00
0,xxh
Data[7:0]
W : 00
0,xxh
Data[7:0]
# : 00
LEGEND
#
Access is bit specific. Refer to the register detail for additional information.
xx An “x” after the comma in the address field indicates that there are multiple instances of the register. For an expanded address listing of these registers,
refer to the
“Digital Register Summary” on page 162
Table 17-5. Timer Data Register Descriptions
Name
Function
Description
DR0
Count Value
Not directly readable or writeable.
During normal operation, DR0 stores the current count of a synchronous down counter.
When disabled, a write to the DR1 period register is also simultaneously loaded into DR0 from the data bus.
When disabled, a read of DR0 returns 00h to the data bus and transfers the contents of DR0 to DR2. This transfer only
occurs in the addressed block.
When enabled, a read of DR0 returns 00h to the data bus and synchronously transfers the contents of DR0 to DR2. It oper-
ates simultaneously on the byte addressed and all higher bytes in a multi-block timer.
Note that when the hardware capture input is high, the read of DR0 (software capture) is masked and does not occur. The
hardware capture input must be low for a software capture to occur.
DR1
Period
Write only register.
Data in this register sets the period of the count. The actual number of clocks counted is 1.
In the default one-half cycle terminal count mode (TC), a period value of 00h results in the primary output to be the inversion
of the input clock. In the optional full cycle TC mode, a period of 00h gives a constant logic high on the primary output.
When disabled, a write to this register also transfers the period value directly into DR0.
When enabled, if the block frequency is 24 MHz or below, this register may be written to at any time, but the period is only
reloaded into DR0 in the clock following a TC. If the block frequency is 48 MHz, the terminal count or compare interrupt
should be used to synchronize the new period register write; otherwise, the counter could be incorrectly loaded.
DR2
Capture/
Compare
Read write register (see
Exception
below).
DR2 has multiple functions in a timer configuration. It is typically used as a capture register, but also functions as a compare
register.
When enabled and a capture event occurs, the current count in DR0 is synchronously transferred into DR2.
When enabled, the compare output is computed using the compare type (set in the function register mode bits) between
DR0 and DR2. The result of the compare is output to the auxiliary output.
When disabled, a read of DR0 transfers the contents of DR0 into DR2 for the addressed block only.
Exception
: When enabled, DR2 is not writeable.
Содержание PSoC CY8C23533
Страница 4: ...Contents Overview 4 Document 001 20559 Rev D Section G Glossary 385 Index 401 ...
Страница 16: ...Contents Overview 16 Document 001 20559 Rev D ...
Страница 24: ...24 Document 001 20559 Rev D Section A Overview ...
Страница 30: ...30 Document 001 20559 Rev D Pin Information ...
Страница 54: ...54 Document 001 20559 Rev D Supervisory ROM SROM ...
Страница 60: ...60 Document 001 20559 Rev D RAM Paging ...
Страница 68: ...68 Document 001 20559 Rev D Interrupt Controller ...
Страница 76: ...12 Document 001 20559 Rev D General Purpose IO GPIO ...
Страница 82: ...18 Document 001 20559 Rev D Internal Main Oscillator IMO ...
Страница 84: ...20 Document 001 20559 Rev D Internal Low Speed Oscillator ILO ...
Страница 90: ...26 Document 001 20559 Rev D External Crystal Oscillator ECO ...
Страница 94: ...30 Document 001 20559 Rev D Phase Locked Loop PLL ...
Страница 106: ...42 Document 001 20559 Rev D Sleep and Watchdog ...
Страница 228: ...164 Document 001 20559 Rev D Section D Digital System ...
Страница 234: ...170 Document 001 20559 Rev D Array Digital Interconnect ADI ...
Страница 278: ...214 Document 001 20559 Rev D Digital Blocks ...
Страница 296: ...232 Document 001 20559 Rev D Analog Interface ...
Страница 304: ...240 Document 001 20559 Rev D Analog Array ...
Страница 308: ...244 Document 001 20559 Rev D Analog Input Configuration ...
Страница 312: ...248 Document 001 20559 Rev D Analog Reference ...
Страница 338: ...274 Document 001 20559 Rev D Section F System Resources ...
Страница 354: ...290 Document 001 20559 Rev D Multiply Accumulate MAC ...
Страница 374: ...310 Document 001 20559 Rev D I2C ...
Страница 400: ...336 Document 001 20559 Rev D Section G Glossary ...