Push-Button on AT91SAM7S256

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

Reply to
Peter Pippinger
Loading thread data ...

Hi Guys!

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

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

Buy!

Reply to
Peter Pippinger

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.