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.
Hi Guys, can someone point me in the right direction for assembler programming on the STM32F103. I've been programming ATmega chips for years now in Assembler and now have started on ARM. I just love the instructions like this ADD R0,R0,R1 So easy :)
So any assembler references, listing etc would be much appreciated.
Also, how would I go about switching bits on ports ON & OFF?
On ATmega the syntax is SBI PORTD,PD1 ; SetBit - turns on bit 1 on port D CBI PORTD,PD1 ; ClearBit - turns off bit 1 on port D
btw, I'm not a C programmer.
Thanks guys Pete
Indeed.
So the answer to your question, "how would I go about switching bits on ports ON & OFF?" has nothing specifically to do with Assembly.
For that, you need to study ST's RM0008 Reference manual - which gives detailed descriptions of all the STM32F103xx peripherals and their registers...