Show Posts
Pages: [1] 2 3 ... 590
1  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 08:09:42 pm
Quote
would it be possible to use the Arduino IDE ( for Arduino DUE ) to compile the code for the LPC810 ?
Not as it is, I think you would have to add your own variant file and core libraries but that's not an area I'm very familiar with.

@Bob/Chris, is it worth trying to develop an LPC Arduino port that will support several versions of LPC? It's certainly been an interest of mine but TBH I'm probably more HW than SW. I can certainly write code (was employed to do so for many years) but it's the toolchain stuff and organisation of files to allow all different CPUs that I struggle with.

______
Rob
2  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 07:27:38 pm
OK, I remember there was a thread on the forum about getting the free IDE to work with C++, it's been a while now. IIRC it was just an option somewhere although I thought you had to point the IDE to your own makefile but maybe not. Either way the GCC compiler was the same.

I actually had a big winge to NXP about the fact that you had to pay for C++ when on other platforms like Arduino it was the default and free. Next thing I know I get asked to beta test the latest (at the time) IDE with C++ support, but by then I had lost interest.

______
Rob
3  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 06:37:53 pm
It always was possible to use C++ if you were happy to dick around with makefiles, I even think you could still use the IDE, but that was too much like hard work for me so I use the LPCXpresso environment and dev boards, really simple almost turnkey operation.

I haven't looked at the LPC range for a while, I just noticed the new LPC11U68, what a great chip and there's a Xpresso dev board for it with Arduino headers.

I may revisit my LARD framework with a view to converting to C++ and getting it running on this and also smaller chips like the LPC1114FN28 you mentioned Chris. It's a bit heavy on resources though, dunno if it will fit, I'll check out that chip now.

Meanwhile I'm grabbing the latest LPCXpresso IDE.

______
Rob
4  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 08:45:49 am
I have a couple of pages describing the API here

http://lard.robgray.com/index.php

I haven't done anything with this for maybe a year two years. The source is in a Git repo somewhere, it's not even at alpha state and not really for public consumption but if you want to have a look I can find the URL.

______
Rob
5  Development / Other Software Development / Re: Cosa: An Object-Oriented Platform for Arduino programming on: September 16, 2014, 08:27:06 am
Interesting about the new for-loop syntax. I was an early adopter of C++ all those years ago but have hardly touched it since. I should get back into it.

______
Rob
6  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 05:46:24 am
Nice job from what I can see.

I'm a big fan of the LPCs and have also done an Arduino port (to the 1227). I too used C rather than C++ because at the time the C++ compiler cost $256. It's now free and I have a rewrite on my todo list.

______
Rob
7  Community / Bar Sport / Re: Strings or woodwinds? on: September 16, 2014, 05:09:02 am
It doesn't lead to misconceptions because it's common practice to refer to a null-terminated array of char as a string.

We refer to bytes and that's not an official type.

These (and probably other) terms are just shorthand or jargon.

Maybe it confuses beginners but so what, the whole damn language confuses most people smiley

______
Rob
8  Community / Bar Sport / Re: Who hasn't accidentally touched a mains voltage once or twice? on: September 15, 2014, 09:04:52 am
Many times, two bad ones though.

Underneath my house I grabbed the bare end of a wire I was running under the floor. I "knew" that the other end was not connected, wrong. To make matters worse I had bare feet on damp ground.

Luckily my arm muscles were stronger than my finger muscles and the wire was short, so my arm pulled my grip from the wire. I had burn holes all along one finger for ages.

Next time I was changing a light fitting, I used to often leave the wires hot for simple jobs because it's such a pain to reset all the digital clocks smiley Normally I used a screw driver with an insulated shaft but not this time, the shaft was hot and I touched it. My triceps contracted and I threw the screwdriver across the room, it embedded into the wall not far from my missus.

For years now I've been in the habit of brushing any mains wire with the back of my fingers before working with it, just in case.

______
Rob
9  Using Arduino / Project Guidance / Re: What circuitry would you recommend to run two DDS with one Arduino? on: September 14, 2014, 06:16:45 pm
I just had a look at the tutorial, it seems very clear but it's not about using SPI, it's about using shiftIn(). So select whatever pins you like for clock/latch/dataPin.

That said, after a quick look at the 4021 data sheet I think MISO would go to pin 3 (Q8), SCK would go to pin 10, and your CS (not SS) would go to pin 9.

______
Rob
10  Using Arduino / Programming Questions / Re: How does this code snippet work? on: September 13, 2014, 05:51:37 pm
Quote
The first Serial.print with the ternary condition is what I can't understand.
If the value being printed is < 10 print a '0' before printing the value.

Quote
Since the first operation prints a space every iteration regardless of data,
No it doesn't, see previous paragraph. Only ABCDEF hex values will print a space. Strike that, I just noticed the space in front of the 0.

On the surface that looks like a bug, I think it should print nothing if the value is > 9. But I don't know the context of this function.

EDIT: It seems that all bytes should have a space inserted, as this is an ID being printed maybe the author is relying on knowledge of the constituent byte values to insert spaces to make it more readable, IE he knows that every 4th value is > 10 and all the others are < 10. What are some typical values?

Bugger, I just noticed it's < 0x10 not < 10, don't pay me no mind smiley

______
Rob
11  Using Arduino / Project Guidance / Re: How does the mega2560 distinguish between a sketch upload and serial monitor on: September 13, 2014, 05:40:14 pm
Yep, if you don't reset the board it will never enter the bootloader with anything you do.

______
Rob
12  Using Arduino / Project Guidance / Re: What circuitry would you recommend to run two DDS with one Arduino? on: September 13, 2014, 11:07:20 am
Yep.

______
Rob
13  Using Arduino / Project Guidance / Re: What circuitry would you recommend to run two DDS with one Arduino? on: September 13, 2014, 09:27:18 am
Quote
Should I use MOSI and SCK for in shifts and use SS pins to choose between two or should I use any user-determined digital pins to read inputs of in-shifts?
You can use SPI or shiftIn/Out, it's up to you. SPI will be a lot faster.

Quote
My program will scan encoders for a period of time after change has been detected.
Sounds a bit suss to me, but if you're happy it will work...

______
Rob
14  Using Arduino / Project Guidance / Re: What circuitry would you recommend to run two DDS with one Arduino? on: September 12, 2014, 06:13:57 pm
Are these absolute or incremental encoders? Because I would think that trying to handle 4 incrementals via a shift reg would be an issue, and if you only read them when a button is pressed can you determine the direction they were turned?

Quote
How are those two modules synched in this circuit?
What keeps clocks from runningat slightly different speeds?
I gather you are referring to the fact that the CLK pins on both chips are note connected? They are driven by the Arduino so it's up to you the keep them the same. That said if you want them to be identical just join them together.

You connect most shift registers to either SPI or use any pins and shiftIn().

______
Rob
15  Development / Other Software Development / Re: Cosa: An Object-Oriented Platform for Arduino programming on: September 12, 2014, 05:53:20 pm
Quote
Last time I used a logic analyzer was back in the late 80'ies/beginning of 90'ies.
Me to, and then they were a big purchase even for a company. We live in fun times.

______
Rob

Pages: [1] 2 3 ... 590