nameless_centurian
Gawd
- Joined
- Apr 4, 2003
- Messages
- 836
just for fun..
....when was the last time you had one of those "oh, DUH!" moments?
..i had one this evening. i was playing with a microcontroller i bought a while back.... i want to start a small project but figured i better make sure i know how to get code on the board first.
....so i write this C program to blink a light from an output port (and to make it simple, i did it using loops instead of interrupts)... so i spend all last evening searching the internet for a memory map and where the output ports are located... then i spent all tonight trying to get code on the board... i checked every jumper setting. i loaded the stack pointer at several different locations. i tried to put the code in about 10 different spots. i tried relocating the stack pointer to the opposite ends of memory, thinking that maybe the stack grows opposite to what i think it does... then i got to thinking that maybe my numbers were overflowing... and then i almost threw it through the window...
....all that and i realized about 10 minutes ago that i forgot to set the reset vector to the start of my code.
....so after hours of annoyance and hurt pride, my little light blinks happily.
....when was the last time you had one of those "oh, DUH!" moments?
..i had one this evening. i was playing with a microcontroller i bought a while back.... i want to start a small project but figured i better make sure i know how to get code on the board first.
....so i write this C program to blink a light from an output port (and to make it simple, i did it using loops instead of interrupts)... so i spend all last evening searching the internet for a memory map and where the output ports are located... then i spent all tonight trying to get code on the board... i checked every jumper setting. i loaded the stack pointer at several different locations. i tried to put the code in about 10 different spots. i tried relocating the stack pointer to the opposite ends of memory, thinking that maybe the stack grows opposite to what i think it does... then i got to thinking that maybe my numbers were overflowing... and then i almost threw it through the window...
....all that and i realized about 10 minutes ago that i forgot to set the reset vector to the start of my code.
....so after hours of annoyance and hurt pride, my little light blinks happily.