Search found 29 matches

by mersis
27 Nov 2012 11:30
Forum: mikroPascal PRO for AVR General
Topic: Real to EEPROM
Replies: 1
Views: 1633

Real to EEPROM

Hi, what is the best way to save "real" in to eeprom? I need 2 numbers after comma.
Like 200.51 or 19.36
by mersis
15 Sep 2011 19:41
Forum: mikroPascal PRO for AVR General
Topic: USB Library?
Replies: 2
Views: 2205

Re:

How can I use AT90USB162 USB port?
by mersis
13 Nov 2010 09:50
Forum: mikroPascal PRO for AVR General
Topic: DS18B20
Replies: 7
Views: 3964

Re: DS18B20

Hi mersis, because I had the same problem with long wires, I wrote my own 1W-library. I used Atmel's Application Note No318 (APP318.PDF) for help. If you want, you can try my unit and play with the delays. I used a scope to adjust the timing. Regards Thanks, very good, will try. Are you using F0h f...
by mersis
10 Nov 2010 15:00
Forum: mikroPascal PRO for AVR General
Topic: DS18B20
Replies: 7
Views: 3964

Re: DS18B20

It is possible to change OneWire timings? This is important with long cables.
by mersis
08 Nov 2010 19:18
Forum: mikroPascal PRO for AVR General
Topic: DS18B20
Replies: 7
Views: 3964

Re: DS18B20

I found the problem. Aref and AVC I was connected to GND instead of Vcc. Very strange, but it was the reason.
by mersis
06 Nov 2010 18:26
Forum: mikroPascal PRO for AVR General
Topic: DS18B20
Replies: 7
Views: 3964

DS18B20

I have a strange problem with DS18B20 temperature sensor. In the past I used atmega16 and everything worked perfectly. Now I try with atmega32 and does not work. Shows the temperature always 0. I'm using program code and circuit from example.I tried 3 sensors and still not working. I watched with os...
by mersis
03 Oct 2010 17:08
Forum: mikroPascal PRO for AVR General
Topic: delay calculation
Replies: 0
Views: 1223

delay calculation

Hi, I have problem with time calculation. Now I'm using this method:

sk:=0;

repeat
delay_us(10);
Inc(sk);
until PIND.B4 = 0;

sk:=sk*10; // final result in us

Its work, but I think not precisely. Maybe I need to use timer?
by mersis
24 Aug 2010 07:07
Forum: mikroPascal PRO for AVR General
Topic: Graphic LCD
Replies: 8
Views: 6253

Re: Graphic LCD

pykedgew wrote:Hi Mersis
pin15/High=parallel and pin15/Low=serial mode
Have you taken care of Pin 15 on your LCD?
For "Parallel" mode, connect Pin 15 link to VCC supply.
(I normally use say a 1K for protection instead a direct link)

Ken
Ok, but where is CS1 and CS2 pins in this LCD?
by mersis
23 Aug 2010 15:53
Forum: mikroPascal PRO for AVR General
Topic: Graphic LCD
Replies: 8
Views: 6253

Graphic LCD

Hi, I'm using LCD http://www.satistronics.com/128x64-1286 ... p2618.html
and lcd don't work. Do I need lcd with KS108 only?
by mersis
02 Jul 2010 09:08
Forum: mikroPascal PRO for AVR General
Topic: one wire temperature sensors
Replies: 8
Views: 4037

Re: one wire temperature sensors

Thanks for reply. I can't find how can I read serial number from DS18B20 with mikropascal.
by mersis
01 Jul 2010 22:08
Forum: mikroPascal PRO for AVR General
Topic: one wire temperature sensors
Replies: 8
Views: 4037

one wire temperature sensors

I have tested example all OK. I need to use 10 pcs sensors. What is the best way? It is possible connect all sensors in 1 data line and read sensors serial number/temperature?
by mersis
27 Jun 2010 12:35
Forum: mikroPascal PRO for AVR General
Topic: DS1307+ example
Replies: 1
Views: 1639

DS1307+ example

Hi, I need DS1307+ example.
by mersis
16 Jun 2010 14:28
Forum: mikroPascal PRO for AVR General
Topic: real to integer
Replies: 2
Views: 1899

Re: real to integer

Thank you very much. Its work :wink:
by mersis
16 Jun 2010 10:37
Forum: mikroPascal PRO for AVR General
Topic: real to integer
Replies: 2
Views: 1899

real to integer

What is the best way to convert? I need digits before dot only. I know method with conversion to string ant then back to integer only.

Go to advanced search