Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > What is different between IOA & OEA?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



What is different between IOA & OEA?
Moderator:
RSKV

Post Reply
Follow this topic



What is different between IOA & OEA?

dv2 posted on 23 Apr 2013 5:36 PM PST
Top Contributor
113 Forum Posts

 Hi i want handle PORTA of fx2lp-56pin in slave fifo mode. 

More detail, i want make what PORTA.0 is output and PORTA.1 is input. 

But i don't know how am i supposed to make configuration in F/W. 

Also, could you please let me know what is different between OEA and IOA?

 




Re: What is different between IOA & OEA?

NIKL posted on 24 Apr 2013 10:02 PM PST
Cypress Employee
148 Forum Posts

 dv2

IOA and OEA are clearly explained in FX2LP TRM.

This information is present in the TRM in page173:

The EZ-USB has up to five 8 bit wide, bidirectional I/O ports.

Each port is associated with a pair of registers.

■ An ‘OEx’ register. It sets the input/output direction of

each of the 8 port pins (0 = input, 1 = output).

■ An ‘IOx’ register. Values written to IOx appear on the

pins configured as outputs; values read from IOx indicate

the states of the 8 pins, regardless of input/output

configuration.



Re: What is different between IOA & OEA?

NIKL posted on 24 Apr 2013 10:33 PM PST
Cypress Employee
148 Forum Posts

 In your case:

By default all port pins are in input state, so to chnage PA.0 to output, use

OEA|=0x01

The value you write to IOA will appear on output pin, for example to output 1 on PA.0, use

IOA|=0x01

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20