Push-Button on AT91SAM7S256

Jun 27, 2007 1 Replies

Hello NG,



i a very new to microcontrollers. The last weeks i have connected a HD44780 Display on my ARM, which works perfectly! Now i want some User- Interactivity via a Pushbutton. I can=B4t figure it out, how to manage it. This is what i am doing:



ldr r0, =3D0xFFFFF400



button: ldr r1, [r0, #0x08] and r1, r1, #10000000000000000000b cmp r1, #10000000000000000000b bne button



It doesn=B4t work. Has anybody some example for me? Thanks a lot for any hint! Peter



Hi Guys!

now it works! i have added the following code at top:

ldr r0, =0xFFFFFC00 ldr r1, =0xFFFFFFFF str r1, [r0, #0x10]

Buy!

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required