Hi, please where to start with inline assembly programming for PSoC4. Any examples or application notes? Regards, Viktor
I cannot suggest to use assembly for ARM processors. The availlable C-compilers are optimizing pretty well and the 3-address-assembly is rather complicated. Can you be a bit more specific and tell us what you would like to perform with assembly-code that will not work in C?
This might be of some help to you -
Many thanks Bod and Dana for the tips. Now I search/test the ways how to set/reset single or multiple PSoC4 IO pins as quick as possible. Cypress API library works OK, but I hope that for digital/time measurements quicker solution may exist. Regards, Viktor
.... There are two possible reasons why you want to use assembly language.
- First is, that C is limited when we are getting closer to the hardware. E.g. there's no C statement for directly modifying the processor status register.
- The second reason is to create highly optimized code. No doubt, the C code optimizer does a good job, but the results are far away from handcrafted assembler code.
Typically when talking about performance and PSoC, think about how to solve the problem in hardware instead of software. So what is the problem you're trying to solve? Can you do it in hardware instead of relying of setting multiple pins at once (which can be done btw. by setting the affected pins as 'contiguous').
PSOC GPIO discussion, toggling speed discussed on page 9 -
Hi, Dana the AN72382 is really nice source of information.
I have collected some experimental data from real PSoC4 measurement. The project including with data as comments in main.c attached as Achive.
I can not toggle the IO pin on higher frequency than cca 300 kHz. Is is normal or there is an embedded mistake .......
Problems with file atattchment ....