Atmel ATmega168 Memory Probe
This is a project for reading/writing from sram, eeprom, i/o ports, and flash from a high level interpreted interface. I did this project more for an exercise and possibly a learning tool for me and possibly others. This would be a great program, for example, to hook some sensor to the device and use the "readi" command to see what kind of values the sensor is sending to the device without having to write any code.
I'm thinking of selling preprogrammed chips with this software for about $10 a piece + shipping. Send me an email if you're interested.
The circuit as described here is hooked up to a PC's com port. Using any rs232 communications program such as Procom or Minicom the user is presented with a command prompt. At the prompt the user can type any of the following commands:
All addresses and values are input'd/output'd in hex.
Using the circuit on my Atmel rs232 page, if I wanted to turn the LED on I could type:
command< writei 5 0
Or to turn it off (and any other LED on PORTB)
command< writei 5 ff
NOTE: This code is written for the ATmega168. This processor memory maps the UART registers into SRAM. Other Atmel chips might need in/out instructions instead. Using this as a guide it should be pretty simple.
Copyright 1997-2021 - Michael Kohn