Go to advanced search

by strebor27
Thu Oct 10, 2013 7:37 pm
Forum: Bare metal, Assembly language
Topic: set gpio drive strength
Replies: 2
Views: 4590

set gpio drive strength

I've been searching for a few days now but it has been unsuccessful. How do you set the output strength of a gpio pin? at current I am using gpio 24, a multimeter indicated a current of about 40ma (think this is due to only the 1 pin being in use). I want to be able to adjust it to about 10ma
by strebor27
Thu Oct 03, 2013 10:58 pm
Forum: Bare metal, Assembly language
Topic: baking pi: external led
Replies: 8
Views: 1711

Re: baking pi: external led

hey any idea how I would go about setting the pin drive strength. I read that the default is 8mA. each pin is 3 bits so instead of setting the pin to 001 would you change its strength with a different value like 011?
by strebor27
Sun Sep 29, 2013 8:36 pm
Forum: Bare metal, Assembly language
Topic: baking pi: external led
Replies: 8
Views: 1711

Re: baking pi: external led

yep thats it, got it working :D .

cheers for your help

Do you know how many amps is in the output of the gpio pins?. trying to figure out what type of transistor I will need to drive a small dc motor.
by strebor27
Sat Sep 28, 2013 10:37 pm
Forum: Bare metal, Assembly language
Topic: baking pi: external led
Replies: 8
Views: 1711

Re: baking pi: external led

ok thanks your right I was getting confused with the GPIO pins. I agree, your code looks right, I ran it but it still did not light the LED. found this table, I understand that I have to turn the pin on at location 0x2020 0008 then clear the pin at 0x2020 0028 but what if I was to set pin 24 at addr...
by strebor27
Sat Sep 28, 2013 7:18 pm
Forum: Bare metal, Assembly language
Topic: baking pi: external led
Replies: 8
Views: 1711

Re: baking pi: external led

p1 header: 18

GPIO 24
by strebor27
Sat Sep 28, 2013 5:07 pm
Forum: Bare metal, Assembly language
Topic: baking pi: external led
Replies: 8
Views: 1711

baking pi: external led

I have completed the baking pi tutorials and started on my own projects. At the moment I am just trying to switch a led on via GPIO PIN 24 (18). this is very simple but I am obviously doing something wrong. is either my code or circuit incorrect? I first used the baking pi lesson 01 code and had my ...

Go to advanced search