Friday 23 September 2016

pic - How can anyone use a microcontroller which has only 384 bytes of program memory?


For instance a PIC10F200T



Virtually any code you write will be larger than that, unless it is a single purpose chip. Is there any way to load more program memory from external storage or something? I'm just curious, I don't see how this could be very useful... but it must be.



Answer



You kids, get off my lawn!


384 bytes is plenty of space to create something quite complex in assembler.


If you dig back through history to when computers were the size of a room, you'll find some truly amazing feats of artistry executed in <1k.


For instance, read the classic Story of Mel - A Real Programmer. Admittedly, those guys had 4096 words of memory to play with, the decadent infidels.


Also look at some of the old demoscene competitions where the challenge was to fit an "intro" into the bootblock of a floppy, typical targets being 4k or 40k and usually managing to include music and animation.


Edit to add: Turns out you can implement the world's first $100 scientific calculator in 320 words.


Edit for the young 'uns:




  • Floppy = floppy disk.

  • Bootblock = 1st sector of the floppy read at bootup.

  • Demoscene = programming competitions amongst hacker groups.

  • Assembler = fancy way of programming a device if you're too soft to use 8 toggle switches and a "store" button.


No comments:

Post a Comment

arduino - Can I use TI&#39;s cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...