| 전자부품 데이터시트 검색엔진 |
|
AN413 데이터시트(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN413 데이터시트(HTML) 14 Page - STMicroelectronics |
|
14 / 45 page ![]() ST9 basic system configuration AN413 14/45 Doc ID 1875 Rev 2 F5 07 0F ld R#NUM_TDCP,#(LNG_DMA_SCI) F5 06 00 ld R#NUM_TDAP,#(DEPART_DMA_SCI) In this program sequence the DMA transaction counter and Address Pointer register addresses are defined to be R7 and R6 respectively. These two registers are initialized for a block of size 15 bytes starting at register address A0, i.e. R160. 3.8 Timer/watchdog unit configuration Configuration of the Timer/Watchdog requires loading of the 6 registers listed in Table 13, Appendix A. The Timer/Watchdog Control Register, WDTCR, contains a start/stop bit, and is also used to select input, output, and counter modes, as well as input and output enable bits. Example: BC 80 ld wdtcr,#80h In this example the Timer starts counting down in continuous mode, and the input and output sections are disabled. The Wait Control Register, WCR, as well as specifying the number of wait states for access to off-chip program and data memory enables the Watchdog function. Example: CC 40 ld wcr,#wden In this example the Watchdog action is disabled, and the number of wait states are set to zero. The External Interrupt Vector Register, EIVR, contains a bit, TLIS, which is used to control the Top Level Interrupt source (Timer/Watchdog EOC or External NMI). A second bit IAOS is used to select the Timer/Watchdog as an interrupt source on channel A0 (INT0). This register is also used to supply the 4 most significant bits of the External Interrupt Vector. Example: 6C 20 ld eivr,#EXT_IT_VECT In this example the Timer/Watchdog EOC generates an interrupt on channel A0 at each End of Count. The Top Level Interrupt is isolated from the NMI input and may be used for a Software Trap. The Timer/Watchdog Prescaler Register, WDTPR, contains an 8-bit value which is loaded into the Prescaler register. Example: 90 DA clr wdtpr The specified Prescaler value of zero leads to a minimum timer count period of 333ns, assuming a system clock running at 12MHz. The Timer/Watchdog High Register, WDTHR, and Timer/Watchdog Low Register, WDTLR, together contain a 16-bit value which is loaded into the counter at each End of Count. Example: BF F8 0B BB ldw WDTR,#3003 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |