![Intel 80C196NU Скачать руководство пользователя страница 140](http://html1.mh-extra.com/html/intel/80c196nu/80c196nu_user-manual_2072209140.webp)
6-33
STANDARD AND PTS INTERRUPTS
4.
Set up EPA0 and EPA1.
— Load EPA0_CON with 68H (timer 1, compare mode, assert output pin, re-enable).
— Load EPA1_CON with 158H (timer 1, compare mode, deassert output pin, re-enable,
remap enabled).
— Load EPA0_TIME with 0000H (selects time 0 as first event time for EPA0).
— Load EPA1_TIME with the value of T1 (selects time T1 as first event time for EPA1).
— Load timer 1 with FFFFH to ensure that the EPA0 event time (time = 0) is matched
first.
— Load T1CONTROL with C2H (enables timer 1, selects up-counting at f/4, and enables
the divide-by-four prescaler).
5.
Enable the EPA0 and EPA1 interrupts and select PTS service for them.
— Set INT_MASK.7 and INT_MASK1.0.
— Set PTSSEL.7 and PTSSEL.8.
6.
Enable the interrupts and the PTS. The EI instruction enables interrupts; the EPTS
instruction enables the PTS.
Table 6-9. PWM Remap Mode PTSCB
PTSCB0 for EPA0
PTSCB1 for EPA1
Unused
Unused
Unused
Unused
PTSCONST1 (HI) = T2 (HI)
PTSCONST1 (HI) = T2 (HI)
PTSCONST1 (LO) = T2 (LO)
PTSCONST1 (LO) = T2 (LO)
PTSPTR1 (HI) = 1FH (EPA0_TIME, HI)
PTSPTR1 (HI) = 1FH (EPA1_TIME, HI)
PTSPTR1 (LO) = 82H (EPA0_TIME, LO)
PTSPTR1 (LO) = 86H (EPA1_TIME, LO)
PTSCON = 40H (Mode = 010, TMOD = 0)
PTSCON = 40H (Mode = 010, TMOD = 0)
Unused
Unused
Содержание 80C196NU
Страница 1: ...8XC196NP 80C196NU Microcontroller User s Manual...
Страница 2: ...8XC196NP 80C196NU Microcontroller User s Manual August 1995 Order Number 272479 002...
Страница 18: ...1 Guide to This Manual...
Страница 19: ......
Страница 31: ......
Страница 32: ...2 Architectural Overview...
Страница 33: ......
Страница 48: ...3 Advanced Math Features...
Страница 49: ......
Страница 56: ...4 Programming Considerations...
Страница 57: ......
Страница 72: ...5 Memory Partitions...
Страница 73: ......
Страница 106: ...6 Standard and PTS Interrupts...
Страница 107: ......
Страница 144: ...7 I O Ports...
Страница 145: ......
Страница 165: ......
Страница 166: ...8 Serial I O SIO Port...
Страница 167: ......
Страница 183: ......
Страница 184: ...9 Pulse width Modulator...
Страница 185: ......
Страница 196: ...10 Event Processor Array EPA...
Страница 197: ......
Страница 225: ......
Страница 226: ...11 Minimum Hardware Considerations...
Страница 227: ......
Страница 239: ......
Страница 240: ...12 Special Operating Modes...
Страница 241: ......
Страница 255: ......
Страница 256: ...13 Interfacing with External Memory...
Страница 257: ......
Страница 303: ......
Страница 304: ...A Instruction Set Reference...
Страница 305: ......
Страница 373: ......
Страница 374: ...B Signal Descriptions...
Страница 375: ......
Страница 390: ...C Registers...
Страница 391: ......
Страница 447: ......
Страница 448: ...Glossary...
Страница 449: ......
Страница 458: ...Index...
Страница 459: ......