Friday, April 22, 2005

IT WORKS!!!!

As you can tell my program finally works but still there are some flukes here and there. but over all it works!! im like so freakin' happy!! can you believe i like sat here reading and going through that stupid datasheet (M68DEMO908GB60) over and over again and finally i understand how it works and roughly how to define certain things, man am i happy it works, LEDs (light emitting diodes) light and everything. only problem now is that the LEDs only light when i step rather then when i run (in debugger mode of Code Warrior IDE[software program for programming microprocessors]). if i run the debugger it doesn't work and mr chua (senior) says its because of my sampling frequency but heck i just maxed it all out to PRESCALAR 0xFF and MODULUS 0xFF (F=1111(binary) & 15(decimal)). hahahaha!!! but now i was told to create a subroutine for the ATD (analog to digital converter) why i'm not too sure yet but all i know is that it was linked to why i had to enable interrupt.

according to mr chua(senior) im suppose to interrupt by using SW1(switch1) and then from when SW1 is pressed it'll enable interrupt then it'll go into my ADT_start(my subroutine) and then from there it should run and light the LEDs but it doesn't!!! and if i step then it doesn't even go into the subroutine and now im like so...argh!! but since its 5:30pm im so outta here!! hahaha!!

No comments: