skraceni kurs ucenja picbasica

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

Moderators: pedja089, stojke369, [eDo], trax

Post Reply
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7877
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: skraceni kurs ucenja picbasica

Post by pedja089 »

Probaj ovako
Define ble bla
...
Pause 500
cdout $fe, 1
pause 100
cdout $fe, 1, DEC2 a
End
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

cdout $fe, 1
Na ovom prijavi grsku compiler
ispravio sam na lcd al opet isto
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7877
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: skraceni kurs ucenja picbasica

Post by pedja089 »

dodaj slovo L...
Samo sam kopirao na brzinu...
LCDOUT treba da pise.
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

Jesam al isto je samo 0

Code: Select all

DEFINE osc 20
adcon1 = 7
trisa=0
a var byte
a=10
DEFINE LCD_DATAUS 500  'OVO SAM DODAO
DEFINE LCD_BITS 4
DEFINE LCD_DREG PORTA
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTA
DEFINE LCD_RSBIT 5
DEFINE LCD_EREG PORTD 
DEFINE LCD_EBIT 7
DEFINE LCD_LINES 2
 
  Pause 500
lcdout $fe, 1 
pause 100
lcdout $fe, 1, DEC2 a
End
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

Kad hocu tekst da ispise i ispisem ovako:
" zdravo"
znaci kad razmaknem u navodnicima ispise dobro,al kako za broj da ga zeznem
User avatar
Kukinjos
Pravi forumaš
Pravi forumaš
Posts: 1724
Joined: 28-03-2012, 18:01
Location: Split

Re: skraceni kurs ucenja picbasica

Post by Kukinjos »

Vidiš ovo radi:

Code: Select all

DEFINE OSC 20
adcon1 = 7
trisa=0
a var byte
a=10

DEFINE LCD_BITS 4
DEFINE LCD_DREG PORTA
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTA
DEFINE LCD_RSBIT 5
DEFINE LCD_EREG PORTD 
DEFINE LCD_EBIT 7
DEFINE LCD_LINES 2
 
    pause 100

lcdout $fe, 1, DEC a
 END
:wink:
Cezare, star sam i nemoćan, ali poslušaj moj savjet ....
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

COVEE TI SI CAROBNJAKKKK UF SAD MORAM ISCACKATI GDE SAM GRESIO
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7877
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: skraceni kurs ucenja picbasica

Post by pedja089 »

Nisam ni gledao da je opet napisao malim slovima...
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

radi OSC veliko se njakam ceo dan koji sam ja KRETEN HVALA VAM PUNO SVIMA
Branez
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 457
Joined: 22-04-2008, 16:27
Location: Maribor(SLO) Koprivnica(HR)
Contact:

Re: skraceni kurs ucenja picbasica

Post by Branez »

nemanjans wrote:...koji sam ja KRETEN
Image
Real Radios Glow in the Dark!
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

Molim vas za jos jednu pomoc i zavrsio sam ceo kod:
kako da uradim sledece:
treba na display da ispisem
lcdout $fe,1,dec a0, dec a1,dec a2,dec a3,dec a4,dec a5,dec a6,dec a7,dec a8

i jos a9 al nestajjemi u isti red pbp-a kako da nastavim u drugom redu a9

znaci staje na displey ali mora u dva reda da se kuca a da izadje u jednom redu na displayu
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7877
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: skraceni kurs ucenja picbasica

Post by pedja089 »

Ajde citaj, vec ti je napisano, a ima i u helpu. Samo treba kursor staviti na LCDOUT i stisnuti F1...
Branez
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 457
Joined: 22-04-2008, 16:27
Location: Maribor(SLO) Koprivnica(HR)
Contact:

Re: skraceni kurs ucenja picbasica

Post by Branez »

Vidi Pedja, ja sam tako kako ti kažeš napravio (klinuo F1) i dobio na tanjuru:

Code: Select all

Command
 Operation
 
$FE, 1
 Clear display 
$FE, 2
 Return home (beginning of first line) 
$FE, $0C
 Cursor off 
$FE, $0E
 Underline cursor on 
$FE, $0F
 Blinking cursor on 
$FE, $10
 Move cursor left one position 
$FE, $14
 Move cursor right one position 
$FE, $C0
 Move cursor to beginning of second line 
$FE, $94
 Move cursor to beginning of third line 
$FE, $D4
 Move cursor to beginning of fourth line 
Pa ta formula jedan stvarno radi :!:
Real Radios Glow in the Dark!
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7877
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: skraceni kurs ucenja picbasica

Post by pedja089 »

:lol: Valjda se nece naljutiti, sto ga malo zezamo... :D
Branez
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 457
Joined: 22-04-2008, 16:27
Location: Maribor(SLO) Koprivnica(HR)
Contact:

Re: skraceni kurs ucenja picbasica

Post by Branez »

Neče, neče! Sve je to dobronamjerno!

Ali on ide Image umjesto da sluša.
Real Radios Glow in the Dark!
User avatar
Kukinjos
Pravi forumaš
Pravi forumaš
Posts: 1724
Joined: 28-03-2012, 18:01
Location: Split

Re: skraceni kurs ucenja picbasica

Post by Kukinjos »

Čini mi se da je mislio na ovo:

Code: Select all

lcdout $fe,1,dec a0, dec a1,dec a2,dec a3,dec a4,dec a5,dec a6,dec a7,dec a8 _
, dec a9
ali to je nepotrebno, mogao je napisat u jednom redu, nije PBP ograničen na onu desnu crtu

@Branez, kako ubacuješ dodatne emoticonse?
Cezare, star sam i nemoćan, ali poslušaj moj savjet ....
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

Tako je hvala puno,e zavrsi ja i mojj projekat ceo hvala vam puno mesec dana sam kucao i danas sam dodao displej sve radi kao sto sam i zamisljao super
Branez
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 457
Joined: 22-04-2008, 16:27
Location: Maribor(SLO) Koprivnica(HR)
Contact:

Re: skraceni kurs ucenja picbasica

Post by Branez »

Kukinjos wrote:....
@Branez, kako ubacuješ dodatne emoticonse?
Image

Ovako!
Real Radios Glow in the Dark!
nemanjans
Penjem se :)
Penjem se :)
Posts: 67
Joined: 08-12-2012, 15:52

Re: skraceni kurs ucenja picbasica

Post by nemanjans »

haha proterao je mene pedja kad sam pocinjjao pre godinu dana hehe radi brojeva al sad ulazim sa bratovog profila jer me je sramota da udjem sa mog AL NAUCIO ME JE PAMETI DA NAUCIM BROJEVE HEHE.ZIVI BILI.PUNO HVALA
User avatar
Kukinjos
Pravi forumaš
Pravi forumaš
Posts: 1724
Joined: 28-03-2012, 18:01
Location: Split

Re: skraceni kurs ucenja picbasica

Post by Kukinjos »

Uh, Branez, trebam još dvojicu za napisat post s emoticonsima, :lol: :lol:
Cezare, star sam i nemoćan, ali poslušaj moj savjet ....
Post Reply