Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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?
 
led-asm.25880
 

Attachments

  • LED.asm
    42.4 KB · Views: 286
Last edited:
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:
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...
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top