Electronic Components Datasheet Search
  English  ▼

X  

AP160 Datasheet(PDF) 8 Page - AMIC Technology

Part # AP160
Description  8-BIT MICROCONTROLLER WITH 8KB OTP
PDF  25 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  AMICC [AMIC Technology]
Direct Link  http://www.amictechnology.com
Logo AMICC - AMIC Technology

AP160 Datasheet(HTML) 8 Page - AMIC Technology

Back Button AP160 Datasheet HTML 4Page - AMIC Technology AP160 Datasheet HTML 5Page - AMIC Technology AP160 Datasheet HTML 6Page - AMIC Technology AP160 Datasheet HTML 7Page - AMIC Technology AP160 Datasheet HTML 8Page - AMIC Technology AP160 Datasheet HTML 9Page - AMIC Technology AP160 Datasheet HTML 10Page - AMIC Technology AP160 Datasheet HTML 11Page - AMIC Technology AP160 Datasheet HTML 12Page - AMIC Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 25 page
background image
AP160
Version 0.0
8
AMIC Technology, Inc.
Capture Mode
In the capture mode, two options are selected by bit EXEN2 in T2CON. If EXEN2=0, Timer 2 is a 16-bit timer or counter
which upon overflow sets bit TF2 in T2CON. This bit can then be used to generate an interrupt. If EXEN2=1, Timer 2
performs the same operation, but a 1-to-0 transition at external input T2EX also causes the current value in TH2 and TL2 to
be captured into RCAP2H and RCAP2L, respectively. In addition, the transition at T2EX causes bit EXF2 in T2CON to be
set. The EXF2 bit, like TF2, can generate an interrupt. The capture mode is illustrated in Figure 1.
TIMER 2
INTERRUPT
OSC
C/T2=0
T2 PIN
CONTROL
TH2
TF2
C/T2=1
TL2
RCAP2H
RCAP2L
EXF2
T2EX PIN
EXEN2
TR2
CAPTURE
CONTROL
TRANSITION
DETECTOR
12
÷
OVERFLOW
Figure 1. Timer in Capture Mode
Auto-Reload (UP or Down Counter)
Timer 2 can be programmed to count up or down when configured in its 16-bit auto-reload mode. This feature is invoked by
the DCEN (Down Counter Enable) bit located in the SFR T2MOD (see Table 3). Upon reset, the DCEN bit is set to 0 so that
Timer 2 will default to count up. When DCEN is set, Timer 2 can count up or down, depending on the value of the T2EX pin.
Figure 2 shows Timer 2 automatically counting up when DCEN=0.
TIMER 2
INTERRUPT
OSC
C/T2=0
T2 PIN
CONTROL
TH2
TF2
C/T2=1
TL2
RCAP2H
RCAP2L
T2EX PIN
EXEN2
TR2
RELOAD
CONTROL
TRANSITION
DETECTOR
12
÷
EXF2
OVERFLOW
Figure 2. Timer 2 Auto Reload Mode (DCEN=0)



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


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