3x3x3 LED Cube - can i use16f628 instead 16f690

Status
Not open for further replies.
I am using the circuit and the asm code as on below. Do you think that could there be a problem on the asm code?
 
Code:
	bsf		STATUS,RP1			; select Page 2,
	bcf		STATUS,RP0			; by setting RP1 in Status register and clearing RP0

;	clrf	ANSEL				; select Digital I/O on port C
;	clrf	ANSELH				; "		"

    bcf		STATUS,RP1			; back to Register Page 0


The PIC16f628a does not have any ANSEL registers look at the datasheet

So this code will not compile.
Make sure you go back into bank0 after clearing the Tris registers
 
Last edited:
i use not 16f628a, i use 16f628..i completed my circuits..but leds are blinking complicated..i hope, my asm code is wrong für my connection..could u send me circuit schema and asm code?
 
Last edited:
ok so Ignore my "a" and reread the post. The only person nice enough on this forum to do all that for you would be bebe, and he ALREADY DID IT.
 
what does it mean "a,,? soryy because that.i'm working hard but i didn't find problem..The leds are blinking absurd..am i connecting my pic's ports wrong? is that so?

thanks...
 
How can you use RA5? Its input only, RA4 is open collector. Change those two to the B port and get rid of the code I told you about.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…