dharanivel
Posts: 33
Joined: Sun Dec 16, 2018 4:36 am

led was glowing dim

Sat Jan 05, 2019 1:42 pm

Code: Select all

globl gpiobase
gpiobase:
ldr r0,=0x20200000
mov pc,lr

.globl funset
funset:
bl gpiobase
mov r1,#1
lsl r1,#12
str r1,[r0,#0]
lsl r1,#3
str r1,[r0,#0]
lsl r1,#3
str r1,[r0,#0]

.globl gpioset
gpioset:
bl gpiobase
mov r1,#1
lsl r1,#4
str r1,[r0,#28]
lsl r1,#1
str r1,[r0,#28]
lsl r1,#1
str r1,[r0,#28]
in raspberry pi zero
i connected leds to the gpio 4,5,6. the gpio 4th pin led is glowing brighter but the gpio 5th and 6th pin leds are glowing very dim.
please help me

Return to “Bare metal, Assembly language”