Electronic Components Datasheet Search
  English  ▼

X  

COPC912C Datasheet(PDF) 9 Page - National Semiconductor (TI)

[Old version datasheet] Texas Instruments acquired National semiconductor.
Part # COPC912C
Description  COP912C/COP912CH 8-Bit Microcontroller
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NSC [National Semiconductor (TI)]
Direct Link  http://www.national.com
Logo NSC - National Semiconductor (TI)

COPC912C Datasheet(HTML) 9 Page - National Semiconductor (TI)

Back Button COPC912C Datasheet HTML 5Page - National Semiconductor (TI) COPC912C Datasheet HTML 6Page - National Semiconductor (TI) COPC912C Datasheet HTML 7Page - National Semiconductor (TI) COPC912C Datasheet HTML 8Page - National Semiconductor (TI) COPC912C Datasheet HTML 9Page - National Semiconductor (TI) COPC912C Datasheet HTML 10Page - National Semiconductor (TI) COPC912C Datasheet HTML 11Page - National Semiconductor (TI) COPC912C Datasheet HTML 12Page - National Semiconductor (TI) COPC912C Datasheet HTML 13Page - National Semiconductor (TI) Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 24 page
background image
Functional Description (Continued)
EXTERNAL EVENT COUNTER MODE
In this mode the timer becomes a 16-bit external event
counter clocked from an input signal applied to the G3 in-
put The maximum frequency for this G3 input clock is
250 kHz (half of the 05 MHz instruction cycle clock) When
the external event counter underflows the value in the au-
toreload register is copied into the timer This timer under-
flow may also be used to generate an interrupt Bit 5 of the
CNTRL register is used to select whether the external event
counter clocks on positive or negative edges from the G3
input Consequently half cycles of an external input signal
could be counted The External Event counter mode is
shown in
Figure 8
TLDD12060 – 11
FIGURE 8 Timer in External Event Mode
INPUT CAPTURE MODE
In this mode the timer counts down at the instruction clock
rate When an external edge occurs on pin G3 the value in
the timer is copied into the capture register Consequently
the time of an external edge on the G3 pin is ‘‘captured’’ Bit
5 of the CNTRL register is used to select the polarity of the
external edge This external edge capture can also be pro-
grammed to generate an interrupt The duration of an input
signal can be computed by capturing the time of the leading
edge saving this captured value changing the capture
edge capturing the time of the trailing edge and then sub-
tracting this trailing edge time from the earlier leading edge
time The Input Capture mode is shown in
Figure 9
TLDD12060 – 12
FIGURE 9 Timer in Input Capture Mode
Table IV below details the TIMER modes of operation and
their associated interrupts Bit 4 of CNTRL is used to start
and stop the timercounter Bits 5 6 and 7 of the CNTRL
register select the timer modes The ENTI (Enable Timer
Interrupt) and TPND (Timer Interrupt Pending) bits in the
PSW register are used to control the timer interrupts
Care must be taken when reading from and writing to the
timer and its associated autoreloadcapture register The
timer and autoreloadcapture register are both 16-bit but
they are read from and written to one byte at a time It is
recommended that the timer be stopped before writing a
new value into it The timer may be read ‘‘on the fly’’ without
stopping it if suitable precautions are taken One method of
reading the timer ‘‘on the fly’’ is to read the upper byte of the
timer first and then read the lower byte If the most signifi-
cant bit of the lower byte is then tested and found to be
high then the upper byte of the timer should be read again
and this new value used
TABLE IV Timer Modes and Control Bits
CNTRL Bits
Operation Mode
Interrupt
Timer
Counts On
Timer
765
0
0
0
External Event Counter with Autoreload Register
Timer Underflow
TIO Positive Edge
0
0
1
External Event Counter with Autoreload Register
Timer Underflow
TIO Negative Edge
0
1
0
Not Allowed
Not Allowed
Not Allowed
0
1
1
Not Allowed
Not Allowed
Not Allowed
1
0
0
Timer with Autoreload Register
Timer Underflow
tc
1
0
1
Timer with Autoreload Regiter and Toggle TIO Out
Timer Underflow
tc
1
1
0
Timer with Capture Register
TIO Positive Edge
tc
1
1
1
Timer with Capture Register
TIO Negative Edge
tc
http
www nationalcom
9



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


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