I am looking for a microcontroller for a project which uses a counter for counting and I want the count value retained even when the power is switched off. (i.e) the counter should pickup from where it left off. Is there an inexpensive NXP microcontroller for my application? What I need is a non volatile memory to be exact. Do I have to splurge by using a microcontroller where the program memory is stored in FRAM. Suggestions appreciated.