CY3242-IOX Cypress Semiconductor Corp, CY3242-IOX Datasheet - Page 6

Development Kit

CY3242-IOX

Manufacturer Part Number
CY3242-IOX
Description
Development Kit
Manufacturer
Cypress Semiconductor Corp
Series
PSoC®r
Datasheets

Specifications of CY3242-IOX

Silicon Manufacturer
Cypress
Application Sub Type
Expander
Kit Application Type
Interface
Silicon Core Number
CY8C9520, CY8C9540 And CY8C9560
Features
I2C Port Expander Evaluation Kit
Main Purpose
Interface, GPIO Expander
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
CY8C9520, CY8C9540, CY8C9560
Primary Attributes
8-Bit 60-Port GPIO Expander
Secondary Attributes
3 Momentary Switches, Speaker, 56 LEDs, 7-Seg LED
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
428-1911
Demonstration Example Scripts
Code 1. Script 1
1 kHz tone to speaker. U2 address is 0x40. Jumper U2 - GP1[3] must be installed.
s40 28 00 04 25 10 2
s40 09 08
s40 18 01
s40 1c 00
s40 1a 08
s40 21 08
Code 2. Script 2
Read buttons state. U2 address is 0x40. Jumpers U2 - GP1[0], GP1[1], and GP1[2] must be installed.
s40 09 00
s40 18 01
s40 1c ff
s40 1e ff
s40 01
s41 01 x
Code 3. Script 3
Turn on external outputs. U2 address is 0x40. Jumpers U2 - GP1[4] and GP3[0] must be installed.
s40 09 10
s40 18 01
s40 1c 00
s40 21 10
s40 0b 01
s40 18 03
s40 1c 00
s40 21 01
See the I
September 13, 2006
2
C Port Expander Data Sheet for more details about configuration.
;select and configure PWM
;select output port register
;select the Gport to be configured
;configure port as output
;connect port to PWM output
;select strong drive mode
;write to port zero
;select the Gport to be configured
;set the port direction to input
;select resistive pull down drive mode
;start reading
;repeat this line to continuously read button state
;set bit 4 port 1
;select the Gport1 to be configured
;set the port direction to output
;select strong drive mode
;set bit 0 port 3
;select the Gport3 to be configured
;set the port direction to output
;select strong drive mode
Rev. **
CY3242-IOX
- 6 -

Related parts for CY3242-IOX