Datasheet.kr   

AN114 데이터시트 PDF




Xicor에서 제조한 전자 부품 AN114은 전자 산업 및 응용 분야에서
광범위하게 사용되는 반도체 소자입니다.


PDF 형식의 AN114 자료 제공

부품번호 AN114 기능
기능 Interfacing the X9408/X9418 XDCP to 8051 Microcontrollers
제조업체 Xicor
로고 Xicor 로고


AN114 데이터시트 를 다운로드하여 반도체의 전기적 특성과 매개변수에 대해 알아보세요.




전체 12 페이지수

미리보기를 사용할 수 없습니다

AN114 데이터시트, 핀배열, 회로
www.DataSheet4U.com
Application Note
AN 114
Interfacing the X9408/X9418 XDCP to 8051 Microcontrollers
by Applications Staff,
This application note describes the routines for the
control of an X9408 or X9418 digitally controllable
potentiometer. The X9408/X9418 devices have a variety
of different instructions that provide flexibility to the
designer. Additionally, the nonvolatile nature of the
device allows for stored wiper positions that can be
retrieved after power cycles.
The following code implements all of the available
X9408/X9418 instructions using a standard bi-direc-
tional bus protocol. Although the subroutines occupy
about 300 bytes of program memory, designers who
won't need to implement all of the instructions can
shorten the code by removing any unnecessary routines.
However, this will necessitate the reassembly of the
code.
For those instructions which program the nonvolatile
data registers (XFR_WCR, GXFR_WCR, &
WRITE_DR), acknowledge polling has been imple-
mented to determine an early completion of the internal
write cycle. Although this is automatically handled by
the routines, a word or two regarding the procedure
should be informative. After issuing a start condition, the
master sends a slave address and receives an acknowl-
edge. It then issues an instruction byte to the X9408/
X9418 and again receives an acknowledge. If necessary,
it now transmits the data byte and receives a final
acknowledge. The master must then initiate a stop condi-
tion which will cause the X9408/X9418 to begin an
internal write cycle. The X9408/X9418 pins go to high
impedance until this internal cycle is complete. The
REV 1.1 11/12/02
+5V
R1 R2
10K 10K
U1
39
38
P0.0
37
36
P0.1
P0.2
35 P0.3
34
33
P0.4
P0.5
32 P0.6
P0.7
12
13 INT0
17
10
INT1
RD
14
15
RXD
T0
11 T1
16
TXD
WR
19
18
X1
X2
31
9
EA/VP
RST
80C51
P1.0
P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
ALE/P
PSEN
1
2
3
4
5
6
7
8
21
22
23
24
25
26
27
28
30
29
U2
17
7
SCL
SDA
18
5
8
A3
A2
20 A1
A0
19 VSS
VH0
VW0
VL0
VH1
VW1
VL1
VH2
VW2
VL2
VH3
VW3
VL3
VCC
V+
V-
3
4
2
10
11
9
15
14
16
22
21
23
1
24
13
X940
8
-5V
Figure 1. Connecting the X9408 to an 80C51 microcontroller
www.xicor.com
1 of 12




AN114 pdf, 반도체, 판매, 대치품
Application Note
SLAVE_ADR7
SLAVE_ADR8
SLAVE_ADR9
SLAVE_ADR10
SLAVE_ADR11
SLAVE_ADR12
SLAVE_ADR13
SLAVE_ADR14
SLAVE_ADR15
;
WCR_0
WCR_1
WCR_2
WCR_3
;
DR_0
DR_1
DR_2
DR_3
;
DCP0_R0
DCP0_R1
DCP0_R2
DCP0_R3
;
DCP1_R0
DCP1_R1
DCP1_R2
DCP1_R3
;
DCP2_R0
DCP2_R1
DCP2_R2
DCP2_R3
;
DCP3_R0
DCP3_R1
DCP3_R2
DCP3_R3
;
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
equ
057h
058h
059h
05Ah
05Bh
05Ch
05Dh
05Eh
05Fh
00h
01h
02h
03h
00h
04h
08h
0Ch
00h
04h
08h
0Ch
01h
05h
09h
0Dh
02h
06h
0Ah
0Eh
03h
07h
0Bh
0Fh
READWCR
WRITEWCR
READDR
WRITEDR
XFRDR
XFRWCR
GXFRDR
GXFRWCR
INCDECWIPER
equ
equ
equ
equ
equ
equ
equ
equ
equ
0
4
8
12
16
20
24
28
32
;-----------------------------------------------------------------------------
; INTERNAL RAM
;-----------------------------------------------------------------------------
STACK_TOP equ 060H ; Stack top
;-----------------------------------------------------------------------------
; RESET and INTERRUPT VECTORS
;-----------------------------------------------------------------------------
cseg AT 0
ljmp main
; Locate a jump to the start of code at
REV 1.1 11/12/02
www.xicor.com
AN 114
4 of 12

