Quote:
Originally Posted by 3-Wheeler
So Mike, any time you program a PIC, is it always done with assembly, or are there times when you use C with an embedded compiler, and then upload to the PIC?
I've only known of just a handful of people to program in assembly, that's why I'm curious.
Jim.
|
Up until recently, Microchip PICs were programmed almost exclusively in their assembly language or in Parallax's assembly. Microchip's assembly is byte for byte, while Parallax's has some 2->3 byte conversions. The C compilers were very expensive and the chips were so limited that you had to eke out every byte, so C was a luxury that most couldn't afford.
In the late 90's, I designed a DRL controller around a PIC16C54. It had 512 bytes of EPROM for program space and only 25 bytes of RAM (8-bit bytes). You had to get VERY creative with your code to make things fit. C can't generate code as tight as hand-coded assembly.
This message wouldn't have fit in the chip.