Where do i start?

Hi everyone

I have been desing hardware based on the C51 architecture in assembly code I am wanting to migrate to ARM and and wanting to start writing in C rather than assembler. can anyone give me any site that could help me out with this, like writing to registers, changing modes, dealing with interrupts etc.

Thanx! Xarion

Reply to
Xarion
Loading thread data ...

sdcc is a C compiler for c51 and it's free the datasheet of the microcontroller is the first place where I look for basic things , application notes are the second and third there is google :-)

you can easily find code in asm or C for many tasks.

always check for compatibility between derivatives of the chip ( different chip different registers and peripherals )

oh , a simple sbc withe micro and ram is useful.

Reply to
mmm

formatting link

Vadim

Reply to
Vadim Borshchev

Think i might have mis-communicated my point:)

I am wanting to develop new hardware with ARM micros and am looking for some sort of introduction into c programming for ARM architectures. I have been through ARM's website and haven't found anything that could help me starting with ARM its more for people already working with ARM.

Xarion

Reply to
Xarion

So, have you seen the App Note 34 "Writing Efficient C for ARM" in ?

Vadim

Reply to
Vadim Borshchev

Ahh didnt see that one :-) Thanx

Reply to
Xarion

Try looking at some of the C source code examples associated with an ARM evaluation kit (for example, Atmel's AT91EB40A...

formatting link

While they are specific to a particular implementation (product) they do provide real examples of low level software written in C (i.e. accessing registers in devices, interrupts, etc.). There are probably better links... but this is one I knew of.

TC

Reply to
TC

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.