4페이지










AN114 전자부품, 판매, 대치품
Application Note
gxfr_wcr:
mov
orl
mov
mov
call
ret
a,ID
a,#080h
ID, a
dptr,#case5
instr_gen
; Get bits R1 R0 x x
; Append to the GXFR WCR instruction code
; Save the result
; Jump to the addr for this instruction
inc_wiper:
mov
orl
mov
mov
call
ret
a,ID
a,#020h
ID,a
dptr,#case6
instr_gen
; Get bits x x P1 P0
; Append to the Incr Wiper instruction code
; Save the result
; Jump to the addr for this instruction
;-----------------------------------------------------------------------------
;
; NAME: instr_gen (Instruction generator)
; FUNCTION: Issues appropriate I2C protocol for each X9408 instruction
; INPUTS: ADDR_BYTE, ID, PULSES, DPTR, DATA_BYTE
; OUTPUTS: DATA_BYTE
; CALLS: start_cond, stop_cond, send_byte, send_bit, get_byte, polling
; AFFECTED: DATA_BYTE, A, COUNT
;
;-----------------------------------------------------------------------------
instr_gen:
call
mov
call
jc
mov
call
jc
clr
jmp
start_cond
a,ADDR_BYTE
send_byte
stop_gen
a,ID
send_byte
stop_gen
a
@a +dptr
; Issue an I2C start condition
; Send X9408 slave/address byte
; if NACK, end...
; Send X9408 instruction byte
; if NACK, end...
; Reset offset before jump
; Jump to various instruction cases
case6:
mov
anl
mov
mov
anl
a,PULSES
; A <- Bits DIR X D5 D4 D3 D2 D1 D0
a,#00111111b ; A <- Bits 0 0 D5 D4 D3 D2 D1 D0
COUNT, a
; Save as the number of pulses
a,PULSES
a,#10000000b ; A <- Bits DIR 0 0 0 0 0 0 0
wiper_lp:
call send_bit
; Send the bit (a single pulse)
djnz COUNT,wiper_lp ; Continue until all pulses are sent
case4:
jmp stop_gen
; If program gets here, then it is done
case2:
mov
call
jmp
a,DATA_BYTE
send_byte
stop_gen
; Send X9408 data byte
case1:
call get_byte
jmp stop_gen
; Receive X9408 Data Byte
case3:
mov a,DATA_BYTE ; Send X9408 Data Byte
call send_byte
REV 1.1 11/12/02
www.xicor.com
AN 114
7 of 12

7페이지


구       성 총 12 페이지수
다운로드[ AN114.PDF 데이터시트 ]

당사 플랫폼은 키워드, 제품 이름 또는 부품 번호를 사용하여 검색할 수 있는

포괄적인 데이터시트를 제공합니다.


구매 문의
일반 IC 문의 : 샘플 및 소량 구매
-----------------------------------------------------------------------

IGBT, TR 모듈, SCR 및 다이오드 모듈을 포함한
광범위한 전력 반도체를 판매합니다.

전력 반도체 전문업체

상호 : 아이지 인터내셔날

사이트 방문 :     [ 홈페이지 ]     [ 블로그 1 ]     [ 블로그 2 ]



관련 데이터시트

부품번호상세설명 및 기능제조사
AN11012

Using the TEA1703 to reduce standby power

NXP Semiconductors
NXP Semiconductors
AN11013

GreenChip III TEA1753 integrated PFC and flyback controller

NXP Semiconductors
NXP Semiconductors

DataSheet.kr       |      2020   |     연락처      |     링크모음      |      검색     |      사이트맵