CY7C63310, CY7C638xx

16. Timer Registers

All timer functions of the enCoRe II are provided by a single timer block. The timer block is asynchronous from the CPU clock.

16.1 Registers

16.1.1 Free Running Counter

The 16 bit free-running counter is clocked by the Timer Capture Clock (TCAPCLK). It is read in software for use as a general purpose time base. When the low order byte is read, the high order byte is registered. Reading the high order byte reads this register, allowing the CPU to read the 16-bit value atomically (loads all bits at one time). The free-running timer generates an interrupt at 1024 μs rate when clocked by a 4 MHz source. It also generates an interrupt when the free running counter overflow occurs every 16.384 ms (with a 4 MHz source). This allows extending the length of the timer in software.

Figure 16-1. 16-Bit Free Running Counter Block Diagram

Timer Capture Clock

16-bit Free

Running Counter

Overflow

Interrupt/W rap

Interrupt

1024µs Tim er

Interrupt

Table 16-1. Free Running Timer Low order Byte (FRTMRL) [0x20] [R/W]

Bit #

7

6

5

4

3

2

1

0

Field

 

 

 

Free running Timer [7:0]

 

 

 

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Default

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

Bit [7:0]: Free running Timer [7:0]

This register holds the low order byte of the 16-bit free running timer. Reading this register causes the high order byte to be moved into a holding register allowing an automatic read of all 16 bits simultaneously.

For reads, the actual read occurs in the cycle when the low order is read. For writes, the actual time the write occurs is the cycle when the high order is written.

When reading the Free Running Timer, the low order byte must be read first and the high order second. When writing, the low order byte must be written first then the high order byte.

Table 16-2. Free Running Timer High-order Byte (FRTMRH) [0x21] [R/W]

Bit #

7

6

5

4

3

2

1

0

Field

 

 

 

Free-running Timer [15:8]

 

 

 

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Default

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

Bit [7:0]: Free-running Timer [15:8]

When reading the Free-running Timer, the low order byte must be read first and the high order second. When writing, the low order byte must be written first then the high order byte.

Document 38-08035 Rev. *K

Page 43 of 83

[+] Feedback

Page 43
Image 43
Cypress CY7C638xx, CY7C63310 manual Timer Registers, Free Running Counter, Free Running Timer Low order Byte Frtmrl 0x20 R/W

CY7C638xx, CY7C63310 specifications

The Cypress CY7C63310 and CY7C638xx series are advanced USB microcontrollers designed for various applications requiring reliable performance and flexibility. These chips are notable for their integration of several key technologies, enabling developers to create innovative electronic designs effortlessly.

The CY7C63310 is a part of the Cypress USB microcontroller family that boasts a fully integrated 8051-compatible microprocessor core. This architecture allows for efficient execution of high-level programming languages like C, enhancing code development efforts. The microcontroller supports USB 2.0 full-speed operation, allowing for high data transfer rates of up to 12 Mbps, essential for applications involving data communication.

One of the standout features of the CY7C63310 is its programmable GPIO (General-Purpose Input/Output) pins, which provide developers with the versatility to configure these pins as inputs, outputs, or alternate functions. This flexibility is particularly advantageous in applications where custom interfaces are essential, such as human-machine interfaces, sensor control, and USB peripherals.

Moreover, the CY7C638xx series presents an even broader array of features. These devices typically support various memory configurations, enabling designers to select from different on-chip RAM and flash memory options. This variety empowers projects requiring a mix of program and data storage capabilities, all while ensuring that performance remains optimal.

Both the CY7C63310 and CY7C638xx series leverage Cypress's EZ-USB technology, which simplifies the process of USB interface implementation. The EZ-USB architecture minimizes the effort associated with USB protocol complexity, allowing developers to focus on the core functionality of their applications.

These microcontrollers also incorporate features such as low-power operation, making them ideal for battery-operated devices. With various power management modes, designers can optimize energy consumption according to the specific needs of their applications.

In terms of connectivity, these chips support multiple interface standards, including SPI, I2C, and UART. These capabilities ensure that developers can easily interface with other components and systems, enhancing the overall utility of the microcontroller.

In summary, the Cypress CY7C63310 and CY7C638xx microcontrollers stand out for their robust features, including integrated USB functionality, flexible GPIO options, and support for various communication protocols. These attributes make them suitable for a wide range of applications, from consumer electronics to industrial automation, making them an excellent choice for developers seeking reliable and adaptable microcontroller solutions.