Electronic Components Datasheet Search
  English  ▼

X  

7641 Datasheet(PDF) 317 Page - Renesas Technology Corp

Part # 7641
Description  8-BIT SINGLE-CHIP MICROCOMPUTER
PDF  385 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

7641 Datasheet(HTML) 317 Page - Renesas Technology Corp

Back Button 7641 Datasheet HTML 313Page - Renesas Technology Corp 7641 Datasheet HTML 314Page - Renesas Technology Corp 7641 Datasheet HTML 315Page - Renesas Technology Corp 7641 Datasheet HTML 316Page - Renesas Technology Corp 7641 Datasheet HTML 317Page - Renesas Technology Corp 7641 Datasheet HTML 318Page - Renesas Technology Corp 7641 Datasheet HTML 319Page - Renesas Technology Corp 7641 Datasheet HTML 320Page - Renesas Technology Corp 7641 Datasheet HTML 321Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 317 / 385 page
background image
Rev.2.00
Aug 28, 2006
page 38 of 108
7641 Group
REJ09B0336-0200
APPENDIX
3.3 Notes on use
3.3.9 Notes on timer
(1) Read/Write for timer
•The timer division ratio is : 1 / (n + 1)
(n = “0” to “255” written into the timer)
•Read and write operation on 16-bit timer (Timers X and Y) must be performed for both high and low-
order bytes.
•When reading the 16-bit timer (Timers X and Y), read the high-order byte first and then the low-order
byte. When writing to the 16-bit timer, write the low-order byte first and then the high-order byte.
•Do not read the 16-bit timer during the write operation, or do not write to
it during the read
operation.
•When the value is loaded only in the latch, the value is loaded in the timer at the count pulse
following the count where the timer reaches “0016”.
•In the timers 1 to 3, switching of the count sources of timers 1 to 3 does not affect the values of
reload latches. However, that may make count operation started. Therefore, write values again in
the order of timers 1, 2 and then timer 3 after their count sources have been switched.
•In the timer mode (for timers X, Y, 1 to 3), event counter mode (for timers X, Y), pulse output mode
(for timers X, Y, 1, 2), the timer current count value can be read out by reading the timer.
•In the pulse width measurement mode (for timer X), period measurement mode (for timer Y), pulse
width HL continuously measurement mode (for timer Y), the measured timer value is stored into the
internal temporary register. When reading the timer, the value of internal temporary register is read
out. The contents of internal temporary register is updated after the next measurement.
(2) Pulse output
•When using the pulse output mode of timer X, set bit 3 of port P4 direction register to “1” (output
mode).
•When using the TYOUT output of timer Y, set bit 4 of port P4 direction register to “1” (output mode).
•When using the TOUT output of timer 1 or timer 2, set bit 1 of port P5 direction register to “1” (output
mode).
•The TOUT output pin is shared with the XCOUT pin. Accordingly, when using f(XCIN)/2 as the timer 1
count source (bit 2 of timer 123 mode register = “0”), XCOUT oscillation drive must be disabled (bit
5 of clock control register = “1”) to input clocks from the XCIN pin.
•The P51/XCOUT/TOUT pin cannot function as an ordinary I/O port while XCIN-XCOUT is oscillating. When
XCIN-XCOUT oscillation is stopped or XCOUT oscillation drive is disabled, this can be used as the TOUT
output pin of timer 1 or 2.
(3) Pulse input
•When using the timer X in the event counter or pulse width measurement mode, set bit 3 of port
P4 direction register to “0” (input mode).
•When using the timer Y in the period measurement, event counter or pulse width HL continuously
measurement mode, set bit 4 of port P4 direction register to “0” (input mode).
(4) Interrupt
In the timer Y’s pulse width HL continuously measurement mode, CNTR1 interrupt request is generated
at both rising and falling edges of CNTR1 pin input signal regardless of the setting of CNTR1 active
edge switch bit of timer Y mode register.
(5) At STP instruction executed
When the STP instruction is executed or Reset occurs, the timer 1 is set to “FF16” and the internal
clock
φ divided by 8 is automatically selected as its count source. Additionally, the timer 2 is set to
“0116” and the timer 1’s output is automatically selected as its count source. When the STP instruction
is being executed, all bits except bit 4 of the timer 123 mode register (address 002916) are initialized
to “0”. It is not necessary to set T123M1 (timer 1 count stop bit) to “0” before executing the STP



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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


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