công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

SH89F52P/044PR bảng dữ liệu(PDF) 52 Page - SINOWEALTH Electronic Ltd

tên linh kiện SH89F52P/044PR
Giải thích chi tiết về linh kiện  8051 Microcontroller with 10bit ADC
PDF  105 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  SINOWEALTH [SINOWEALTH Electronic Ltd]
Trang chủ  https://en.sinowealth.com
Logo SINOWEALTH - SINOWEALTH Electronic Ltd

SH89F52P/044PR bảng dữ liệu(HTML) 52 Page - SINOWEALTH Electronic Ltd

Back Button SH89F52P/044PR Datasheet HTML 48Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 49Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 50Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 51Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 52Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 53Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 54Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 55Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 56Page - SINOWEALTH Electronic Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 52 / 105 page
background image
SH88F516(SH88F54/SH89F52)
52
8.9.4 Interrupt Flag
Each Interrupt source has its own interrupt flag, when interrupt occurs, corresponding flag will be set by hardware, the interrupt
flag bits are listed in interrupt abstract table.
For external interrupt (INT0/1), when an external interrupt0/1 is generated, if the interrupt was edge trigged, the flag (IE0-1 in
TCON) that generated this interrupt is cleared by hardware when the service routine is vectored. If the interrupt was level
trigged, then the requesting external source directly controls the request flag, rather than the on-chip hardware.
When INT4 generates an interrupt, the flag bit IF4x (x = 0-7) in EXF1 register will be set.The flag bit should be cleared by user’s
program because the same vector entrance was used in INT4.But if INT4 is level triggered, the flag can’t be cleared by user’s
program, it only be controlled by peripheral signal level that connect to interrupt source pin.
The Timer0/1 interrupt is generated when they overflows, the flag (TFx, x = 0, 1) in TCON register, which is set by hardware,
and will be automatically be cleared by hardware when the service routine is vectored.
The Timer2 interrupt is generated by the logical OR of flag TF2 and bit EXF2 in T2CON register, which is set by hardware.
None of these flags can be cleared by hardware when the service routine is vectored. In fact, the service routine may have to
determine whether it was TF2 or EXF2 that generated the interrupt, so the flag must be cleared by software.
The EUART interrupt is generated by the logical OR of flag RI and TI in SCON register, which is set by hardware. Neither of
these flags can be cleared by hardware when the service routine is vectored. In fact, the service routine will normally have to
determine whether it was the receive interrupt flag or the transmission interrupt flag that generated the interrupt, so the flag
must be cleared by software.
The ADC interrupt is generated by ADCIF bit in ADCON. If an interrupt is generated, the converted result in ADCDH/ADCDL
will be valid. If continuous compare function in ADC module is Enable, ADCIF will not be clear at each conversion when
conversion results is less than the compare value. But if converted result is larger than compare value, ADCIF bit will be 1. The
flag must be cleared by software.
The SPI interrupt is generated by setting SPIF bit or MODF bit in SPSTA register, the flag bit must be cleared by software.
The SCM interrupt is generated by setting SCMIF bit in CLKCON register, the flag bit must be cleared by hardware.
The PWM interrupt is generated by setting PWMIF bit in PWMxCON register, the flag bit must be cleared by software.
The LPD interrupt is generated by setting LPDF bit in LPDCON register, the flag bit can be cleared by hardware or
software.But, the flag bit is set by hardware.
The CMP interrupt is generated by setting CMPIF bit in CMPCON register.The flag bit must be cleared by software.
Table 8.32 Timer/Counter x Control Register (x = 0, 1)
88H
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
TCON
TF1
TR1
TF0
TR0
IE1
IT1
IE0
IT0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
(POR/WDT/LVR/PIN)
0
0
0
0
0
0
0
0
Bit Number
Bit Mnemonic
Description
7, 5
TFx
(x= 0, 1)
Timer x overflow flag
0: Timer x no overflow
1: Timer x overflow
6, 4
TRx
(x= 0, 1)
Timer x start, stop control bits
0: Stop timer x
1: Start timer x
3, 1
IEx
(x= 0, 1)
External interrupt x request flag bit
0: No interrupt pending
1: Interrupt is pending
2, 0
ITx
(x= 0, 1)
External interrupt x trigger mode selection bit
0: Low level trigger
1: Falling edge trigger



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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