DS1820 help

General discussion on mikroPascal for AVR.
Post Reply
Author
Message
siemo
Posts: 3
Joined: 17 Jul 2008 15:34

DS1820 help

#1 Post by siemo » 17 Jul 2008 15:44

I'm newbee in programming of AVR-Pascal, so I desided to start with a simple thing. I have use a DS1820 and a MEGA32 with a 8MHz external crystal in connection with the board easyAVR5A. Then I have tried to use the Library example in the manual page 180.

The command ow-reset(PORTC,7) has always the value 1 that means the DS1820 is not present. I have also tried to use a other port with the same result. What can be wrong?

siemo
Posts: 3
Joined: 17 Jul 2008 15:34

#2 Post by siemo » 20 Jul 2008 16:42

some additional information:

all LED's are switched off
I have also tried to change the pullup resistor for the DS1820 to 4,7kOhms like it is written in the datasheet
I have also tried to use BASIC with the same bad result
May be someone is able to help me...

Best regards

siemo

Sascha
Posts: 17
Joined: 01 Jun 2008 23:00
Location: Germany

#3 Post by Sascha » 22 Jul 2008 01:08

Hey siemo,

There is a layout error at Easy AVR5A board. You need to flip the DS1820!
mE has swaped GND and Vcc in the layout :-/


Sascha

siemo
Posts: 3
Joined: 17 Jul 2008 15:34

#4 Post by siemo » 23 Jul 2008 08:58

Hi Sascha,

many thanks for the message.
You was right. After changing the direction of the chip it works.
Also the chip which was used in with wrong polarity after the correction works :-)
One week work for nothing - it's a pity

again vielen Dank

siemo

Post Reply

Return to “mikroPascal for AVR General”