Download Print this page

Epson S1C31D50 Technical Instructions page 280

Cmos 32-bit single chip microcontroller
Hide thumbs Also See for S1C31D50:

Advertisement

T 1 6 B _nCCCTLm.CBUFMD[2:0] bits = 0x3
3.4)
Data (W) → CC[15:0]
Data (W) → MC[15:0]
PRESET = 1
MODEN = 1
RUN = 1
0xffff
Compare period
during counting up
Counter
0x0000
T16B_nCCCTLm.CBUFMD[2:0] bits = 0x4
3.5)
Data (W) → CC[15:0]
Data (W) → MC[15:0]
PRESET = 1
MODEN = 1
RUN = 1
0xffff
Compare period
during counting up
Counter
0x0000
Compare period and count cycle settings using DMA
By setting the T16B_nCCmDMAEN.CCmDMAENx bit to 1 (DMA transfer request enabled) in
compara- tor mode, a DMA transfer request is sent to the DMA controller and compare data is
transferred from the specified memory to the T16B_nCCRm register via DMA Ch.x when the
T16B_nINTF.CMPCAPmIF bit is set to 1 (when the counter reaches the compare buffer value).
Similarly, by setting the T16B_nCCmDMAEN.MZDMAENx bit to 1 (DMA transfer request
enabled), a DMA transfer request is sent to the DMA controller and a counter MAX value is
transferred from the specified memory to the T16B_nMC register via DMA Ch.x when the
T16B_nINTF.CNTMAXIF bit is set to 1 (when the counter reaches the MAX value) in up or up/down
count mode, or when the T16B_nINTF. CNTZEROIF bit is set to 1 (when the counter reaches zero) in
down count mode.
This automates the compare period and count cycle settings of the timer counter.
The transfer source/destination and control data must be set for the DMA controller and the
relevant DMA channel must be enabled to start a DMA transfer in advance so that the setting data
will be transferred to the T16B_nCCRm or T16B_nMC register. For more information on DMA, refer to
the "DMA Controller" chapter.
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
Data (W) → CC[15:0]
Count cycle
Compare period
during counting
down
CNTMAXIF = 1
CNTZEROIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
Data (W) → CC[15:0]
Count cycle
Compare period
during counting
down
CNTMAXIF = 1
CNTZEROIF = 1
CMPCAPmIF = 1 CMPCAPmIF = 1
CMPCAPmIF = 1
Figure 17.4.3.2 Compare Buffer Operations
Seiko Epson Corporation
Data (W) → CC[15:0]
CNTMAXIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
Data (W) → CC[15:0]
CMPCAPmIF = 1
CMPCAPmIF = 1
MAX value
(T16B_nMC register)
Compare buffer
value
Time
CNTZEROIF = 1
MAX value
(T16B_nMC register)
Compare buffer
value
Time
CNTMAXIF = 1
17-15

Advertisement

loading