
CY7C66013
CY7C66113
Document #: 38-08024 Rev. *A
Page 23 of 58
are set to ‘0’ when the device is suspended, that DAC input will float. The floating pin could result in excessive current consumption
by the device, unless an external load places the pin in a deterministic state.
DAC Port Data
ADDRESS 0x30
Bit [1..0]: High Current Output 3.2 mA to 16 mA typical
1= I/O pin is an output pulled HGH through the 14-k
Ω resistor. 0 = I/O pin is an input with an internal 14-kΩ pull-up
resistor.
Bit [7..2]: Low Current Output 0.2 mA to 1 mA typical
1= I/O pin is an output pulled HGH through the 14-k
Ω resistor. 0 = I/O pin is an input with an internal 14-kΩ pull-up
resistor.
10.1
DAC Isink Registers
Each DAC I/O pin has an associated DAC Isink register to program the output sink current when the output is driven LOW. The
first Isink register (0x38) controls the current for DAC[0], the second (0x39) for DAC[1], and so on until the Isink register at 0x3F,
controls the current to DAC[7].
DAC Sink Register
ADDRESS 0x38 –0x3F
Bit [4..0]: Isink [x] (x= 0..4)
Writing all ‘0’s to the Isink register causes 1/5 of the max current to flow through the DAC I/O pin. Writing all ‘1’s to the
Isink register provides the maximum current flow through the pin. The other 14 states of the DAC sink current are evenly
spaced between these two values.
Bit [7..5]: Reserved
10.2
DAC Port Interrupts
A DAC port interrupt can be enabled/disabled for each pin individually. The DAC Port Interrupt Enable register provides this
feature with an interrupt enable bit for each DAC I/O pin. All of the DAC Port Interrupt Enable register bits are cleared to ‘0’ during
a reset. All DAC pins share a common interrupt, as explained in Section 16.7.
DAC Port Interrupt
ADDRESS 0x31
Bit [7..0]: Enable bit x (x= 0..7)
1= Enables interrupts from the corresponding bit position; 0= Disables interrupts from the corresponding bit position
As an additional benefit, the interrupt polarity for each DAC pin is programmable with the DAC Port Interrupt Polarity register.
Writing a ‘0’ to a bit selects negative polarity (falling edge) that causes an interrupt (if enabled) if a falling edge transition occurs
on the corresponding input pin. Writing a ‘1’ to a bit in this register selects positive polarity (rising edge) that causes an interrupt
(if enabled) if a rising edge transition occurs on the corresponding input pin. All of the DAC Port Interrupt Polarity register bits are
cleared during a reset.
DAC Port Interrupt
ADDRESS 0x32
Bit #
7
65
43
210
Bit Name
DAC[7]
DAC[6]
DAC[5]
DAC[4]
DAC[3]
DAC[2]
DAC[1]
DAC[0]
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset
1
11
11
111
Figure 10-2. DAC Port Data
Bit #
7
65
43
210
Bit Name
Reserved
Reserved
Reserved
Reserved
Isink[3]
Isink[2]
Isink[1]
Isink[0]
Read/Write
W
WWW
Reset
-
--
-0
0
0
0
Figure 10-3. DAC Sink Register
Bit #
7
65
43
210
Bit Name
Enable Bit 7
Enable Bit 6
Enable Bit 5
Enable Bit 4
Enable Bit 3
Enable Bit 2
Enable Bit 1
Enable Bit 0
Read/Write
WWW
W
W
WWW
Reset
0
00
00
000
Figure 10-4. DAC Port Interrupt Enable
Bit #
7
65
43
210
Bit Name
Enable Bit 7
Enable Bit 6
Enable Bit 5
Enable Bit 4
Enable Bit 3
Enable Bit 2
Enable Bit 1
Enable Bit 0
Read/Write
WWW
W
W
WWW
Figure 10-5. DAC Port Interrupt Polarity