CP2400DK Silicon Laboratories Inc, CP2400DK Datasheet - Page 97

KIT EVAL SPI LCD DRIVER CP2400

CP2400DK

Manufacturer Part Number
CP2400DK
Description
KIT EVAL SPI LCD DRIVER CP2400
Manufacturer
Silicon Laboratories Inc
Datasheets

Specifications of CP2400DK

Main Purpose
LCD Development
Embedded
Yes
Utilized Ic / Part
CP2400
Primary Attributes
I²C, SMBus Interfaces
Secondary Attributes
Up to 128 segments
Product
Microcontroller Modules
Core Processor
C8051F930
Clock Speed
20 MHz
Interface Type
SPI
Timers
2
Operating Supply Voltage
1.8 V to 3.6 V
Cpu Core
C8051F930
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
336-1858
336-1858
CP2400/1/2/3
13.2.1. Timer 1 SmaRTClock Oscillator Capture Mode
The Capture Mode in Timer 1 allows the SmaRTClock oscillator period to be measured against the system clock d
by 12. Setting TF1CEN to 1 enables the SmaRTClock Oscillator Capture Mode for Timer 1.
When Capture Mode is enabled, a capture event will be generated every 8 SmaRTClock oscillator cycles. When
the capture event occurs, the contents of Timer 1 (TMR1H:TMR1L) are loaded into the Timer 1 reload registers
(TMR3RLH:TMR3RLL) and the T1F interrupt flag is set (triggering an interrupt if Timer 1 interrupts are enabled).
By recording the difference between two successive timer capture values, the SmaRTClock period can be
determined with respect to the system clock divided by 12. The system clock divided by 12 should be much faster
than the SmaRTClock to achieve an accurate reading.
For example, if T1XCLK = 0b, and TF1CEN = 1b, Timer 1 will increment every 12 system clock cycles and capture
every 8 SmaRTClock cycles. If the system clock is 24.5 MHz and the SmaRTClock is 32.768 kHz, the difference
between two successive captures should be approximately 498 counts. Knowing the system clock frequency, the
SmaRTClock frequency can be estimated as:
(SYSCLK x 8 / 12) / Counts = (24500000 Hz x 8 / 12) / 498 = 16333333 / 498 = 32797 Hz.
This mode allows software to determine the SmaRTClock oscillator frequency when the SmaRTClock oscillator is
being used in self-oscillate mode without a crystal.
TCLK
TR1
TMR1L
TMR1H
SYSCLK / 12
Capture
TF1CEN
TMR1RLL TMR1RLH
Interrupt
SmaRTClock / 8
Figure 13.3. Timer 1 Capture Mode Block Diagram
Rev. 1.0
97

Related parts for CP2400DK