So, i've been putzing with PICs for two weeks, but I tell you what, it's the darndest thing, I CAN'T GET THE STUFFE TO WORK.
Now, i'm no newb, and i'm no idjiot, but this here shennanigans is getting frustrating all up on my nerves.
I've tried with a pic 16f506, a 10f200 and a 10f220 (I think I blew up a 10f220- it was totally interesting and has been logged in the name of science) with varying codes and what not, but this is what i've got-
Yes, it's simple, it's great, and I hate it. I don't want to hate it but it doesn't work.
After successfully connecting this code to my PICKIT 2(tm) with verifications and everything, I plug it into my breadboard. I have a GND rail and +5v rail going on, connected directly to Vdd and Vss. From a few of the output pins (if you can tell by the code- what output pin is almost completely a moot point) is an led (correctly polarized) and a 1k resistor plugged right to the GND rail.
Now, how am I jacking this up?
(P.S. is profanity frowned upon here? It's second nature for me to drop f-bombs.)
Now, i'm no newb, and i'm no idjiot, but this here shennanigans is getting frustrating all up on my nerves.
I've tried with a pic 16f506, a 10f200 and a 10f220 (I think I blew up a 10f220- it was totally interesting and has been logged in the name of science) with varying codes and what not, but this is what i've got-
Rich (BB code):
#include <p10f220.inc>
COUNT1 equ 0x10
COUNT2 equ 0x11
GPIO equ 0x06
__CONFIG (_MCLRE_OFF & _CP_OFF & _WDT_OFF & _MCPU_OFF & _IOFSCS_4MHZ)
org 0x0000
movlw 0x00
tris 6
START movlw 0xff
movwf GPIO
call DELAY
movlw 0x00'
movwf GPIO
call DELAY
goto START
DELAY
movlw 0xfa
movwf COUNT2
DELAY_0 movlw 0xfa
movwf COUNT1
DELAY_1 decfsz COUNT1
goto DELAY_1
decfsz COUNT2
goto DELAY_0
retlw 0x00
END
After successfully connecting this code to my PICKIT 2(tm) with verifications and everything, I plug it into my breadboard. I have a GND rail and +5v rail going on, connected directly to Vdd and Vss. From a few of the output pins (if you can tell by the code- what output pin is almost completely a moot point) is an led (correctly polarized) and a 1k resistor plugged right to the GND rail.
Now, how am I jacking this up?
(P.S. is profanity frowned upon here? It's second nature for me to drop f-bombs.)