Electronic Components Datasheet Search
  English  ▼

X  

45111 Datasheet(PDF) 97 Page - List of Unclassifed Manufacturers

Part # 45111
Description  14-DAY MONEY BACK GUARANTEE
PDF  184 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ETC2 [List of Unclassifed Manufacturers]
Direct Link  
Logo ETC2 - List of Unclassifed Manufacturers

45111 Datasheet(HTML) 97 Page - List of Unclassifed Manufacturers

Back Button 45111 Datasheet HTML 93Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 94Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 95Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 96Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 97Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 98Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 99Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 100Page - List of Unclassifed Manufacturers 45111 Datasheet HTML 101Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 97 / 184 page
background image
10 SX Special Features and Coding Tips
SX-Key/Blitz Development System Manual 2.0
• Parallax, Inc. • Page 97
The block diagram in Figure 16 – SX48/52 Multi-Function Timers, below, shows the components of one
timer:
Figure 16 - SX48/52 Multi-Function Timers
Registers R1, R2 and the capture registers can be accessed by
mov !rb, w (Timer1), or mov !rc, w
(Timer2) instructions. The remaining registers cannot be accessed via software.
Timer 1 shares its input and output lines with the Port B pins 4...7, and Timer 2 shares its input and
output lines with the Port C pins 0...3. If a timer is active, those pins can no longer used for "regular"
I/O purposes.
10.3.1 PWM Mode
In this mode, the timer generates a square wave signal with programmable frequency, and duty cycle.
For this purpose, the contents of the two comparison registers determine for how long the signal is high,
and low.
The 16-bit counter starts with a value of 0, and keeps incrementing until it has reached the value of R1.
Then, the counter is reset to 0, the output is toggled, and (if enabled) an interrupt is generated.
Next, the counter keeps incrementing until it reaches the value of R2. Again, the counter is reset to 0, the
output signal is toggled, and an interrupt is triggered (if enabled).
These two steps are repeated continuously. The contents of R1 and R2 determine the frequency and the
duty cycle of the generated output signal. When R1 and R2 contain the same value, a square wave with
a duty cycle of 50% is generated. In order to generate a signal with a constant frequency, and a varying
Compare
Interrupt
Multiplexer
16-Bit Comparison R2
or Capture Register (2)
16-Bit Comparison Register
R1
8-Bit Prescaler
16-Bit Comparator
16-Bit Counter
16-Bit Capture Register (1)
Output (RB6/RC2)
Capture 2 (RB5/RC1)
Capture 1 (RB4/RC0)
External Clock
(RB7/RC3)
System Clock
Capture
Interrup
t



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