full control of cpu

26 Sep 2010

Hi,

Is it possible to get full control /full configuration of the cpu using the mbed compiler? Or is one limited to the features available through the mbed library? Are there examples out there on how to take full control of the cpu? E.g I'd like to configure the ADC for 100kHz operation using the DMA.

Thank you very much,

 

26 Sep 2010 . Edited: 26 Sep 2010

Sure, you can go and poke the registers; you'll obviously need a bit more experience to do this, but should be able to get the results you are after. The libraries mean the common case easy, but for the bit of the project that doesn't fit these, you can write your own specialist drivers to work along side them.

I just searched the forum and found this ADC driver by Simon Blandford which may be a useful starting point:

Hope that helps,

Simon

26 Sep 2010

Ok, I understand. It's just not that well documented. But it's possible to put pieces together with the mbed schematic + header files + LPCxxx data sheets + ARM compiler information.

Thank you

26 Sep 2010

Hi Daniel,

Yeah, the details you need for low level fiddling are there but as you say, not all in one place. Perhaps we should start a ninja forum + cookbook for the guys like you pushing the limits? I'd be happy to set one up as a place for discussing and collecting info on this sort of thing, assuming people know it'll have to be a group effort to fill in this stuff.

Perhaps you can start some notes in a notebook page based on what you needed to work out and what you get to to help kick things off, and we'll setup a dedicated forum next week.

Simon

26 Sep 2010

Hi,

I'm soon to publish my project that uses every pin on the Mbed (except IF+/-) and uses nearly every peripheral in the LPC1768 and it's done entirely using LPC17xx.h The code so far exceeds 60 .c/.h files and it's well documented. But I'd like to see maybe a forum. Not sure a cookbook for such projects is good idea though as that would tend to push those projects out of mainstream view and they'll often contain info that may be of use to others. Would be nice if we could have a standard "tag" we all used for such projects.

--Andy

27 Sep 2010
user avatar Simon Ford wrote:

Hi Daniel,

Yeah, the details you need for low level fiddling are there but as you say, not all in one place. Perhaps we should start a ninja forum + cookbook for the guys like you pushing the limits? I'd be happy to set one up as a place for discussing and collecting info on this sort of thing, assuming people know it'll have to be a group effort to fill in this stuff.

Perhaps you can start some notes in a notebook page based on what you needed to work out and what you get to to help kick things off, and we'll setup a dedicated forum next week.

Simon

Hi Simon,

If you have too much traffic in the forum I would rather split it up into technical sub-categories. Eg. usb/eithernet/adc/dac and so forth. I think having a beginner/expert forum doesn't work too well, in the end, who is an expert? So you end up looking in both forums anyways to find the information you need. A cookbook on low level topics seems to make sense. At least it should contain links to relevant documentation. However in the end it's simply a matter of investing the time to understand the LPC17xx device, there's no way around it.

27 Sep 2010

Daniel,

Agree about the forums. Splitting out a "techie" or "ninja" type forum would actially, imho, only take useful information away from the people we'ed prefer to see it. People are capable of "instant filtering" things they're not interested in, no need to impose a "filter".

But regarding the sub-categories. When starting a new forum thread you have the chance to enter tags. It maybe at this point that we could arrange for some standard set of tags we can use. At the moment it seems tagging is "free form". It may be useful to add a drop-down of fixed tags to help group relevent posts together.

Failing that, you could open up forum moderation to a few extra trusted users who can help maintain posts by retagging errant or misplaced posts in a similar manner that many Open Source based community projects do. Just my 2p worth.

--Andy