Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

STC12LE5616AD Datasheet(PDF) 194 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) 194 Page - STCmicro Technology Co,.Ltd

Back Button STC12LE5616AD Datasheet HTML 190Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 191Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 192Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 193Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 194Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 195Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 196Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 197Page - STCmicro Technology Co,.Ltd STC12LE5616AD Datasheet HTML 198Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 194 / 377 page
background image
…
CLR
EA
;disable interrupt
MOV
A,
TLx
;read TLx
ADD
A,
#LOW
;LOW is low byte of compensation value
MOV
TLx,
A
;update TLx
MOV
A,
THx
;read THx
ADDC
A,
#HIGH
;HIGH is high byte of compensation value
MOV
THx,
A
;update THx
SETB
EA
;enable interrupt
…
(2) Dynamic read counts
When dynamic read running timer count value, if you do not pay attention to could be wrong, this is because it
is not possible at the same time read the value of the TLx and THx. For example the first reading TLx then THx,
because the timer is running, after reading TLx, TLx carry on the THx produced, resulting in error; Similarly,
after the first reading of THx then TLx, also have the same problems.
A kind of way avoid reading wrong is first reading THx then TLx and read THx once more, if the THx twice
to read the same value, then the read value is correct, otherwise repeat the above process. Realization method
reference to the following example code.
…
RDTM: MOV
A,
THx
;save THx to ACC
MOV
R0,
TLx
;save TLx to R0
CJNE
A,
THx,
RDTM
;read THx again and compare with the previous value
MOV
R1,
A
;save THx to R1
…
7.5 Application note for Timer in practice
(1) Real-time Timer
Timer/Counter start running, When the Timer/Counter is overflow, the interrupt request generated, this
action handle by the hardware automatically, however, the process which from propose interrupt request to
respond interrupt request requires a certain amount of time, and that the delay interrupt request on-site with
the environment varies, it normally takes three machine cycles of delay, which will bring real-time processing
bias. In most occasions, this error can be ignored, but for some real-time processing applications, which
require compensation.
Such as the interrupt response delay, for timer mode 0 and mode 1, there are two meanings: the first,
because of the interrupt response time delay of real-time processing error; the second, if you require multiple
consecutive timing, due to interruption response delay, resulting in the interrupt service program once again
sets the count value is delayed by several count cycle.
If you choose to use Timer/Counter mode 1 to set the system clock, these reasons will produce real-time
error for this situation, you should use dynamic compensation approach to reducing error in the system clock,
compensation method can refer to the following example program.
194



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