I'm trying to figure out how I can successfully validate whether a chip is a genuine atmel part. What this circuit is supposed to do is read the first two bytes in signature reading mode. I tested a previously working chip and I tested a new chip I bought on ebay. Both chips returned the same data (1Eh for first byte and FFh for second byte) and I was able to read the second byte with a voltmeter on each pin one-by-one after removing the middle diode marked RESET.
I did add a 47nF ceramic capacitor across the clock button to prevent multiple increments of the rom address.
I posted this question before on stackexchange and they indirectly suggested I use pull-up resistors on the P1 pins of the microcontroller. I added 10K pull-ups and that made no difference.
I then looked further into the atmel datasheet and it states that the maximum rise and fall time the external clock signal should have is 20nS. It also states that upon raising the voltage of the xtal1 pin
, the memory counter increments. I feel I could be exempt from the timings because as soon as I press the button, the voltage jumps to 5V which means increment I think.
I mean I could look into hard-core button circuits (like a 555 debouncer or some debouncers with hysterisis functionality), but to use the button only once just to increment one address, is all that even necessary?