MP 7 Help corection

Discuss about beta versions of mikroPascal compiler.
Post Reply
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

MP 7 Help corection

#1 Post by yo2lio » 02 Oct 2007 18:57

Hi,

Please correct following errors from MP7 version help :

1. I2C Library , schematic, Interfacing 24c02 to PIC via I²C
RC3(SCL) must be connected with pin 6 SCL from 24C02
RC4(SDA) must be connected with pin 5 SDA from 24C02

2. CAN Library , example of interfacing CAN transceiver with MCU and bus
RXD must be connected with CAN RX from PIC
TX CAN must be connected with CAN TX from PIC

3. Conversion Library , StrToInt ,StrToWord

Code: Select all

ii := StrToInt("-1234"); 
ww := StrToword("65432");
Replace " with '

Thanks.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: MP 7 Help corection

#2 Post by zristic » 03 Oct 2007 07:51

Thanks.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#3 Post by yo2lio » 03 Oct 2007 09:22

Do you can explain to me this part from conversion help ?

Code: Select all

var a, b : word;
...
a := 1234;
b := Bcd2Dec16(a);  // b equals 4660

Code: Select all

var a, b : word;
...
a := 4660;
b := Dec2Bcd16(a);  // b equals 1234
I think "$" missing ....

Code: Select all

var a, b : word;
...
a := $1234;
b := Bcd2Dec16(a);  // b equals 4660

Code: Select all

var a, b : word;
...
a := 4660;
b := Dec2Bcd16(a);  // b equals $1234
Thanks.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

majdak
mikroElektronika team
Posts: 28
Joined: 28 Jun 2007 09:40

#4 Post by majdak » 03 Oct 2007 13:18

I was fix all error. You can see result in next compiler's release.

Post Reply

Return to “mikroPascal Beta testing”