Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Sort By

USER REQUESTS

first | 1 | 2 | 3 | 4 | 5 | 6 | 7 last
Andrew Mihelis
thelegr

posted on 2012/06/09 10:06:17 AM CEST

Timers (Real time clock)

AD8951 example code

Hello, im quite new in μPascal (i have made a lot simple projects with LCDs, GLCDs, Serials and one with USB on PIC18F4550)...

I Need an example code to learn how to control AD8951 with PIC16F887. I want to make a DDS Generator with 2hrs sweep (for a Rife machine for cancer's treatment, if you want information contact me)

thank you in advance, Andrew Mihelis

Marek Novak
marekgood

posted on 2012/01/27 12:32:18 PM CET

Timers (Real time clock)

MCP79410 RTCC

Hello,
it would be great if someone could do MCP79410 code. I don't know what I am doing wrong but I cannot make my own code, it does not work.

Bahman Mohammadhoseini
bobx

posted on 2011/10/15 03:48:07 AM CEST

Timers (Real time clock)

Reapeated 5 seconds interrupt

Hello.I want to write an interrupt so that at every 5 seconds goes to one of the 3 different
labels in my Main program and runs all instructions followed by each labels
and after run the label3 back again to the label1 and repeat all those
labels endlessly,that is;

.........
........... //*** My circuit specifications; PIC18F8722,XTAL=20MHZ.
..........

void interrupt(){ // 5 seconds interrupt.

????? //At each 5 seconds just goes and runs
//one of labels and do the other one then
//reapeat those again and again,endlessly.
}//~

void main(){
.............

Label1:
instruction1;
instruction2;
instruction3;
.......

Label2:
instructionx1;
instructionx2;
instructionx3;
.......

Label3:
instructiony1;
instructiony2;
instructiony3;
.......

}//~!

Would you please help me to write that interrupt?

Thanks,

Bahman Mohammadhoseini
bobx

posted on 2011/09/28 12:21:41 PM CEST

Timers (Real time clock)

My PIC 18F8722 clock/XTAL.

Hello.Pardon me,I forgot to write my PIC clock;I used a 20MHZ crystal;XTAL=20MHZ and
want to measure 1usec up to 1sec.

Thanks,

Bahman Mohammadhoseini
bobx

posted on 2011/09/28 08:44:01 AM CEST

Timers (Real time clock)

Time measuring with Timer1 of PIC 18F8722.

Hello.I want to active and ON a timer like TIMER1 of PIC 18F8722 in my main program and whenever I applied a positive going pulse input to pin RB2/INT2 of that PIC, then the TIMER1 turns off immidiately and calculate the time interval
passed between TIMER1turned ON and turned OFF in usec ,msec or sec. .The range of time is from 1usec up to 1 sec.
Would you please give me the above code?

Thanks,

first | 1 | 2 | 3 | 4 | 5 | 6 | 7 last