Search found 6 matches

by Vasi
17 Dec 2009 17:08
Forum: mikroPascal PRO for AVR General
Topic: StackPointer problem
Replies: 1
Views: 1638

StackPointer problem

Hello, I'm a beginner. I have a problem. I made a procedure which shows something on the LCD, let say 1x/10sec. Procedure is called by Timer1 interrupt. Everything is OK (procedure is functional) but after do this procedure program jumps to random address. (In my case usually jumps to RTC_write proc...
by Vasi
19 Aug 2008 20:27
Forum: mikroPascal for AVR General
Topic: PIC -> AVR (LCD6610)
Replies: 1
Views: 4132

I think that:

a) SSPC1.SSPEN :=0 // disable SPI
b) I don't know
c) I don't know
d) I don't know INDF0 ? Is it enought PortB.CS := 0 ?
e) SSPBUF := data // data to SPI data register
f) waiting for SPI transfer complete
g) I don't know INDF0 ? Is it enought PortB.CS := 1 ?
h) ?
by Vasi
19 Aug 2008 19:27
Forum: mikroPascal for AVR General
Topic: PIC -> AVR (LCD6610)
Replies: 1
Views: 4132

PIC -> AVR (LCD6610)

Hello, please, I would like to try LCD display Nokia 6610. A have a unit for remoting it, but it's unit for PIC. Can anybody translate it to AVR or does anybody have a Unit for AVR? Thanks I'm not sure with these codes: a) SSPCON1.SSPEN := 0; b) FSR0L := lo(portaddress); c) FSR0H := hi(portaddress);...
by Vasi
16 Jun 2008 21:20
Forum: mikroPascal for AVR General
Topic: Problem with a procedure
Replies: 3
Views: 5271

It seems that I've solved the problem.
I put the code SP := RAMEND; to my program.
After that everything is OK, can anybody explain me this interesting?
by Vasi
16 Jun 2008 19:24
Forum: mikroPascal for AVR General
Topic: Problem with a procedure
Replies: 3
Views: 5271

Sascha, thank you for your help. Now I know, that code is OK. I think that's compiler misstake . When I change device from Attiny26 to Attiny25 (very diferrent devices, but both have a PortB.3) everything is OK, LED is flashing only one time. Fortunately, I will use ATmega16 for my next project (car...
by Vasi
15 Jun 2008 21:34
Forum: mikroPascal for AVR General
Topic: Problem with a procedure
Replies: 3
Views: 5271

Problem with a procedure

Hello, I am a beginner with programming uP. I usually use Attiny26. I did a programe to control alphanumeric LCD display, everything was OK. Then I wanted to try make a procedure for controling LCD. It wans't funcional. I tried make an easy program for flashing the LED with procedure, but without su...

Go to advanced search