Maybe pull up resistor is missing?
Hi;
In PIC16F628A the RA4 Pin is open drain, so you wll need a pull up resistor.
Thanks and Regards;
Gadelhas
Mr.Arrati say : " PortA.4 is a Schmitt Trigger input and an open drain output. You will need an additional NPN transistor with a pull down resistor to make column 5 working.". So... can I use PortA.5 instead PortA.4 ? How ? Using "MCLR off" and ?!
This is schematic who work fine in Proteus. In "real life" , despite modification of scroll timming (pause 500 to 5000 !), the led's are always ON !!! Any idea ?
Thanks !
Hi;
I cannot compile that source code. What is the "LOOP" for?? This is a reserved word, you cannot compile the code with this word on a label. And i'm always getting illegal opcode.
What are you using to compile? Mpasm? or PBP?
Last edited by gadelhas; - 6th September 2011 at 21:06.
Thanks and Regards;
Gadelhas
Got it;
Since I'm using MPASM needed to change the config line;
Also like i said before needed to delete the "LOOP" label also, since its a reserved word.Code:@ __config _INTOSC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _BODEN_OFF & _MCLRE_ON
Thanks and Regards;
Gadelhas
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I will try this code today, later...
I find another ...mistake (?) : line 2 do not appear on matrix ! What a hell it's going ?!Code:.... LOOPing: FOR scroll = 0 TO 35 FOR scan = 0 TO 15 PORTb = 1 porta=1 FOR counter = 0 TO 7 PORTA = leddata [counter] PAUSE 10 PORTb = PORTb * 2 NEXT NEXT FOR counter = 0 TO 34 leddata [counter] = leddata [counter+1] NEXT NEXT GOTO START END
Bookmarks