数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN413 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN413
功能描述  Initialization of the ST9
PDF  45 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN413 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN413 Datasheet HTML 5Page - STMicroelectronics AN413 Datasheet HTML 6Page - STMicroelectronics AN413 Datasheet HTML 7Page - STMicroelectronics AN413 Datasheet HTML 8Page - STMicroelectronics AN413 Datasheet HTML 9Page - STMicroelectronics AN413 Datasheet HTML 10Page - STMicroelectronics AN413 Datasheet HTML 11Page - STMicroelectronics AN413 Datasheet HTML 12Page - STMicroelectronics AN413 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 45 page
background image
AN413
ST9 basic system configuration
Doc ID 1875 Rev 2
9/45
Example:
F5 F5 1B ld T_OACR,#00011011b
In this example T0OUTA is preset to 1, and is subsequently set by COMP0, toggled by
COMP1, and Reset by OVF. The OCE signal is generated by a successful CMP0 compare
event.
The Output Control Register, OBCR, links the output T0OUTB to counter overflow/underflow
and Compare events, and provides for subsequent Set, Reset, or Toggle of the external
output. The on-chip event (OCE) may be linked to a counter overflow/underflow event.
Example:
F5 F6 83 ld T_OBCR,#10000011b
In this example T0OUTB is preset to 1, and is subsequently reset by COMP0, and set by
OVF and COMP1.
The OCE signal is generated by a counter overflow/underflow event.
3.4
Multifunction timer initialization
Initialization of the Multifunction Timer requires loading of the Prescaler register and the two
Comparison registers. The timer Status register should be cleared, the Vector Table entry
should be set, and the Multifunction Timer counter actions enabled. The interrupt/DMA
priority levels should be set and the mask bits should be adjusted as appropriate to the
application. Further, if DMA operations are specified, DMA address and counter registers
will require initialization.
The Prescaler Register, PRSR, holds the preset value for the 8-bit prescaler.
Example:
BC 00 ld T_PRSR,#00h
This defines a division ratio of 1 and the maximum counter clock is generated (INTCLK/3).
The Multifunction Timer Flags Register, FLAGR, contains flags which register successful
capture or comparison events together with OVF/UNF and overrun conditions.
Example:
15 FE FD and T_FLAGR,#~ocm0
This example resets the overrun bit for COMP0 operations.
The Interrupt Vector Register, IVR, should be loaded with the 5 most significant bits of the
Multifunction Timer’s interrupt vector address in program memory. The interrupt source
(compare, capture, or OVF/UNF) provides the least significant 3 bits to provide the correct
vector link.
Example:
F5 F2 10 ld T0_IVR,#T0_IT_VECT
In this example IVR is loaded with the start address (10h) of the block of 8 words in the
vector table allocated to the 5 different Multifunction Timer interrupts.



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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