------=_Part_60421_17060593.1173969130643 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline So, finally I was able to use a programmer and a chip (16F628a to be exact). Feeling the rush of excite, I immediately hacked together a "running light"-test in MPLAB, just for the sake of trying the microcontroller out. It worked the first time, I was amazed! But, since this opposed to using MPLAB is reality, the happiness was not for long; because there were some errors. The lights (LEDs) were running, sure, but the supposed delay of 5 seconds between each light is wrong; the lights are in a sort of rush hour and then stops. I don't know if this occurs codewise or breadboard-wise, but probably the latter, because if i touch the board or some pins, the lights start again. Sometimes they run, sometimes only one is lit, etc. Some oscillation perhaps? Nothing except the PIC and 4 LEDs are connected on the board. I also thought it might had to do with the lack of crystal (I used the internal oscillator), but alas; adding a 14MHz-crystal and proper caps did not solve the problem. The lights surely runs even faster, but the problem still occurs. I'm attaching my code that I used for testing, feel free to take a peek and berate me to better knowledge. -- - Rikard. ------=_Part_60421_17060593.1173969130643 Content-Type: text/plain; name="ledtest.asm" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ledtest.asm" X-Attachment-Id: f_ezbavtza CWxpc3QgICAgICBwPTE2ZjYyOEEgICAgICAgICAgIDsgbGlzdCBkaXJlY3RpdmUgdG8gZGVmaW5l IHByb2Nlc3Nvcg0KCSNpbmNsdWRlIDxwMTZGNjI4QS5pbmM+ICAgICAgIDsgcHJvY2Vzc29yIHNw ZWNpZmljIHZhcmlhYmxlIGRlZmluaXRpb25zDQoNCiAgICBfX0NPTkZJRyBfQ1BfT0ZGICYgX1dE VF9PRkYgJiBfQk9ERU5fT0ZGICYgX1BXUlRFX09OICYgX0lOVE9TQ19PU0NfTk9DTEtPVVQgJiAg X0xWUF9PRkYNCg0KDQprb3JiCWNvZGUgICAgIDB4MDAwICAgICAgICAgICAgIDsgcHJvY2Vzc29y IHJlc2V0IHZlY3Rvcg0KCWdvdG8gICAgbWFpbiAgICAgICAgICAgICAgOyBnbyB0byBiZWdpbm5p bmcgb2YgcHJvZ3J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gICAgICAgICAgIDsgbW92ZSB0byBSQjINCg0KICAg ICAgICBtb3ZsdyAgIC41MA0KICAgICAgICBjYWxsICAgIGRlbGF5MTAwDQoNCglybGYgICAgIFBP UlRCICAgICAgICAgICA7IG1vdmUgdG8gUkIzDQoNCiAgICAgICAgbW92bHcgICAuNTANCiAgICAg ICAgY2FsbCAgICBkZWxheTEwMA0KDQogICAgICAgIGdvdG8gICAgbG9vcA0KDQoNCglFTkQgICAg ICAgICAgICAgICAgICAgICAgIDsgZGlyZWN0aXZlICdlbmQgb2YgcHJvZ3JhbScNCg== ------=_Part_60421_17060593.1173969130643 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------=_Part_60421_17060593.1173969130643--