I/O monitor program for AVR


Posted on Nov 28, 2012

Works on AVR controllers with RAM and a hardware UART. This code is easily modified to integrate with ROM applications to provide the ability to monitor and interact with ROM applications via an terminal simulation program over an RS-232 port. It can also be used to stimulate and monitor I/O to aid in debugging hardware. It is very helpful to be able to look around at memory, I/O and peripherals, and change things inside a running controller


I/O monitor program for AVR
Click here to download the full size of the above Circuit.

If you adapt this to a controller with a stack pointer that is more than 8 bits wide, be sure that both registers in the stack pointer, both spl and sph, are initialized. As an example ldi temp,low(ramend) ;get low byte of highest RAM address for this chip. out spl,temp ;set spl ldi temp,high(ramend) ;get low byte of highest RAM address for this chip. out sph,temp ;set spl The monitor's commands allow reading, monitoring, and byte-by-byte modification of memory locations $0000 through $00FF, which includes the register array and I/O space.




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

Mini-box 2W Amplifier
Color Sensor circuit
Linear scale ohmmeter
Automobile-voltage-regulator
Auto-zeroing-scale
Uninterruptable-supply
Changing the sensitivity of manual controls
High power siren circuit using CD40106
hi fi stereo preamplifier circuit
sine wave to ttl converter
Long duration timer circuit
Dtmf Generator At90s4414
Cheap AC Current Measurement
Dual power switch circuit diagram consisting of a single control button CD4069
Dispenser Aucma temperature detection control circuit



Top