OneWire DS1820 works with HS and doesnt work with HSPPL

Post your requests and ideas on the future development of mikroC PRO for PIC.
Post Reply
Author
Message
smed
Posts: 2
Joined: 28 Aug 2009 08:44

OneWire DS1820 works with HS and doesnt work with HSPPL

#1 Post by smed » 16 Nov 2010 08:04

Hi,
I am using a 18FLF2550 with a 8 Mhz crystal in the EasyPIC5 board. Device setting for programmer is PIC18F2550.
Version of PicFLASH is 7.13, mikroC PRO compiler is Version 3.8.

The DS1820 example works fine with the HS oscillator, but does not work with the HS PPL.

For my additional code that stores the temperature values on a MMC its the other way around - works with HSPPL but fails with just HS.

How do I get both to work together? I tried many settings and crystals, but I didn't get any combination where both OneWire and MMC was working.

Thanks
Dietmar

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: OneWire DS1820 works with HS and doesnt work with HSPPL

#2 Post by filip » 17 Nov 2010 10:12

Hi,

It can be tricky to set the oscillator for 18F2550 correctly with PLL.

Please, see the following topic for detailed information :
http://www.mikroe.com/forum/viewtopic.php?t=10646

18F2550 and 18F4550 share the same datasheet, so don't be confused.

Also, carefully read the Oscillator section in the datasheet for 18F2550.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC Wish List”