參數(shù)資料
型號: ST6235BQ1
廠商: 意法半導(dǎo)體
英文描述: 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
中文描述: 8位檢察官辦公室/存儲器與阿微控制器/ D轉(zhuǎn)換器,16位自動重加載定時(shí)器,EEPROM中,SPI和UART
文件頁數(shù): 39/82頁
文件大?。?/td> 617K
代理商: ST6235BQ1
39/82
ST62T35B/E35B
4.2 TIMER
The MCU features an on-chip Timer peripheral,
consisting of an 8-bit counter with a 7-bit program-
mable prescaler, giving a maximum count of 2
15
.
The peripheral may be configured in three differ-
ent operating modes.
Figure 1 shows the Timer Block Diagram. The ex-
ternal TIMER pin is available to the user. The con-
tent of the 8-bit counter can be read/written in the
Timer/Counter register, TCR, while the state of the
7-bit prescaler can be read in the PSC register.
The control logic device is managed in the TSCR
register as described in the following paragraphs.
The 8-bit counter is decremented by the output
(rising edge) coming from the 7-bit prescaler and
can be loaded and read under program control.
When it decrements to zero then the TMZ (Timer
Zero) bit in the TSCR is set to “1”. If the ETI (Ena-
ble Timer Interrupt) bit in the TSCR is also set to
“1”, an interrupt request is generated as described
in the Interrupt Chapter. The Timer interrupt can
be used to exit the MCU from WAIT mode.
The prescaler input can be the internal frequency
f
INT
divided by 12 or an external clock applied to
the TIMER pin. The prescaler decrements on the
rising edge. Depending on the division factor pro-
grammed by PS2, PS1 and PS0 bits in the TSCR.
The clock input of the timer/counter register is
multiplexed to different sources. For division factor
1, the clock input of the prescaler is also that of
timer/counter; for factor 2, bit 0 of the prescaler
register is connected to the clock input of TCR.
This bit changes its state at half the frequency of
the prescaler input clock. For factor 4, bit 1 of the
PSC is connected to the clock input of TCR, and
so forth. The prescaler initialize bit, PSI, in the
TSCR register must be set to “1” to allow the pres-
caler (and hence the counter) to start. If it is
cleared to “0”, all the prescaler bits are set to “1”
and the counter is inhibited from counting. The
prescaler can be loaded with any value between 0
and 7Fh, ifbit PSI is set to “1”. The prescaler tap is
selected by means of the PS2/PS1/PS0 bits in the
control register.
Figure 2 illustrates the Timer’s working principle.
Figure 21. Timer Block Diagram
DATABUS 8
8
8
8
8-BIT
COUNTER
6
5
4
3
2
1
0
PSC
STATUS/CONTROL
REGISTER
TOUT
DOUT
b7
b6
b5
b4
b3
b2
b1
b0
TMZ
ETI
PSI
PS2
PS1
PS0
SELECT
1 OF7
3
LATCH
SYNCHRONIZATION
LOGIC
TIMER
INTERRUPT
LINE
VA00009
:12
f
OSC
38
相關(guān)PDF資料
PDF描述
ST62T35B 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST62E35B 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ3 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ6 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST623x-EMU2 Real Time Emulation Development Tools for ST6218/ST6228/ST623x MCUs(ST6218/6228/623x的實(shí)時(shí)開發(fā)工具)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST6235BQ1/XXX 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
ST6235BQ3 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ3/XXX 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
ST6235BQ6 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ6/XXX 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller