I need a little digital io for my project since cortex-m is not economical for me I need to know can i use Cortex-a to do some embedded jobs?
Yes you can do. Why not? But you need to connect external RAM and Flash-Memory. The evaluation-process needs much longer and is not trivial.
You just have to find a Version that has the Periphials needed by your Project.
Btw.: The Periphials are "Vendor"-made. For example the AMlogic S905 has no SPI, While Broadcom BCM2837 has(both are Cortex-A53). But thats the same for the Cortex-M-series.
Why is a cortex-M not economical? Consider the costs for RAM and Flash-Memory. And design & layout a DDR-RAM-Interface is not that easy .
Because with equal price you could have more processing power than a Cortex-M.The only benefits of cortex-m is having industrial interfaces like can and etc.
I had worked on external Rams with Arm9 and LPC2478 it was not that hard.
Because i didn't work with Cortex-A yet,I dont know if i can programming Cortex-A like Cortex-M with C language?Could i rewrite my X86 assembly programs for Arm?
I hope you don't have too much x86 to convert! I assume you mean straightforward x86, no SIMD, but in any case it is worth looking at converting to C instead and even for SIMD there are intrinsics one can use in C on ARM to do that.
If you are determined to do an assembler conversion there are a number of differences but mostly they are of the known unknowns kind. One particular gotcha on the line of things you may know but it ain't so is how the carry flag works. See Carry flag - Wikipedia, the free encyclopedia for a description of the difference.
See Carry flag - Wikipedia, the free encyclopedia for a description of the difference.
sjdaliyan, the pertinent operation is subtraction.
View all questions in Embedded forum