360
CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
Digital Blocks
Configuration Registers
The configuration block contains 3 registers: Function (DxCxxFN), Input (DxCxxIN), and Output (DxCxxOU). The values in
these registers should not be changed while the block is enabled. Note that the Digital Block Configuration registers are all
located in bank 1 of the PSoC device’s memory map.
17.2.5
DxCxxFN Registers
The Digital Basic/Communications Type B Block Function
Registers (DxCxxFN) contain the primary Mode and Func-
tion bits that determine the function of the block.
All bits in these registers are common to all functions, except
those specified in
.
Bit 7: Data Invert.
This bit inverts the selected data input.
Bit 6: BCEN.
This bit enables the primary output of the
block, to drive the row broadcast block. The BCEN bit is set
independently in each block; and therefore, care must be
taken to ensure that only one BCEN bit, in a given row, is
enabled. However, if any of the blocks in a given row have
the BCEN bit set, the input that allows the broadcast net
from other rows to drive the given row’s broadcast net is dis-
abled (see
).
Bit 5: End Single.
This bit is used to indicate the last or
most significant block in a chainable function. This bit must
also be set if the chainable function only consists of a single
block.
Bits 4 and 3: Mode[1:0].
The mode bits select the options
available for the selected function. These bits should only be
changed when the block is disabled.
Bits 2 to 0: Function[2:0].
The function bits configure the
block into one of the available block functions (six for the
Comm block, four for the Basic block).
For additional information, refer to the
.
Add.
Name
Rows
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
1,xxh
3, 2
Data Invert
BCEN
End Single
Mode[1:0]
Function[2:0]
RW : 00
LEGEND
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 312
Table 17-23. DxCxxFN Function Registers
[7]: Data Invert
1: Invert block’s data input
0: Do not invert block’s data input
[6]: BCEN
1: Enable
0: Disable
[5]: End Single
1: Block is not chained or is at the end of a chain
0: Block is at the start of or in the middle of a chain
[4:3]: Mode
Function specific
[2:0]: Function
000b: Timer
001b: Counter
010b: CRCPRS
011b: PWMDBL
100b: Dead band for PWM
101b: UART (DCCxx blocks only)
110b: SPI (DCCxx blocks only)
111b: DSM
Table 17-24. Digital Block Configuration Register Functional Descriptions
Function
Description
Timer
The mode bits in the Timer block control the Interrupt Type and the Compare Type.
Counter
The mode bits in the Counter block control the Interrupt Type and the Compare Type (same as the Timer function).
Dead Band
The mode bits are encoded as the kill type. See the table titled
“Dead Band Kill Options” on page 340
for an explanation of Kill options.
PWMDBL
The mode bits are encoded as the kill type. It is identical to Dead Band function.
CRCPRS
The mode bits are encoded to determine the Compare type.
SPIM
Mode bit 1 selects interrupt type. Mode bit 0 selects master or slave (for SPIM, it is '0').
SPIS
Mode bit 1 selects interrupt type. Mode bit 0 selects master or slave (for SPIS, it is '1').
TXUART
Mode bit 0 selects between Transmitter and Receiver (in this case Mode bit 0 is set to ‘1’ for TX) and Mode bit 1 selects the interrupt type.
RXUART
Mode bit 0 selects between Transmitter and Receiver (in this case Mode bit 0 is set to ‘0’ for RX) and Mode bit 1 selects the interrupt type.
DSM
Mode bit 1 selects KILL mode. Mode bit 0 selects multiplication type.
Summary of Contents for CY8C28 series
Page 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Page 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Page 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Page 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...