Cypress CY3242-IOXlite Manual de introducción - Página 11
Navegue en línea o descargue pdf Manual de introducción para Extensor Cypress CY3242-IOXlite. Cypress CY3242-IOXlite 19 páginas. I2c port expander lite demo kit
3. Configure Port Expander internal resources. To do this we must generate two output signals on pins
P1[0] and P1[1]. The signal frequencies are 1 Hz and 4 Hz, respectively. For this purpose we utilize
three PWMs, and two pins and the clock divider resources. Also, the EEPROM must contain the "Hello
world!" text string placed at address 0x0000. Follow these steps:
a. Click the PWM Clock Sources on the device image to select it. The relevant resource properties
are shown in the Properties window.
b. Enter DIVIDER value equal to 128. This can be done either in the Properties window or directly on
the DIVIDER space of PWM Clock Sources.
c. Click on the PWM0 resource and define its properties as follows:
Clock:
IntLogic:
Period:
PulseWidth:
Note that the Clock, Period and PulseWidth properties can be defined directly in the corresponding
areas of PWM0 resource.
d. Click on the PWM1 resource and define its properties as follows:
Clock:
IntLogic:
Period:
PulseWidth:
I2C Port Expander Lite Demo Kit Getting Started Guide
cv_Divider
Falling_Edge
183
91
cv_PrevPWM
Falling_Edge
2
1
11