Home    Bloggers    Messages    Resources
Tw  |  Fb  |  In  |  Rss
Fuse Bits

Embracing the ARM M0: Hardware

Duane Benson
Newest First   Oldest First   Threaded View
Page 1 / 3   >   >>
cshore
cshore
12/11/2012 5:22:51 AM
User Rank
Bit twiddler
Migrating from PIC to Cortex-M
I recently produced an Application Note covering some of the issues involved with migrating a software project from PIC controllers to devices based on the Cortex-M cores. On infocenter.arm.com, look for AN234 under "Migrating to ARM" in the "Application Notes and Tutorials" section.


Feedback welcome!

 

Chris

50%
50%
duanebenson
duanebenson
12/6/2012 8:10:38 PM
User Rank
Blogger
Two wire SWD
It works fine as just a two-wire interface, or three with Reset.



Now all I have to do is stop Eclipse from driving me nuts.

50%
50%
duanebenson
duanebenson
12/5/2012 10:46:48 PM
User Rank
Blogger
Re: What's the project
Afritgo - The timing is good because I'm in the middle of updating a number of my boards. If I wasn't already doing that, the economics might be a bit different.

50%
50%
afritgo
afritgo
12/5/2012 1:06:09 PM
User Rank
Word wizard
Re: What's the project
@Duane, >> I can use these in a lot of my other projects. I'd like to convert several of my motor controllers over to the M0.

The total cost of taking these units out and having a new system, does it measure up? Is your concern space, ergonomics or just that you have the capacity to try new things. This has been my challenge - updating old designs with new things that keep changing demands a lot of thought-processes.

But notice that you can make a motor controller with period or velocity counting using incrementatal encoder (just a photo transistor) and do away with the PWN based PIC strategy.

50%
50%
Massimo Manca
Massimo Manca
12/5/2012 12:20:51 PM
User Rank
Blogger
Re: RESET
In practice RESET pin is not needed to debug but it is needed to program the flash memory and then restart the microcontroller so, ARM didn't count the RESET pin as necessary for debug purposes :-).

50%
50%
halherta
halherta
12/5/2012 12:17:02 PM
User Rank
Program Manager
Re: SWD is a 2-pin Debug interface
Circuitman & Duane,

the M4K architecture has more processing power (The increase in clock speed from 40MHz-> 50MHz is great! thanks for the info!) than cortex-M0 and M3 architectures. But its not as power efficient...primarily due to Microchip's 0.18u Fabrication technology. I also find that the interrupt latency on the PIC32 is worse than on the M0 chips.

A PIC32MX220 with 32K of Flash and 8K of SRAM  + USB costs around the same in 100+ quantities as the lpc1114 (newark)


The Dev tools available for both parts are about the same (PIC32MX now has C++ support while LPCXpresso doesn't...but I doubt that will be a major selling point to many developers)

Microchip has licensed the newer M14Kc MIPS architecture from MIPS a while back. I also doubt that MIPs technologies will be going anywhere even with it being up for sale.

Ofcourse If you want to get in on the ARM movement then go with ARM. With the PIC32 I'm not so much as choosing MIPS over ARM (I still love my RaspberryPi, BeagleBone, Pandboard e.t.c.) as I'm choosing Microchip over other silicon vendors. My main reason for that choice is that Microchip makes packages that are easy to hand solder (PDIP, SOIC and 0.8mm QFP) with a high level of peripheral integration and lots of flash and ram memory.

 

50%
50%
duanebenson
duanebenson
12/5/2012 11:07:37 AM
User Rank
Blogger
RESET
I've read conflicting information on the need for the RESET line to go through. One piece of documentation says that RESET is mandatory for the LPC11XX parts, but I was running and debugging without it. I've also read that it only needs the data, clock and ground lines. Does anyone have a definitive answer?

50%
50%
duanebenson
duanebenson
12/5/2012 3:22:08 AM
User Rank
Blogger
Re: SWD is a 2-pin Debug interface
Circuitman - I like that upgrade path with the Arm chips. The PIC32 may be a good chip, but if it's the top of it's line, you'd have to move to a new architecture anyway for additional performance.

50%
50%
circuitman
circuitman
12/4/2012 11:48:38 PM
User Rank
System supervisor
Re: SWD is a 2-pin Debug interface
@halherta:

         PIC32MX2xx now runs at 50MHz, offering more performance (MIPS M4K) and rich peripheral mix than NXP LPC1100. But LPC1100 overtakes PIC32 in power, price, tools availability and a solid future/upgrade roadmap. Those are all the deciding factors while i was considering a shift from 8-bit to 32-bit, back in 2009. The winner is ofcourse LPC1100.

      With MIPS at its core, don't know whether PIC32 has a future roadmap especially after the recent news that MIPS processor company is on sale. Is there any?

50%
50%
duanebenson
duanebenson
12/4/2012 10:19:30 PM
User Rank
Blogger
Re: Forget that 25$ board
Ivan, Halherta, Circuitman - Yes. It was easy enough to get rid of the $25.00 board and just jumper over three wires. It seems to be programming and debugging just fine. I left RESET unconnected for the moment.

50%
50%
Page 1 / 3   >   >>
More Blogs from Fuse Bits
Open-source software provides some key elements for Duane's robot design.
Duane Benson takes yet another tack in his search for wireless control of his robot avatar.
When the Arduino ran out of steam, Duane looked to the mbed for his robot avatar's web server.
Duane launches an experiment to demonstrate the utility of mappable IO pins on an MCU.
There are some mistakes that you wonder how you made -- like leaving out an important part of the design.
flash poll
MC on twitter
like us on facebook
Microcontroller Central    About Us     Contact Us     Help     Register     Twitter     Facebook     RSS