Renesas M16C/6NK Technical Information Seite 142

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 412
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 141
Rev.2.10 Apr 14, 2006 page 118 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 13. Timers
Figure 13.6 Registers ONSF, TRGSR, and CPSRF
One-Shot Start Flag
Symbol Address
ONSF 0382h
Timer A0 one-shot start flag
Timer A1 one-shot start flag
Timer A2 one-shot start flag
Timer A3 one-shot start flag
Timer A4 one-shot start flag
Bit Name FunctionBit Symbol
b7 b6 b5 b4 b3 b2 b1 b0
0 0 : Input on TA0IN is selected
(1)
0 1 : TB2 is selected
(2)
1 0 : TA4 is selected
(2)
1 1 : TA1 is selected
(2)
Timer A0 event/trigger
select bits
b7 b6
RW
The timer starts counting by setting
this bit to 1 while bits TMOD1 to TMOD0
in the TAiMR register (i = 0 to 4) =
10b (one-shot timer mode) and the
MR2 bit in the TAiMR register = 0
(TAiOS bit enabled).
When read, its content is 0.
Z-phase input enable bit
0 : Z-phase input disabled
1 : Z-phase input enabled
RW
RW
RW
RW
RW
RW
RW
RW
NOTES:
1.Make sure the PD7_1 bit in the PD7 register is set to 0 (input mode).
2.Overflow or underflow.
TA1OS
TA2OS
TA0OS
TA3OS
TA4OS
TA0TGL
TA0TGH
TAZIE
Symbol Address After Reset
TRGSR 0383h 00h
Timer A1 event/trigger
select bits
Trigger Select Register
Bit Name FunctionBit Symbol
b7 b6 b5 b4 b3 b2 b1 b0
Timer A2 event/trigger
select bits
Timer A3 event/trigger
select bits
Timer A4 event/trigger
select bits
b1 b0
b3 b2
b5 b4
b7 b6
NOTES:
1.Make sure the port direction bits for pins TA1IN to TA4IN are set to 0 (input mode).
2.Overflow or underflow.
0 0 : Input on TA1IN is selected
(1)
0 1 : TB2 is selected
(2)
1 0 : TA0 is selected
(2)
1 1 : TA2 is selected
(2)
0 0 : Input on TA2IN is selected
(1)
0 1 : TB2 is selected
(2)
1 0 : TA1 is selected
(2)
1 1 : TA3 is selected
(2)
0 0 : Input on TA3IN is selected
(1)
0 1 : TB2 is selected
(2)
1 0 : TA2 is selected
(2)
1 1 : TA4 is selected
(2)
0 0 : Input on TA4IN is selected
(1)
0 1 : TB2 is selected
(2)
1 0 : TA3 is selected
(2)
1 1 : TA0 is selected
(2)
RW
RW
RW
RW
RW
RW
RW
RW
RW
TA1TGL
TA1TGH
TA2TGL
TA2TGH
TA3TGL
TA3TGH
TA4TGL
TA4TGH
After Reset
00h
Symbol
CPSRF
Clock Prescaler Reset Flag
Bit Name FunctionBit Symbol
b7 b6 b5 b4 b3 b2 b1 b0
RW
RW
(b6-b0)
Setting this bit to 1 initializes the
prescaler for the timekeeping clock.
(When read, the content is 0.)
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined.
CPSR Clock prescaler reset flag
Address After Reset
0381h 0XXXXXXXb
Seitenansicht 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 411 412

Kommentare zu diesen Handbüchern

Keine Kommentare