Rainbow-electronics ATAR862-8 User Manual Page 50

  • Download
  • Add to my manuals
  • Print
  • Page
    / 106
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 49
50
ATAR862-8
4589B–4BMCU–02/03
PWM Mode: Pulse-width modulation output on Timer 2 output pin (T2O)
Figure 49. PWM Modulation
Timer 2 Registers Timer 2 has 6 control registers to configure the timer mode, the time interval, the input
clock and its output function. All registers are indirectly addressed using extended
addressing as described in section "Addressing Peripherals". The alternate functions of
the Ports BP41 or BP42 must be selected with the Port 4 control register P4CR, if one of
the Timer 2 modes require an input at T2I/BP41 or an output at T2O/BP42.
Timer 2 Control Register (T2C) Address: "7"hex - Subaddress: "0"hex
0 0 50 255 1000 255 0 150 255 0 50 255 0 100
T2R
Input clock
Counter 2/2
Counter 2/2
OVF2
CM2
INT4
T2O
load the next
compare value
T2CO2=150 load load
T1 T2 T3 T1 T2
TTT T
T
Bit 3Bit 2Bit 1Bit 0
T2CS1 T2CS0 T2TS T2R Reset value: 0000b
T2CS1 Timer 2 Clock Select bit 1
T2CS0 Timer 2 Clock Select bit 0
T2CS1 T2CS0 Input Clock (CL 2/1) of Counter Stage 2/1
0 0 System clock (SYSCL)
0 1 Output signal of Timer 1 (T1OUT)
1 0 Internal shift clock of SSI (SCL)
1 1 Output signal of Timer 3 (TOG3)
T2TS Timer 2 Toggle with Start
T2TS = 0, the output flip-flop of Timer 2 is not toggled with the timer start
T2TS = 1, the output flip-flop of Timer 2 is toggled when the timer is started with
T2R
T2R Timer 2 Run
T2R = 0, Timer 2 stop and reset
T2R = 1, Timer 2 run
Page view 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 105 106

Comments to this Manuals

No comments