??? 12/22/06 10:46 Modified: 12/22/06 10:50 Read: times |
#129986 - 8051 -> AVR: not easy !!! Responding to: ???'s previous message |
Jan Waclawek said:
I had rewritten several '51 asm projects into AVR asm and found out it is quite straighforward. I tried it also. But sometimes I stopped, because AVR code need more Flash. E.g. I have many applications, which fits easily in the AT89C2051, but not in the ATtiny2313. There are some main points, where you must watch on 8051->AVR conversion: - AVR: no interrupt priorities. - AVR: no powerful bit instructions (PLC applications) - AVR: more code space (assembler and C) Especially the first point was very important on bigger projects, so I use the AVRs only on small projects. E.g. on one big project (40kB Flash) I assigned all four interrupt priorites. It make the program development many times easier, if fast interrupts can act, like no other interrupts present. Peter |