PIC -> AVR (LCD6610)

General discussion on mikroPascal for AVR.
Post Reply
Author
Message
Vasi
Posts: 6
Joined: 15 Jun 2008 20:40

PIC -> AVR (LCD6610)

#1 Post by Vasi » 19 Aug 2008 19:27

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:

Code: Select all

a)    SSPCON1.SSPEN := 0;
b)    FSR0L := lo(portaddress);
c)    FSR0H := hi(portaddress);
d)    ClearBit(INDF0,____CS);
e)    SSPBUF := data;
f)    while TestBit(SSPSTAT, BF) = 0 do
g)    SetBit(INDF0,____CS);
h)    portaddress := @port;

Vasi
Posts: 6
Joined: 15 Jun 2008 20:40

#2 Post by Vasi » 19 Aug 2008 20:27

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) ?

Post Reply

Return to “mikroPascal for AVR General”