We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am implementing a project where i have to do some BCD arithmetic.Is there any register in the LPC which which contains the carry flag, like the ones we have in 8051[PSW].Or is there any other method to do it?
Thanks in advance!
The Cortex-M3 core doesn't explicitly support BCD math (two nibbles, half-carry, etc), you'd have to do this more manually using standard ADD/ADC functionality and breaking down the nibbles.
Review ALU design books/papers to understand the basic mechanics here.