Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

STC12LE5616AD Datasheet(PDF) 210 Page - STCmicro Technology Co,.Ltd

Part # STC12LE5616AD
Description  Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
PDF  377 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STC [STCmicro Technology Co,.Ltd]
Direct Link  http://www.stcmicro.com/
Logo STC - STCmicro Technology Co,.Ltd

STC12LE5616AD Datasheet(HTML) 210 Page - STCmicro Technology Co,.Ltd

Back Button STC12LE5616AD Datasheet HTML 206Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 207Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 208Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 209Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 210Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 211Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 212Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 213Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 214Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 210 / 377 page
background image
In the above example the differentiation among the 3 slaves is in the lower 3 address bits.Slave 0 requires that
bit0 = 0 and it can be uniquely addressed by 11100110. Slave 1 requires that bit 1=0 and it can be uniquely
addressed by 11100101. Slave 2 requires that bit 2=0 and its unique address is 11100011. To select Salve 0 and 1
and exclude Slave 2, use address 11100100, since it is necessary to make bit2=1 to exclude Slave 2.
The Broadcast Address for each slave is created by taking the logic OR of SADDR and SADEN. Zeros in this
result are trended as don’t cares. In most cares, interpreting the don’t cares as ones, the broadcast address will be
FF hexadecimal.
Upon reset SADDR and SADEN are loaded with “0”s. This produces a given address of all “don’t cares as well
as a Broadcast address of all “don’t cares”. This effectively disables the Automatic Addressing mode and allows
the microcontroller to use standard 80C51-type UART drivers which do not make use of this feature.
Example: write an program that continually transmits characters from a transmit buffer. If incoming characters
are detected on the serial port, store them in the receive buffer starting at internal RAM location 50H. Assume that
the STC12C5620AD series MCU serial port has already been initialized in mode 1.
Solution:
ORG
0030H
MOV
R0,
#30H
;pointer for tx buffer
MOV
R1,
#50H
;pointer for rx buffer
LOOP:
JB
RI,
RECEIVE
;character received?
;yes: process it
JB
TI,
TX
;previous character transmitted ?
;yes: process it
SJMP
LOOP
;no: continue checking
TX:
MOV
A,
@R0
;get character from tx buffer
MOV
C,
P
;put parity bit in C
CPL
C
;change to odd parity
MOV
ACC.7, C
;add to character code
CLR
TI
;clear transmit flag
MOV
SBUF,
A
;send character
CLR
ACC.7
;strip off parity bit
INC
R0
;point to next character in buffer
CJNE
R0,
#50H,
LOOP
;end of buffer?
;no: continue
MOV
R0,
#30H
;yes: recycle
SJMP
LOOP
;continue checking
RX:
CLR
RI
;clear receive flag
MOV
A,
SBUF
;read character into A
MOV
C,
P
;for odd parity in A, P should be set
CPL
C
;complementing correctly indicates "error"
CLR
ACC.7
;strip off parity
MOV
@R1,
A
;store received character in buffer
INC
R1
;point to next location in buffer
SJMP
LOOP
;continue checking
END
210



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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