Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

Preview PDF HTML

27E65 Marking, SN8F27E64LSG Datasheet(PDF) 103 Page - SONiX Technology Company

Part # SN8F27E64LSG
Description  8-Bit Flash Micro-Controller with Embedded ICE and ISP
PDF  192 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SONIX [SONiX Technology Company]
Direct Link  http://www.sonix.com.tw
Logo SONIX - SONiX Technology Company

SN8F27E64LSG Datasheet(HTML) 103 Page - SONiX Technology Company

Back Button SN8F27E64LSG Datasheet HTML 99Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 100Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 101Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 102Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 103Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 104Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 105Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 106Page - SONiX Technology Company SN8F27E64LSG Datasheet HTML 107Page - SONiX Technology Company Next Button
Zoom Inzoom in Zoom Outzoom out
 103 / 192 page
background image
SN8F27E60 Series
8-Bit Flash Micro-Controller with Embedded ICE and ISP
SONiX TECHNOLOGY CO., LTD
Page 103
Version 1.4
8.4.7 TC1 EVENT COUNTER
TC1 event counter is set the TC1 clock source from external input pin (P0.1). When TC1CKS1=1, TC1 clock source is
switch to external input pin (P0.1). TC1 event counter trigger direction is falling edge. When one falling edge occurs,
TC1C will up one count. When TC1C counts from 0xFF to 0x00, TC1 triggers overflow event. The external event
counter input pin’s wake-up function of GPIO mode is disabled when TC1 event counter function enabled to avoid
event counter signal trigger system wake-up and not keep in power saving mode. The external event counter input
pin’s external interrupt function is also disabled when TC1 event counter function enabled, and the P01IRQ bit keeps
“0” status. The event counter usually is used to measure external continuous signal rate, e.g. continuous pulse, R/C
type oscillating signal
…These signal phase don’t synchronize with MCU’s main clock. Use TC1 event to measure it
and calculate the signal rate in program for different applications.
0x00
or TC1R
...
...
External Input Signel
TC1C
TC1IRQ
TC1 timer overflows. TC1IRQ set as “1”.
Reload TC1C from TC1R automatically.
TC1IRQ is cleared by program.
0x01
0x02
0x03
0xFE
0xFF
TC1R
...
...
8.4.8 PULSE WIDTH MODULATION (PWM)
The PWM is duty/cycle programmable design to offer various PWM signals. When TC1 timer enables and PWM1OUT
bit sets as
“1” (enable PWM output), the PWM output pin (P5.2) outputs PWM signal. One cycle of PWM signal is high
pulse first, and then low pulse outputs. TC1R register controls the cycle of PWM, and TC1D decides the duty (high
pulse width length) of PWM. TC1C initial value is TC1R reloaded when TC1 timer enables and TC1 timer overflows.
When TC1C count is equal to TC1D, the PWM high pulse finishes and exchanges to low level. When TC1 overflows
(TC1C counts from 0xFF to 0x00), one complete PWM cycle finishes. The PWM exchanges to high level for next cycle.
The PWM is auto-reload design to load TC1C from TC1R automatically when TC1 overflows and the end of PWM
’s
cycle, to keeps PWM continuity. If modify the PWM cycle by program as PWM outputting, the new cycle occurs at next
cycle when TC1C loaded from TC1R.
TC1R
TC1R
+1
TC1R
+2
TC1C
...
TC1D
-2
TC1D
-1
TC1D
PWM Output
...
0xFD
0xFE
0xFF
TC1R
TC1R
+1
TC1R
+2
...
Enable TC1 and PWM.
TC1C is loaded from TC1R.
PWM outputs high status.
TC1C = TC1D.
PWM exchanges to low status.
TC1C overflows from 0xFF to 0x00.
TC1C is loaded from TC1R.
PWM exchanges to high status.
One complete cycle of PWM.
Next cycle.
The resolution of PWM is decided by TC1R. TC1R range is from 0x00~0xFF. If TC1R = 0x00, PWM
’s resolution is
1/256. If TC1R = 0x80, PWM
’s resolution is 1/128. TC1D controls the high pulse width of PWM for PWM’s duty. When
TC1C = TC1D, PWM output exchanges to low status. TC1D must be greater than TC1R, or the PWM signal keeps low
status. When PWM outputs, TC1IRQ still actives as TC1 overflows, and TC1 interrupt function actives as TC1IEN = 1.
But strongly recommend be careful to use PWM and TC1 timer together, and make sure both functions work well.
The PWM output pin is shared with GPIO and switch to output PWM signal as PWM1OUT=1 automatically. If
PWM1OUT bit is cleared to disable PWM, the output pin exchanges to last GPIO mode automatically. It easily to
implement carry signal on/off operation, not to control TC1ENB bit.



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