Basic Timer1 Introduction
13-4
Basic Timer1
13.2 Basic Timer1 Operation
The Basic Timer1 module can be configured as two 8-bit timers or one 16-bit
timer with the BTCTL register. The BTCTL register is an 8-bit, read/write
register. Any read or write access must use byte instructions. The Basic
Timer1 controls the LCD frame frequency with BTCNT1.
13.2.1 Basic Timer1 Counter One
The Basic Timer1 counter one, BTCNT1, is an 8-bit timer/counter directly
accessible by software. BTCNT1 is incremented with ACLK and provides the
frame frequency for the LCD controller. BTCNT1 can be stopped by setting the
BTHOLD and BTDIV bits.
13.2.2 Basic Timer1 Counter Two
The Basic Timer1 counter two, BTCNT2, is an 8-bit timer/counter directly
accessible by software. BTCNT2 can be sourced from ACLK or SMCLK, or
ACLK/256 when cascaded with BTCNT1. The BTCNT2 clock source is
selected with the BTSSEL and BTDIV bits. BTCNT2 can be stopped to reduce
power consumption by setting the HOLD bit.
BTCNT2 sources the Basic Timer1 interrupt, BTIFG. The interrupt interval is
selected with the BTIPx bits
Note:
Reading or Writing BTCNT1 and BTCNT2
When the CPU clock and counter clock are asynchronous any read from
BTCNT1 or BTCNT2 may be unpredictable. Any write to BTCNT1 or
BTCNT2 take effect immediately.
13.2.3 16-Bit Counter Mode
The 16-bit timer/counter mode is selected when control the BTDIV bit is set.
In this mode, BTCNT1 is cascaded with BTCNT2. The clock source of
BTCNT1 is ACLK, and the clock source of BTCNT2 is ACLK/256.
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...