Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

SH79F6488P/080PR Datasheet(PDF) 59 Page - SINOWEALTH Electronic Ltd

Part # SH79F6488P/080PR
Description  Enhanced 8051 Microcontroller with 20bit Σ-ΔADC and LCD Driver
PDF  152 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SINOWEALTH [SINOWEALTH Electronic Ltd]
Direct Link  https://en.sinowealth.com
Logo SINOWEALTH - SINOWEALTH Electronic Ltd

SH79F6488P/080PR Datasheet(HTML) 59 Page - SINOWEALTH Electronic Ltd

Back Button SH79F6488P/080PR Datasheet HTML 55Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 56Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 57Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 58Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 59Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 60Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 61Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 62Page - SINOWEALTH Electronic Ltd SH79F6488P/080PR Datasheet HTML 63Page - SINOWEALTH Electronic Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 59 / 152 page
background image
SH79F6488/SH79F6489
59
7.8.4 Timer4
Timer4 is a 16-bit auto-reload timer. It is implemented as a 16-bit register accessed as two cascaded data registers: TH4 and
TL4. It is controlled by the T4CON register. The Timer 4 interrupt can be enabled by setting ET4 bit in IEN0 register (Refer to
interrupt Section for details).
When writing to TH4 and TL4, they are used as timer load register. When reading from TH4 and TL4, they are used as timer
counter register. Setting the TR4 bit enables Timer 4 to count up. The timer will overflow from 0xFFFF to 0x0000 and set the
TF4 bit. This overflow also causes the 16-bit value written in timer load register to be reloaded into the timer counter register.
Writing to TH4 also can cause the 16-bit value written in timer load register to be reloaded into the timer counter register.
Read or write operation to TH4 and TL4 should follow these steps:
Write operation:Low nibble first,High nibble to update the counter.
Read operation:High nibble first,Low nibble followed.
Timer4 Modes
Timer4 has three operating modes: 16-bit auto-reload counter/timer, Baud Rate Generator and 16-bit auto-reload timer with T4
edge trig. These modes are selected by T4M[1:0] bits in T4CON Register.
Mode0: 16-bit Auto-Reload Counter/Timer
Timer4 operates as 16-bit counter/timer in Mode 0. The TH4 register holds the high eight bits of the 16-bit counter/timer, TL4
holds the low eight bits. As the 16-bit timer register increments and overflows from 0xFFFF to 0x0000, the timer overflow flag
TF4 (T4CON.7) is set and the 16-bit value in timer load register are reloaded into timer counter register, and an interrupt will
occur if Timer 4 interrupts is enabled. The T4CLKS bit (T4CON.0) selects the counter/timer's clock source.
If T4CLKS = 1, external clock from the Pin T4 is selected as Timer4 clock, after prescaled, it will increase the Counter/Timer4
Data register. Else if T4CLKS = 0, the system clock is selected as Timer4 clock.
Setting the TR4 bit (T4CON.1) enables the timer. Setting TR4 does not force the timer to reset. The timer load register should
be loaded with the desired initial value before the timer is enabled.
In Compare mode, the T4 pin is automatically set as output mode by hardware. the internal counter is constantly countered
from TH4 and TL4 register value to 0xFFFF. When an overflow occurs, the T4 pin will be inverted. At the same time, interrupt
flag bit of Time4 is set. Timer4 must be running in Timer mode (T4CLKS = 0) when compare function enabled.
TF4
T4CLKS
=0
=1
The Block Diagram of Mode 0 of Timer 4
TL4
TH4
Increment Mode
0:Switch Off
1:Switch On
16 bit Counter
T4
Interrupt
Request
Overflow
Flag
TR4
System Clock
Prescaler
1,8,64,256
T4PS[1:0]
T4
T4CLKS=0
TC4=1



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