Silicon Laboratories C8051F343, C8051F347, C8051F346 Serial Ports, Programmable Counter Array

Models: C8051F346 C8051F347 C8051F344 C8051F342 C8051F343 C8051F345 C8051F340 C8051F341

1 282
Download 282 pages 2.89 Kb
Page 27
Image 27

C8051F340/1/2/3/4/5/6/7

1.7.Serial Ports

The C8051F340/1/2/3/4/5/6/7 Family includes an SMBus/I2C interface, full-duplex UARTs, and an Enhanced SPI interface. Each of the serial buses is fully implemented in hardware and makes extensive use of the CIP-51's interrupts, thus requiring very little CPU intervention.

1.8.Programmable Counter Array

An on-chip Programmable Counter/Timer Array (PCA) is included in addition to the four 16-bit general pur- pose counter/timers. The PCA consists of a dedicated 16-bit counter/timer time base with five programma- ble capture/compare modules. The PCA clock is derived from one of six sources: the system clock divided by 12, the system clock divided by 4, Timer 0 overflows, a dedicated External Clock Input (ECI), the sys- tem clock, or the external oscillator clock source divided by 8. The external clock source selection is useful for real-time clock functionality, where the PCA may be clocked by an external source while the internal oscillator drives the system clock.

Each capture/compare module can be configured to operate in one of six modes: Edge-Triggered Capture, Software Timer, High Speed Output, 8- or 16-bit Pulse Width Modulator, or Frequency Output. Additionally, Capture/Compare Module 4 offers watchdog timer (WDT) capabilities. Following a system reset, Module 4 is configured and enabled in WDT mode. The PCA Capture/Compare Module I/O and External Clock Input may be routed to Port I/O via the Digital Crossbar.

 

SYSCLK/12

 

 

 

 

 

 

SYSCLK/4

 

 

 

 

 

 

Timer 0 Overflow

PCA

16-Bit Counter/Timer

 

 

 

 

 

 

 

 

ECI

 

CLOCK

 

 

 

 

 

 

 

 

SYSCLK

 

MUX

 

 

 

 

 

 

 

 

 

 

External Clock/8

 

 

 

 

 

 

Capture/Compare

Capture/Compare

Capture/Compare

Capture/Compare

Capture/Compare

 

Module 0

 

Module 1

Module 2

Module 3

Module 4 / WDT

ECI

CEX0

 

CEX1

CEX2

CEX3

CEX4

 

 

 

Crossbar

 

 

Port I/O

Figure 1.8. PCA Block Diagram

Rev. 0.5

27

Page 27
Image 27
Silicon Laboratories C8051F343, C8051F347, C8051F346, C8051F341, C8051F340, C8051F344 Serial Ports, Programmable Counter Array