Keil Logo

C51: PROGRAMMING THE CYPRESS CY3671 FOR GPIF ACCESS


Information in this article applies to:

  • C51 Version 6 and Later

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

  • Refer to Application Note 162 which shows how to program and debug applications with the Cypress EZ-USB Board and the Keil development tools.

SEE ALSO

Last Reviewed: Saturday, July 9, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.