Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

AS8218 Scheda tecnica(PDF) 112 Page - ams AG

Il numero della parte AS8218
Spiegazioni elettronici  Highly Integrated Single Phase 2 Current Energy Metering Integrated Circuits
PDF  123 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  AMSCO [ams AG]
Homepage  http://www.ams.com
Logo AMSCO - ams AG

AS8218 Scheda tecnica(HTML) 112 Page - ams AG

Back Button AS8218 Datasheet HTML 108Page - ams AG AS8218 Datasheet HTML 109Page - ams AG AS8218 Datasheet HTML 110Page - ams AG AS8218 Datasheet HTML 111Page - ams AG AS8218 Datasheet HTML 112Page - ams AG AS8218 Datasheet HTML 113Page - ams AG AS8218 Datasheet HTML 114Page - ams AG AS8218 Datasheet HTML 115Page - ams AG AS8218 Datasheet HTML 116Page - ams AG Next Button
Zoom Inzoom in Zoom Outzoom out
 112 / 123 page
background image
Data Sheet AS8218 / AS8228
Revision 3.0, 31-May-06
Page 112 of 123
If this condition is true, then all eight data bits are transferred to
ReceiveSBUF, the ninth data bit is transferred to
SCON.RB8, and SCON.RI is set to ‘1’. Otherwise all the received data is discarded and the receiver waits for
the next falling edge on
RxD.
Assembler Code
The following code fragments demonstrate the programming of the UART1.
Adjusting the Baudrate (for all modes)
SBL equ 9AH
; Serial BaudrateReload LowByte
SBH equ 9BH
; Serial BaudrateReload HighByte
mov SBL,#38
; 9600 baud, 6MHz
mov SBH,#0
Using Mode 0
mov SCON,#00H
; mode 0, REN=0, RI=0, TI=0
mov A,#53H
clr TI
; clear transmit flag
mov SBUF,A
; transmit 53H in mode 0
wait:
jnb TI,wait
; wait until data is sent
mov SCON,#10H
; mode 0, REN=1 - start reception
clr REN
; REN=0
wait:
jnb RI,wait
; wait until data is received
mov A,SBUF
; move received byte into the accu
Transmitting in Mode 0
mov SCON,#50H
; mode 1, REN=1, RI=0, TI=0
mov A,#53H
clr TI
; clear transmit flag
mov SBUF,A
; transmit 53H in mode 1
wait:
jnb TI,wait
; wait until data is sent
Receiving in Mode 1 (only bytes with valid stop bit)
mov SCON,#70H
; mode 1, SM2=1, REN=1, RI=0, TI=0
wait:
jnb RI,wait
; wait until data is received
clr RI
; enable another reception
mov A,SBUF
; move received byte to accu
Transmitting in Mode 2 (ninth data bit as parity bit)
mov A,#0A4h
; move data to accu
mov C,P
; parity information to carry flag
mov TB8,C
; parity information to ninth data bit
mov SBUF,A
; transmit A4H in mode 2
wait:
jnb TI,wait
; wait until data is sent
Interrupt Based Receiving
org 0h
; reset vector



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com