Electronic component search and free download site.
Transistors,MosFET ,Diode,Integrated circuits
Номер в каталоге  

ADC0831 Просмотр технического описания (PDF) - National ->Texas Instruments

Номер в каталогеADC0831 National-Semiconductor
National ->Texas Instruments National-Semiconductor
Компоненты Описание8-Bit Serial I/O A/D Converters with Multiplexer Options
ADC0831 Datasheet PDF : 33 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
Applications (Continued)
Cop Coding Example
Mnemonic
Instruction
LEI
ENABLES SIO’s INPUT AND OUTPUT
SC
C=1
OGI
G0=0 (CS =0)
CLR A
CLEARS ACCUMULATOR
AISC 1
LOADS ACCUMULATOR WITH 1
XAS
EXCHANGES SIO WITH ACCUMULATOR
AND STARTS SK CLOCK
LDD
LOADS MUX ADDRESS FROM RAM
INTO ACCUMULATOR
NOP
XAS
LOADS MUX ADDRESS FROM
ACCUMULATOR TO SIO REGISTER
8 INSTRUCTIONS
XAS
READS HIGH ORDER NIBBLE (4 BITS)
INTO ACCUMULATOR
XIS
PUTS HIGH ORDER NIBBLE INTO RAM
CLR A
CLEARS ACCUMULATOR
RC
C=0
XAS
READS LOW ORDER NIBBLE INTO
ACCUMULATOR AND STOPS SK
XIS
PUTS LOW ORDER NIBBLE INTO RAM
OGI
G0=1 (CS =1)
LEI
DISABLES SIO’s INPUT AND OUTPUT
8048 CODING EXAMPLE
Mnemonic
Instruction
START: ANL P1, #0F7H ;SELECT A/D (CS =0)
MOV B, #5
;BIT COUNTER5
MOV A, #ADDR ;AMUX ADDRESS
LOOP 1: RRC A
;CYADDRESS BIT
JC ONE
;TEST BIT
;BIT=0
ZERO:
ANL P1, #0FEH ;DI0
JMP CONT
;CONTINUE
;BIT=1
ONE:
ORL P1, #1
;DI1
CONT:
CALL PULSE ;PULSE SK 010
DJNZ B, LOOP 1 ;CONTINUE UNTIL
DONE
CALL PULSE ;EXTRA CLOCK FOR
SYNC
MOV B, #8
;BIT COUNTER8
LOOP 2: CALL PULSE ;PULSE SK 010
IN A, P1
;CYDO
RRC A
RRC A
MOV A, C
;ARESULT
RLC A
;A(0)BIT AND SHIFT
MOV C, A
;CRESULT
DJNZ B, LOOP 2 ;CONTINUE UNTIL
DONE
RETR
;PULSE SUBROUTINE
PULSE: ORL P1, #04 ;SK1
NOP
;DELAY
ANL P1, #0FBH ;SK0
RET
www.national.com
20
Direct download click here

 

Share Link : 
All Rights Reserved© datasheetq.com 2015 - 2019  ] [ Privacy Policy ] [ Request Datasheet  ] [ Contact Us ]