Go to advanced search

by Rene_is_I
Sat Jan 05, 2013 10:47 pm
Forum: Advanced users
Topic: Repurpose on board LEDs
Replies: 6
Views: 3602

Re: Repurpose on board LEDs

It may well be that the 3 LEDs outputs on the LAN chip can be configured as general purpose outputs but the problem is that the only way to "talk" to the LAN chip is via USB which adds another layer of complexity. The LAN9512 actually has 8 GPIOs. The first 3 (GPIO 0 to 2) are the 3 leds. Then GPIO ...
by Rene_is_I
Sat Jan 05, 2013 8:51 pm
Forum: Advanced users
Topic: Repurpose on board LEDs
Replies: 6
Views: 3602

Re: Repurpose on board LEDs

Perhaps there is an option in a file somewhere to disable the system outputting to GPIO16 to indicate ACT
which would leave you free to use GPIO16 and hence the ACT Led for what ever you like.
by Rene_is_I
Sat Jan 05, 2013 7:17 pm
Forum: Advanced users
Topic: Discover if headphones are plugged in?
Replies: 9
Views: 4179

Re: Discover if headphones are plugged in?

Just realized now that on my schematics (all 3) I have drawn my ground/s as follows: http://s14.postimage.org/v6vw81nrh/gnd1.jpg Where as on the RPI schematics they are drawn as follows: http://s2.postimage.org/ttiobkrnp/gnd2.jpg They are infact the same and should be connected together like such: h...
by Rene_is_I
Sat Jan 05, 2013 5:55 pm
Forum: Advanced users
Topic: Discover if headphones are plugged in?
Replies: 9
Views: 4179

Re: Discover if headphones are plugged in?

Here is a simplified version using a small NPN transistor. http://s8.postimage.org/dfddqsyh1/RPI_DETECTING_HEADPHONES_simplified.jpg and here is one using just 3 components. Note that this version may not work depending on the input impedence of the RPIs GPIO pins. In this version, only one channel ...
by Rene_is_I
Sat Jan 05, 2013 5:32 pm
Forum: Advanced users
Topic: Discover if headphones are plugged in?
Replies: 9
Views: 4179

Re: Discover if headphones are plugged in?

Hi There is a way to add headphone detection if one is prepared to add a small circuit. The circuit works as follows: A DC offset (limited to 3.3uA) is injected onto the audio lines (left and right) and Schmit triggers also monitor the audio outputs. If no headphones are connected, then there is no ...
by Rene_is_I
Sat Jan 05, 2013 12:11 pm
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

Thanks mark_3094. It may well have inaccuracies but for now it's a good start not only for driver development but also simpler things like detecting if a device (and which type) is connected to a USB port. As regards the wiki, the only down side is if others change/contribute/edit things too eagerly...
by Rene_is_I
Sat Jan 05, 2013 9:56 am
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

Hi mark_3094

Nice piece of work, thank you.
I do however have a question about page 26, is it correct or am I missing something?
It starts off by stating that the BCM2835 sets the direction (first entry) then the BCM numbers
increase up to BCM2850.
Are there that many chips?
by Rene_is_I
Tue Jan 01, 2013 8:23 pm
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

jamesh wrote:
"horse dead a Flogging" - rearrange as necessary.
Can't, algorithm is protected by a NDA and not available. :)
by Rene_is_I
Tue Jan 01, 2013 7:54 pm
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

dwelch67 wrote: Bare metal, that is for folks that are willing to work for their education and results anyway, dont want to take the lazy path. Agreed but there is a limit of what is realistically achievable if the facts and figures are kept secret. It just makes it harder for more people to experim...
by Rene_is_I
Tue Jan 01, 2013 7:01 pm
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

@jamesh

That is good news that Gordon will be working on the USB.
Perhaps he could even publish some sort of API listing which will allow
others to access the hardware.
Surely this would not be infringing on the NDA?
by Rene_is_I
Tue Jan 01, 2013 10:40 am
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

@jamesh

Code: Select all

MyRant:

MOV r4, 0
SWI ReturnFromTangent
B MyRant

