For the upcoming 7-segment project14 event, I wanted to use an relatively old 8bit microcontroller that is compatible with my Pic Kit1. The PIC16F676 was one of 2 sample MCUs that shipped with the kit.
I am amazed, given component shortages, I was even able to purchase a PIC16F676
I got a real smokin deal at $3.40 /UNIT
The PIC16F676 is feature packed!
A whopping 64 bytes of RAM.
The flash program memory is 14-bits wide, so 1024 words is 1792 bytes.
Cost per MB = $3.4 / ( 1792 / 2^20) = $1989.48 / MB
Of course you get a processor, sram, eeprom, adc, timer, etc as well, so its not an accurate cost figure.