Cypress Perform

Home > Support
support.cypress.com     Bookmark and Share
Support

Knowledge Base Article



Accessing Accumulator in C

Last Updated: 12/05/2010

In PSoC Designer, is it possible to access the accumulator in C?

There is no direct method to access the accumulator in C.  But it may be accessed by using inline assembly.  For example, to write a value to Accumulator:

asm (“mov A, 05”);

For more info on inline assembly, refer the ‘C Language User Guide’ in the Help >> Documentation menu in PSoC Designer.


Related Categories: USB Low-Speed Peripherals, CapSense® Controllers, PowerPSoC® Power Controllers, RF Companion Microcontrollers, USB Full-Speed Peripherals, EZ Color™ HB LED Controllers, PSoC® 1




Provide feedback on this item to help us improve:

How likely are you to recommend this article to a friend or colleague?

Not at all likely
0
1
2
3
4
5
6
7
8
9
10
Extremely likely

Was this item helpful?
Yes
No
Maybe


Additional comments:

Email:

Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 12/05/12