OK ;)
Seriously though, I don't want to program and tinker with my N8 but I do with my RPI
but we will leave it at that.
by Rene_is_I
Tue Jan 01, 2013 10:24 am
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

Very interesting info jamesh, thanks. Since I'm not fimiliar with all the Nokia models, do you perhaps know which CPU the new Nokia Windows phones use? By the way, I see that the 808 has a FM transmitter like the N8. Very handy for traffic jams or in stores that play background music from a local ra...
by Rene_is_I
Tue Jan 01, 2013 10:19 am
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

Not a STB processor. It has all the hallmarks of a mobile phone CPU. PoP memory, no Ethernet Mac, camera port, USB OTG port....etc. I think the Nokia N8 phone uses the CPU. R Could very well be as I have a N8 and often wondered why it has a HDMI output but no composite video output like other phone...
by Rene_is_I
Tue Jan 01, 2013 10:09 am
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

@ Chadderz That is exactly the point. SOme RPI users have the capability and know how to reverse engineer, troll thru thousands of lines of code (in the linux source code) and spend countless hours researching online for something when it could have all been avoided if only the documentation was ava...
by Rene_is_I
Tue Jan 01, 2013 6:33 am
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

Surely you mean badly designed?
Just because something is outdated, does not make it bad.
by Rene_is_I
Mon Dec 31, 2012 10:33 pm
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

@jamesh

So let me get this straight, Broadcom bought a crappy design from Synopsis, now they are stuck
with it and can't even release some info so that the community could possibly come up with a
solution/work-around at no cost to Broadcom?

Sounds like a very bad deal to me.
by Rene_is_I
Mon Dec 31, 2012 12:39 pm
Forum: Bare metal, Assembly language
Topic: Implementing a USB Driver
Replies: 86
Views: 23784

Re: Implementing a USB Driver

This whole "cloak and dagger" thing from Broadcom is really irritating me now and am I the only one that thinks it's getting in the way of real progress (not to mention freedom) in using the RPI? As far as I can gather, the chip set used in the RPI was originally designed for set top boxes so I unde...
by Rene_is_I
Thu Dec 27, 2012 6:32 pm
Forum: Bare metal, Assembly language
Topic: DexBasic Source code
Replies: 28
Views: 6257

Re: DexBasic Source code

Thanks Dex, some nice new commands which will be very useful.
by Rene_is_I
Thu Dec 27, 2012 5:59 pm
Forum: Bare metal, Assembly language
Topic: DexBasic Source code
Replies: 28
Views: 6257

Re: DexBasic Source code

@tritonium Absolutely and simply by using a different .inc file, the same Basic code will work with the RPI, X86 Windows and Linux. What would be great is to find a utility that one writes in Basic and it converts it to an ASM text file. A very simple example: A = 200 Goto SomeLabel It would then be...
by Rene_is_I
Thu Dec 27, 2012 3:45 pm
Forum: Bare metal, Assembly language
Topic: DexBasic Source code
Replies: 28
Views: 6257

Re: DexBasic Source code

@devidasbhonde Dex said that he would add IF/THEN/ELSE soon. As far as conditional statements/branching is concerned, there is a simple work around for now using assembler (not that difficult) until it is added into Basic. For example we read a pin from the GPIO (which returns either a 0 or 1 in reg...
by Rene_is_I
Tue Dec 25, 2012 4:28 pm
Forum: Bare metal, Assembly language
Topic: DexBasic Source code
Replies: 28
Views: 6257

Re: DexBasic Source code

Just been thinking that it would be great to have a BEEP command similar to the one on the Spectrum. Something along the lines of: BEEP xxxx (where xxxx is the frequency or 0 to stop). Would be nice to be able to play those simple chiptunes from yesteryear. For example: BEEP 400 delayMicroseconds 30...
by Rene_is_I
Tue Dec 25, 2012 12:56 pm
Forum: Bare metal, Assembly language
Topic: DexBasic Source code
Replies: 28
Views: 6257

Re: DexBasic Source code

Thanks DexOS this is more what should have been released with the Pi from the start,
a simple BASIC which also lets one add commands as one gets better at it and more confident.

Go to advanced search