Led Matrix i Pic

Rasprava o PIC mikrokontrolerima, PIC projekti i drugo vezano za PIC-eve...

Moderators: pedja089, stojke369, [eDo], trax

Post Reply
ZlacX
Pocetnik na forumu
Pocetnik na forumu
Posts: 38
Joined: 03-01-2009, 16:17

Led Matrix i Pic

Post by ZlacX »

Image

Code: Select all

POCETAK:

TRISB=%00000000

SYMBOL Y4 = PORTB.0 
SYMBOL Y3 = PORTB.1 
SYMBOL Y2 = PORTB.2 
SYMBOL Y1 = PORTB.3 
SYMBOL X1 = PORTB.4 
SYMBOL X2 = PORTB.5 
SYMBOL X3 = PORTB.6 
SYMBOL X4 = PORTB.7 

UVOD:
Y4 = 1
Y3 = 0
Y2 = 0
Y1 = 1

X1 = 0
X2 = 0 
X3 = 0
X4 = 0


PAUSE 5000
GOTO UVOD
END
 
kako dobiti neki uzorak na ovom čudu
recimo slova?
User avatar
Elektronicar
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 467
Joined: 19-01-2008, 17:05
Location: Balkan

Re: Led Matrix i Pic

Post by Elektronicar »

Neki uzorak recimo slova se mogu dobiti programiranjem.

Code: Select all

http://www.mikroe.com/forum/viewtopic.php?t=10513&highlight=led+matrix

Code: Select all

http://www.mikroe.com/forum/viewtopic.php?t=11194&highlight=led+matrix
ZlacX
Pocetnik na forumu
Pocetnik na forumu
Posts: 38
Joined: 03-01-2009, 16:17

Re: Led Matrix i Pic

Post by ZlacX »

thx , ali ja se s takvim oblikom koda jos nisam srel :?
ZlacX
Pocetnik na forumu
Pocetnik na forumu
Posts: 38
Joined: 03-01-2009, 16:17

Re: Led Matrix i Pic

Post by ZlacX »

kolko sam ja skuzil ... nemoze se dobiti neki uzorak samo jednom linijom jer
matrix mora iscrtati sliku stupac po stupac ...
sad me jedna stvar zanima dal je
ovo isto samo skraceno

trisb=%11110000

ovome
portb.0 =1
portb.1 =1
portb.2 =1
portb.3 =1
portb.4 =0
portb.5 =0
portb.6 =0
portb.7 =0

?
User avatar
Dariolo
Odlično uznapredovao
Odlično uznapredovao
Posts: 822
Joined: 24-08-2006, 23:29
Location: Žepče (BiH), Zagreb (HR)

Re: Led Matrix i Pic

Post by Dariolo »

portb=%00001111
je ekvivalnetno
portb.0 =1
portb.1 =1
portb.2 =1
portb.3 =1
portb.4 =0
portb.5 =0
portb.6 =0
portb.7 =0
ovome

trisb je registar koji služi za definiranje pinova kao I/O
Post Reply