Search found 30 matches

by chapmjw
04 Feb 2013 14:23
Forum: mikroProg™ programmer and debugger
Topic: Need help with can't enable "Target circuit power options"
Replies: 2
Views: 1468

Re: Need help with can't enable "Target circuit power option

Complete removal and re-install has fixed the problem.
thanks
by chapmjw
03 Feb 2013 23:35
Forum: mikroProg™ programmer and debugger
Topic: Need help with can't enable "Target circuit power options"
Replies: 2
Views: 1468

Need help with can't enable "Target circuit power options"

I've got a new mikroProg and can't enable "Power target circuit from mikroprog" from MikroC for dspic software (ver 5.8.1). The option is greyed out. I can enable the power in the Voltage Options of the mikroProg Suite software and it works fine. But every time I reprogram it disables this option an...
by chapmjw
28 Aug 2012 00:27
Forum: Development Boards
Topic: FP1 Value in Eth click module?
Replies: 1
Views: 1173

FP1 Value in Eth click module?

Hi,

I'm adding Ethernet to my pic project, can some one please give me model# for FP1 in the "ETH click" module?
thanks
jim
by chapmjw
25 Feb 2010 05:28
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Help: RC13 & RC14 input and Timer 1&2 Noise?
Replies: 3
Views: 2215

Re: Help: RC13 & RC14 input and Timer 1&2 Noise?

Thanks for the reply, I can't move it over because it's part of a already completed board but I will try it without using the UART. I know what the input should be and I'll test to see if it's out of range.
thanks again.
jim
by chapmjw
24 Feb 2010 20:25
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Help: RC13 & RC14 input and Timer 1&2 Noise?
Replies: 3
Views: 2215

Help: RC13 & RC14 input and Timer 1&2 Noise?

Hi, I've got a problem with reading input on Pins Rc13 & Rc14. I think the problem is coming from Timer 1 and 2 which is on those pins also. I don't know how to work around it and would greatly appreciate any advice. What you see is input from 4 sources, Rc13 and Rc14 (Red and Blue) show noise with ...
by chapmjw
02 Aug 2009 02:52
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: int to character array?
Replies: 1
Views: 4018

int to character array?

This works;

int Val = 245;
char *c;
char ByteHigh;
char ByteLow;

void main()
{
c = (char*)&Val;
while(1)
{
Val++;
ByteLow = c[0];
ByteHigh = c[1];
}
}
by chapmjw
01 Aug 2009 22:55
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: int to character array?
Replies: 1
Views: 4018

int to character array?

What is the best way to convert and int to char array? int value = 1234; char c[2]; c[0] = value<0:7> (not real code of course) c[1] = value<8:15> My goal is to send each char to a computer via Uart where it will be converted back. I know I can convert to text and send it that way but I would rather...
by chapmjw
19 Jul 2006 04:34
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: mmc advise?
Replies: 7
Views: 5752

Working settings when inited with:
Mmc_Init(&PORTB, 8);

RF2,RF3,RF6,RD8

I assumed Port B was used for communication and would work like the help file shows. I guess it only inits the clock on PORTB.

Thanks for all the help it's working now.
jim
by chapmjw
18 Jul 2006 05:41
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: mmc advise?
Replies: 7
Views: 5752

Your correct, I don't know why i didn't change RF2 also. But I still get the same error.

output to MMC Terminal is:

PIC started

MMC init Err

MMC write Err

00-00-00 .....
00-00-00 .....

jim
by chapmjw
18 Jul 2006 00:07
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: mmc advise?
Replies: 7
Views: 5752

mmc advise?

Hi folks, This is my first attempt at writting to a sd card and I need a little advise. At this point i'm just trying to make it work. I'm using the 4013 chip and the MMc_Simplest example. I'm getting Init errors via RS232. I don't know what path to try next. Settings I'm using: EasydsPic2 4013 chip...
by chapmjw
12 Jul 2006 22:12
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: PWM 3011/4011
Replies: 3
Views: 5050

If I understand you correctly you want 20khz pwm: Let's say you clock is 10Mhz and pll Use project settings to set the pll set it to 8. that would give a 80mhz So for 80mhz Timer prescaler 1:1 Desired Clock 20khz Set Pr2 = 999 set oc1rs to any value from 0 to 999 for duty cycle. let me know if you h...
by chapmjw
12 Jul 2006 15:08
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: PWM 3011/4011
Replies: 3
Views: 5050

I think the PWM is still a work in process. I used the follwing a while back. Use Pr2 and timer prescaler to set your frequency See Equation 13-1 in datasheet. Change the value of oc1rs from 0 to 0xffff for duty. I think this was for the 3010, should be very close for 3011 void My_pwm_init() { OC1CO...
by chapmjw
15 Jun 2006 21:51
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: PWM for 3013 and 4013
Replies: 1
Views: 3794

PWM for 3013 and 4013

Hi folks,

I'm getting "Undeclared Identifier [Pwm_Init]" when trying to use the PWM library for the 3013 and 4013 chips. Works with 2010.


thanks
jim
by chapmjw
30 May 2006 03:18
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: Timer Interrupt help please
Replies: 3
Views: 4054

Timer Interrupt help please

Here's my crack at the timer interrupt. Just a modification of the Pascal example. void Timer1Int() org 0x1A How do we know that the address of this interrupt is 0x1A? I don't see a reference in any documentation. // timer interrupt void init() { TRISB = 0; LATB = 255; ADPCFG= 0XFFFF; } void InitTim...
by chapmjw
29 May 2006 17:55
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: Timer Interrupt help please
Replies: 3
Views: 4054

Timer Interrupt help please

Can some one please post an example using the timer interrupt for the 4013. I'm not getting anywhere with the datasheet or help.
thanks
jim

Go to advanced search