Mouse

rupt API to this module is not used. See the SPI Module on page 40 for how this module is used to implement communication with multiple devices on the SPI bus.

3.3.2.3Programmable Interval Timer User Module

The Programmable Interval Timer User Module is configured to use the Internal 32-KHz Low-power Oscillator. This module is used to provide a periodic interrupt to the timer code module in order to maintain a power saving millisecond sleep routine. The period of the timer is calibrated to the system clock at power on in order to provide a period of about 250 µs. This calibration is performed to account for variations in temperature and ILO variances from part to part. Configured the module to generate a terminal count interrupt. The period parameter is ignored since it is programmed at run time based upon the calibration results. See the Timer Module on page 41 for more details on cali- bration

3.3.2.4Flash Security

The PSoC Designer mouse project has a file called FlashSecurity.txt. This file specifies access rules to blocks of the Flash ROM. Refer to the documentation at the top of the file for definitions. This file is shipped with a single change from its default configuration. The block starting at hex address 1FC0 has been changed from W: Full (Write protected) to U: Unprotected. This location of Flash has been dedicated to saving non-volatile configuration values for the protocol code module (refer to the Protocol Module on page 41). Note When building the mouse firmware, be sure to check that the text image size does not occupy this block.

3.3.3Model

Figure 3-6. Firmware Architecture Model

 

Common

debounce

spi

flash

radio driver

 

protocol

 

poll

PSoC Lib

 

tick

timer

GPIO

isr

 

Application

mouse

optical

 

battery

testmode

buttons

mfgtest

wheel

CY4672 Reference Design Guide, Document # 001-16968 Revision **

39

[+] Feedback

Page 39
Image 39
Cypress CY4672 manual Model, Programmable Interval Timer User Module, Flash Security