Rasprava o PIC mikrokontrolerima, PIC projekti i drugo vezano za PIC-eve...
Moderators: pedja089 , stojke369 , [eDo] , trax
ZlacX
Pocetnik na forumu
Posts: 38 Joined: 03-01-2009, 16:17
Post
by ZlacX » 06-12-2009, 19:21
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?
Elektronicar
Pravo uznapredovao :)
Posts: 467 Joined: 19-01-2008, 17:05
Location: Balkan
Post
by Elektronicar » 06-12-2009, 23:19
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
Posts: 38 Joined: 03-01-2009, 16:17
Post
by ZlacX » 07-12-2009, 01:32
thx , ali ja se s takvim oblikom koda jos nisam srel
ZlacX
Pocetnik na forumu
Posts: 38 Joined: 03-01-2009, 16:17
Post
by ZlacX » 07-12-2009, 18:27
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
?
Dariolo
Odlično uznapredovao
Posts: 822 Joined: 24-08-2006, 23:29
Location: Žepče (BiH), Zagreb (HR)
Post
by Dariolo » 07-12-2009, 20:01
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