ARM Technical Support Knowledge Articles

PROGRAMMING THE CYPRESS CY3671 FOR GPIF ACCESS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

When using the Cypress EZ-USB FX CY3671, how can I read and write to the GPIF configuration registers to access the general purpose FIFO's (memory from X:0x7800-0x7B3F). In particular, I am trying to write and read to the AINPF register.

ANSWER

Follow these steps to write or read the AINPF register:

  1. Make sure you are in the slave FIFO mode (IFCONFIG is set to 0x03) .
  2. Make sure that you are not using the memory window to change the variable value at the location (AINPF in this case). The registers at address locations 0x7800 and greater are not general purpose RAM in the CY3671. Reading certain registers have some triggering effect on values of other registers.
  3. Use the "Watch and Call Stack" window and add the specific watch variable (ANPIF) in the watch#1 window. Then you may change (write to) the ANPIF or read from (watch) the ANPIF.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-09 09:49:47

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential