Search found 65 matches

by NUFAN
24 Jul 2010 19:19
Forum: mikroC PRO for PIC General
Topic: Ethernet connection problem
Replies: 15
Views: 11065

Re: Ethernet connection problem

What are your parameters on PIC and PC?
by NUFAN
16 Jun 2010 18:43
Forum: mikroC PRO for PIC General
Topic: How Ethernet_getBytes() works
Replies: 2
Views: 1322

Re: How Ethernet_getBytes() works

I still deal with this problem :( Why Ethernet_getBytes() function reads only MAC header?
by NUFAN
14 Jun 2010 21:50
Forum: mikroC PRO for PIC General
Topic: How Ethernet_getBytes() works
Replies: 2
Views: 1322

Re: How Ethernet_getBytes() works

With Ethernet_getBytes() I can only read a MAC header and nothing else.
by NUFAN
14 Jun 2010 13:15
Forum: mikroC PRO for PIC General
Topic: How Ethernet_getBytes() works
Replies: 2
Views: 1322

How Ethernet_getBytes() works

When I receive SNMP packet want to read the public name but Ethernet_getBytes() reads strange values.

Public name is located on 15th byte in UDP packet but Ethernet_getBytes() don not return proper value.

Example:

Code: Select all

char buffer[6];

Ethernet_getBytes (buffer, 0x0015, 6);
How Ethernet_getBytes works?
by NUFAN
03 Jun 2010 14:20
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: OneWire Temperature Display
Replies: 20
Views: 11758

Re: OneWire Temperature Display

DS1820 and DS18S20 are the same sensor, which have a 9-bit resolution while DS18B20 has adjustable resolution from 9 to 12-bit.
by NUFAN
31 May 2010 08:40
Forum: mikroC PRO for PIC General
Topic: Receiving SNMP requests
Replies: 0
Views: 1286

Receiving SNMP requests

Can anybody help me, how to receive SNMP request with PIC. I send the SNMP request from my computer to agent (PIC), but I don't know how to receive it :( I'm using UDP for transport layer.
Does any function in mikroC PRO to do that?
by NUFAN
28 May 2010 10:50
Forum: mikroC PRO for PIC General
Topic: Operator "->"
Replies: 3
Views: 1525

Re: Operator "->"

Thanks Sobrietytest!
by NUFAN
28 May 2010 10:07
Forum: mikroC PRO for PIC General
Topic: Operator "->"
Replies: 3
Views: 1525

Operator "->"

What a "->" operator mean?

Example:

variable1 -> variable2 = 0;
by NUFAN
26 May 2010 21:46
Forum: mikroBasic General
Topic: SNMP Library or Routines for PIC
Replies: 1
Views: 2331

Re: SNMP Library or Routines for PIC

I would be very grateful too!
by NUFAN
22 May 2010 22:34
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: OneWire Temperature Display
Replies: 20
Views: 11758

Re: OneWire Temperature Display

Program looks ok. Check your hardware if you connected properly. What value of pullup resistor are you using? Have you got +5V to DQ pin?
by NUFAN
22 May 2010 12:06
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: OneWire Temperature Display
Replies: 20
Views: 11758

Re: OneWire Temperature Display

mousepad wrote:I set the resolution to 9 bit
Are you using DS18B20 sensor now? If answer is yes than show us your procedure for setup resolution.
by NUFAN
22 May 2010 09:13
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: OneWire Temperature Display
Replies: 20
Views: 11758

Re: OneWire Temperature Display

I think that the problem is here (in Write_Temp function). if ((temp and 0x8000) > 0) then text[0] = "-" temp2write = (not temp2write) + 1 end if Temperature value is transferred to the variable temp2write in that function. Change the temp variable to temp2write. if ((temp2write and 0x8000) > 0) the...
by NUFAN
22 May 2010 09:02
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: OneWire Temperature Display
Replies: 20
Views: 11758

Re: OneWire Temperature Display

The problem is only in "-" now if I understand you? Temperature value is correct, right?
by NUFAN
15 May 2010 22:49
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: OneWire Temperature Display
Replies: 20
Views: 11758

Re: OneWire Temperature Display

I assume that you use DS18B20 sensors. For these you need to set resolution to 9 bit.
by NUFAN
15 May 2010 22:22
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: OneWire Temperature Display
Replies: 20
Views: 11758

Re: OneWire Temperature Display

Name for your SFR is AD1PCFG. Change ADPCFG to AD1PCFG and will work.

Go to advanced search