Search found 34 matches

by cjogo
08 Sep 2013 17:58
Forum: Website & Forums General Discussion
Topic: Getting Product DVD vs Downloading?
Replies: 32
Views: 399165

Re: Getting Product DVD vs Downloading?

Interested in downloading only.

Not interested in CD option.

Best Regards
by cjogo
20 Aug 2012 19:35
Forum: mikroC PRO for ARM General
Topic: GPIO issue with STM32
Replies: 7
Views: 5460

Re: GPIO issue with STM32

Hi MrB, Please check the examples that are available for the development boards as this is where I got a lot of information from. Bear in mind that documentation usually lags behind the finished product. Also ST do a 1096 page reference manual RM0008 that defines a lot of the GPIO registers etc. Aga...
by cjogo
06 Aug 2012 10:33
Forum: mikroC PRO for ARM General
Topic: 0ne wire - EasyMx PRO v7 for STM32 AR - STM32F107VC
Replies: 3
Views: 2331

Re: 0ne wire - EasyMx PRO v7 for STM32 AR - STM32F107VC

Hi Filip,

Many thanks. I should have checked that! Made an assumption again!

Regards,
CJogo.
by cjogo
05 Aug 2012 16:34
Forum: mikroC PRO for ARM General
Topic: 0ne wire - EasyMx PRO v7 for STM32 AR - STM32F107VC
Replies: 3
Views: 2331

0ne wire - EasyMx PRO v7 for STM32 AR - STM32F107VC

Development board - EasyMx PRO v7 for STM32 ARM Controller - STM32F107VC - 72MHz. Cannot seem to get the One wire example to work with the DS1820 regardless of (Edit Project - Load scheme), Correct switch selected for the DS etc. Would it be possible for someone with the above board/DS to see if the...
by cjogo
01 Apr 2011 12:18
Forum: Website & Forums Wishlist
Topic: active topics
Replies: 13
Views: 8486

Re: active topics

Seconded .... Please remove ....

Distracts from a brilliant forum....

Comp
by cjogo
07 Oct 2010 14:20
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: coding problem
Replies: 56
Views: 13053

Re: coding problem

// With crystal set at 10 MHz.... #define T1_PR1 0x09C4 // Preset of 1 gives 0.001 timebase You will need to adjust to suit! unsigned int CNtimer, CNtimerAcc; void Timer1Int() iv IVT_ADDR_T1INTERRUPT{// 0x1A Address in the interrupt vector table of timer1 CNtimerAcc++; // increment timer here each ...
by cjogo
06 Oct 2010 22:06
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: coding problem
Replies: 56
Views: 13053

Re: coding problem

For the example shown I was looking for a time base of 0.001, 0.01 and 0.1 sec. #define T1_PR1 0x09C4 #define T2_PR2 0x61A8 #define T3_PR3 0x7A12 PR1 = T1_PR1; // Interrupt period is 0.001 sec PR2 = T2_PR2; // Interrupt period is 0.01 sec PR3 = T3_PR3; // Interrupt period is 0.1 sec col_1_________co...
by cjogo
06 Oct 2010 16:12
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: coding problem
Replies: 56
Views: 13053

Re: coding problem

Hi Edward,

Over the years I've tried to embed the data sheet into the program. Saves hunting in the future.
All I do is copy and paste from the official DsPic doc...

http://ww1.microchip.com/downloads/en/D ... 70046E.pdf

Done once, used many times!!! Very boring I know...

Cjogo :D
by cjogo
06 Oct 2010 15:48
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: coding problem
Replies: 56
Views: 13053

Re: coding problem

Hi Edward, I'm from the old school whereby when you address the microchip flags you deal with the exact bit from the data sheet. No mistakes with boolean here.... See below for my typical initialisation routine... Long winded I know but traceable six months down the line when I've slept and woken up...
by cjogo
06 Oct 2010 15:23
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: coding problem
Replies: 56
Views: 13053

Re: coding problem

void Timer1Int() iv IVT_ADDR_T1INTERRUPT{// 0x1A Address in the interrupt vector table of timer1 LATD=~PORTD; IFS0.T1IF = 0; //interrupt flag cleared } void CNInterrupts() iv IVT_ADDR_CNINTERRUPT{ //0x0032 Address in the interrupt vector table of CN // Do something here when cn on pin occurs IFS0.C...
by cjogo
06 Oct 2010 14:08
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: coding problem
Replies: 56
Views: 13053

Re: coding problem

Hi Edward, First of all check out this excellent book from MikroElectronika :- http://www.mikroe.com/eng/products/view/266/programming-dspic-mcu-in-c/ Worth it...... See the charter on interrupts.. e.g. ........ void CNInterrupts() iv IVT_ADDR_CNINTERRUPT{ //0x0032 Address in the interrupt vector ta...
by cjogo
06 Oct 2010 11:31
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: coding problem
Replies: 56
Views: 13053

Re: coding problem

Hi edwardcullen, Just noticed that when you adress interrupts in DsPic see below.... void Timer1Int() iv IVT_ADDR_T1INTERRUPT{// 0x1A Address in the interrupt vector table of timer1 LATD=~PORTD; //IFSO = IFSO & 0XFFF7; Always drill down to bit level as some flags are read only! IFS0.T1IF = 0; //inte...
by cjogo
27 Sep 2010 14:05
Forum: mikroC PRO for PIC General
Topic: LCD Display
Replies: 3
Views: 1422

Re: LCD Display

"Hello" ........ s1023

Code: Select all

  Lcd_Out(1,6,"Hello");                 // Write text in first row
Regards
cjogo
by cjogo
03 Sep 2010 08:17
Forum: mikroC PRO for PIC General
Topic: Swap 2 int Problem
Replies: 5
Views: 2084

Re: Swap 2 int Problem

thank u for help, even i fixed it its still the same error,donno if i need to include something,or is'nt the way i wrote them, hope someone has any adeas ,13 392 'swap' Identifier redefined my prog.c If you have have modified the file and saved it as a new name please make sure that you have added ...
by cjogo
02 Sep 2010 23:18
Forum: mikroC PRO for PIC General
Topic: Swap 2 int Problem
Replies: 5
Views: 2084

Re: Swap 2 int Problem

Hi MR2010,

Avoid Swap/swap ( c is case sensitive) use SwapOver e,g, as swap is reserved (ctrl + space) in code window shows that the word is used. Hope this helped

Cjogo

Go to advanced search