Hi again,
I've been wanting to get into microcontrollers for while now.
Initially I wanted to start with AVR/arduino. Compared to PIC they have larger memory, their assembler language is far saner than that of PIC's and the AVR's toolchain is "nicer". There is also the matter of larger userbase and the convenience arduino boards themselves.
However the is one major thing bugging me about AVR chips and that is the lack of a read-modify-write instruction for critical sections of code. AVR only supports this on the larger chips like the AVR32, but with PIC you get it from the PIC12 and upwards IIRC.
I just don't feel comfortable not having a RMW instruction. Sure you can do it in software, but it would not be 100% reliable.
Are my concerns about RMW instructions justified? Or is that too much of an edge case?
Thanks,
Richard
I've been wanting to get into microcontrollers for while now.
Initially I wanted to start with AVR/arduino. Compared to PIC they have larger memory, their assembler language is far saner than that of PIC's and the AVR's toolchain is "nicer". There is also the matter of larger userbase and the convenience arduino boards themselves.
However the is one major thing bugging me about AVR chips and that is the lack of a read-modify-write instruction for critical sections of code. AVR only supports this on the larger chips like the AVR32, but with PIC you get it from the PIC12 and upwards IIRC.
I just don't feel comfortable not having a RMW instruction. Sure you can do it in software, but it would not be 100% reliable.
Are my concerns about RMW instructions justified? Or is that too much of an edge case?
Thanks,
Richard