Electronic Components Datasheet Search
  English  ▼

X  

COP840C Datasheet(PDF) 16 Page - National Semiconductor (TI)

[Old version datasheet] Texas Instruments acquired National semiconductor.
Part # COP840C
Description  8-Bit CMOS ROM Based Microcontrollers with 1k or 2k Memory, Comparator and Brown Out Detector
PDF  35 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NSC [National Semiconductor (TI)]
Direct Link  http://www.national.com
Logo NSC - National Semiconductor (TI)

COP840C Datasheet(HTML) 16 Page - National Semiconductor (TI)

Back Button COP840C Datasheet HTML 12Page - National Semiconductor (TI) COP840C Datasheet HTML 13Page - National Semiconductor (TI) COP840C Datasheet HTML 14Page - National Semiconductor (TI) COP840C Datasheet HTML 15Page - National Semiconductor (TI) COP840C Datasheet HTML 16Page - National Semiconductor (TI) COP840C Datasheet HTML 17Page - National Semiconductor (TI) COP840C Datasheet HTML 18Page - National Semiconductor (TI) COP840C Datasheet HTML 19Page - National Semiconductor (TI) COP840C Datasheet HTML 20Page - National Semiconductor (TI) Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 35 page
background image
Timer/Counter (Continued)
MODE 3. TIMER WITH CAPTURE REGISTER
Timer T1 can be used to precisely measure external fre-
quencies or events in this mode of operation. The timer T1
counts down at the instruction cycle rate. Upon the occur-
rence of a specified edge on the TIO pin the contents of the
timer T1 are copied into the register R1. Bits in the control
register CNTRL allow the trigger edge to be specified either
as a positive edge or as a negative edge. In this mode the
user can elect to be interrupted on the specified trigger edge
(
Figure 10).
TIMER PWM APPLICATION
Figure 11 shows how a minimal component D/A converter
can be built out of the Timer-Register pair in the Auto-Reload
mode. The timer is placed in the “Timer with auto reload”
mode and the TIO pin is selected as the timer output. At the
outset the TIO pin is set high, the timer T1 holds the on time
and the register R1 holds the signal off time. Setting TRUN
bit starts the timer which counts down at the instruction cycle
rate. The underflow toggles the TIO output and copies the off
time into the timer, which continues to run. By alternately
loading in the on time and the off time at each successive in-
terrupt a PWM frequency can be easily generated.
WATCHDOG
The device has an on-board 8-bit WATCHDOG timer. The
timer contains an 8-bit READ/WRITE down counter clocked
by an 8-bit prescaler. Under software control the timer can
be dedicated for the WATCHDOG or used as a general pur-
pose counter.
Figure 12 shows the WATCHDOG timer block
diagram.
MODE 1: WATCHDOG TIMER
The WATCHDOG is designed to detect user programs get-
ting stuck in infinite loops resulting in loss of program control
or “runaway” programs. The WATCHDOG can be enabled or
disabled (only once) after the device is reset as a result of
brown out reset or external reset. On power-up the WATCH-
DOG is disabled. The WATCHDOG is enabled by writing a
“1” to WDREN bit (resides in WDREG register). Once en-
abled, the user program should write periodically into the
8-bit counter before the counter underflows. The 8-bit
counter (WDCNT) is memory mapped at address 0CE Hex.
The counter is loaded with n-1 to get n counts. The counter
underflow resets the device, but does not disable the
WATCHDOG. Loading the 8-bit counter initializes the pres-
caler with FF Hex and starts the prescaler/counter. Prescaler
and counter are stopped upon counter underflow. Prescaler
and counter are each loaded with FF Hex when the device
goes into the HALT mode. The prescaler is used for crystal/
resonator start-up when the device exits the HALT mode
through Multi-Input Wakeup. In this case, the prescaler/
counter contents are changed.
DS011208-29
FIGURE 9. Timer in External Event Counter Mode
DS011208-25
FIGURE 10. Timer Capture Mode Block Diagram
DS011208-26
FIGURE 11. Timer Application
www.national.com
16



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


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