Search found 787 matches

by anton
19 Dec 2012 09:59
Forum: mikroC PRO for PIC General
Topic: Switch-Case related question.
Replies: 5
Views: 2069

Re: Switch-Case related question.

Hello,

Your if statement should have a double ==

Code: Select all

int n, i, num1, num2;

switch(n){

case 1: { if (i == 1) num1++;
          else num1--;}
          break;
case 1: { if (i == 1) num2++;
          else num2--;}
          break;
}
Anton
by anton
13 Apr 2012 12:56
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Getting n samples of 2 analog inputs in a certain period
Replies: 9
Views: 3649

Re: Getting n samples of 2 analog inputs in a certain period

Just added a mikroC version as well.

The Pascal code is better commented and structured and this version should get you started

PIC24F ADC library with callback for mikroC

Anton
by anton
13 Apr 2012 12:44
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Getting n samples of 2 analog inputs in a certain period
Replies: 9
Views: 3649

Re: Getting n samples of 2 analog inputs in a certain period

Hi progman, I wrote a simple library for the PIC24F range where you can specify the AN channels you want to read as well as the sampling period. The library makes use of Timer 3 for the sampling frequency and has a callback function that is called as soon as the samples are ready. For example, you w...
by anton
02 Sep 2011 08:10
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: How to set Ethernet Host Name
Replies: 4
Views: 2837

Re: How to set Ethernet Host Name

Hello Abeltronics, Here is my attempt to get the DHCP working with host name. When you init the module, it will automatically get an IP address, gateway address and name server address. It will also update its host name in the DHCP tables. Unfortunately the code is written in mikroPascal PRO for PIC...
by anton
11 Aug 2011 14:12
Forum: mikroC PRO for PIC General
Topic: Support for SDD1963
Replies: 8
Views: 3607

Re: Support for SDD1963

no comment
by anton
11 Aug 2011 14:05
Forum: mikroC PRO for PIC General
Topic: Support for SDD1963
Replies: 8
Views: 3607

Re: Support for SDD1963

no comment
by anton
11 Aug 2011 13:15
Forum: mikroC PRO for PIC General
Topic: Suggest List of Projects
Replies: 0
Views: 837

Re: Suggest List of Projects

no comment
by anton
11 Aug 2011 13:06
Forum: mikroBasic PRO for PIC General
Topic: ps2 emulator, PS2 Write library?
Replies: 6
Views: 3388

Re: ps2 emulator, PS2 Write library?

Hi Dario, I've attached both projects source code. This was still compiled with the older versions of mikroPascal and there will be stuff you need to update to get it to compile, but it will give you a good idea of what to do. I just don't have time currently to help you to convert it to Basic Anton
by anton
11 Aug 2011 05:47
Forum: mikroC PRO for PIC General
Topic: Support for SDD1963
Replies: 8
Views: 3607

Re: Support for SDD1963

Hello, I've used the SSD1963 with a PIC24F before to drive a 4.2" 480x272 pixels LCD Here is the library I used (only in Pascal) :? It would be great if mikroE can add it to their TFT libraries and make the VisualTFT application so support 480x272 LCDs //=============================================...
by anton
08 Feb 2011 04:52
Forum: Development Boards
Topic: duvida com mp3 e mmc
Replies: 7
Views: 2373

Re: duvida com mp3 e mmc

Hello,

Please make sure that your file is named in 8.3 format for example

Code: Select all

SOUND001.MP3
all capitals.

Anton
by anton
06 Apr 2010 13:03
Forum: mikroPascal PRO for dsPIC30/33 and PIC24 Beta Testing
Topic: [Fixed] SSL Optimization too aggressive?
Replies: 1
Views: 1808

Re: SSL Optimization too aggressive

Hi mE team,

Looks like the problem was on my side. I've opened up all of the files in my project, modified them (added a space at the end) and then did a recompile all source files.
Now the projects is compiling and linking.

Anton
by anton
06 Apr 2010 11:56
Forum: mikroPascal PRO for dsPIC30/33 and PIC24 General
Topic: Code Explorer Breaks with a Type definintion
Replies: 3
Views: 2416

Re: Code Explorer Breaks with a Type definintion

Same problem. Here are two images to illustrate the problem, otherwise, keep up the good work

Thank you
Anton
by anton
06 Apr 2010 11:31
Forum: mikroPascal PRO for dsPIC30/33 and PIC24 Beta Testing
Topic: [Fixed] SSL Optimization too aggressive?
Replies: 1
Views: 1808

[Fixed] SSL Optimization too aggressive?

Hello mE team, Thank you for the excellent v3 PRO compiler. I do have one small problem, In my code I make use of a few record structures for example TDataPacket = record PktType : byte; DataLng : byte; RTUAddr : byte; RegAddr : byte; PktData : array[55] of byte; BufStatus : word; end; and say 2 var...
by anton
19 Jun 2009 08:14
Forum: mikroPascal General
Topic: Problem pic chaser
Replies: 8
Views: 5495

Hi,

What about

Code: Select all

procedure chaser1;
begin
  GPIO:=$01 ;
  repeat
    delay_ms(200);
    if GPIO = $04 then GPIO := GPIO shl 2
    else if GPIO = $20 then GPIO := $01
    else GPIO:=GPIO shl 1;
  until 1 = 0;
end;
Anton
by anton
19 Jun 2009 07:39
Forum: mikroPascal for dsPIC30/33 and PIC24 General
Topic: is it possible to disable the Uart FIFO on p24 ?
Replies: 20
Views: 16052

Hi, I have no idea why this happens, but as jpc also noted. The following code doesn't work on a PIC24. Only every 3rd character will interrupt. var k : word; procedure IRQ_Uart1_Int; org $2A; begin k := U1RXREG; end; Changing the code to call an external function, makes the code fully functional. f...

Go to advanced search