Chapter 3
eSL/eSLS Series (+ eSLZ000) User’s Manual
Peripheral Control
••••
91
DAC Data (DACD)
Register
Attributes and Definitions:
DACD
Bit
DIR.
Description
Reset Value
DACD
[15:4]
R/W
The duty ratio of DAC channel
0x000
3.5.4 Application Example
Shunt a resistor at bipolar transistor base and emitter to reduce collector current.
VO
VDD
Figure 3-13 Using DAC Function to Drive a Speaker Circuit Diagram
3.5.5 Examples
/* Set DAC output data from 0 to 0xFFF0 by adding 0x0010 */
…..
…..
POWERON:
DA_CON 0,0,7
;
Set DAC Un-Sign mode, always pass
mode, vol=3mA max.
R0 = #0x0000
;
Clear data
DAC_ADDone:
DA_OUT R0
;
Out data to DAC
IO[PORTA]= R0
;
Output data to PORT A
R1=#0x01FF
;
Delay
LOOP R1
NOP
.ENDL
R0 = R0 + #16
;
Data+16
IF NE JMP DAC_ADDone
_Delay:
;
Main loop
JMP _Delay
Содержание eSL Series
Страница 8: ...Contents viii Contents eSL eSLS Series eSLZ000 User s Manual...
Страница 11: ...Contents eSL eSLS Series eSLZ000 User s Manual Contents xi...
Страница 12: ......
Страница 28: ......
Страница 110: ...Chapter 3 98 Peripheral Control eSL eSLS Series eSLZ000 User s Manual BC IO INTF1 ADIF RETI...
Страница 115: ...Chapter 3 eSL eSLS Series eSLZ000 User s Manual Peripheral Control 103...
Страница 148: ......
Страница 154: ...Chapter 4 142 Electrical Characteristics eSL eSLS Series eSLZ000 User s Manual...