Iawia
Member
hey all,
I am a beginner in assembly, and I just got done making my LED turn 'on', and am now trying to get the LED to flash with a period of ~1 Hz.
here is the code that I wrote, but the led stays 'on' the whole time.
as a coder of C++, java, assembly lang seems to be illogical at times and hard to follow, and I am failing to see why the LED is not flashing. Please help. I know there is other code out there that works, however I really want to know why THIS code doesn't work. I don't want to just copy and paste, but actually understand my error.
I am using the pic kit2 from Microchip, with the PIC12F508.
Open this .ASM with MPLAB IDE (but notepad and word will also work, but wont look as pretty)
thanks!
I am a beginner in assembly, and I just got done making my LED turn 'on', and am now trying to get the LED to flash with a period of ~1 Hz.
here is the code that I wrote, but the led stays 'on' the whole time.
as a coder of C++, java, assembly lang seems to be illogical at times and hard to follow, and I am failing to see why the LED is not flashing. Please help. I know there is other code out there that works, however I really want to know why THIS code doesn't work. I don't want to just copy and paste, but actually understand my error.
I am using the pic kit2 from Microchip, with the PIC12F508.
Open this .ASM with MPLAB IDE (but notepad and word will also work, but wont look as pretty)
thanks!
Attachments
Last edited: