Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Beginer to PIC10F206, writing small program for timer or delay

Status
Not open for further replies.

rana_navin

Newbie level 2
Joined
May 31, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
I wrote a program in C as below, trying to give delay using loop by varying value of i, Suggest whether this program will work for this MCU

#include <pic.h>
#include "pic12f206.h"

void main()
{
unsigned int i=0;

TRIS = 0x00;
GP0= 1;
while(i <5000)
{
TMR0 = 0x00;
while(TMR0 != 0xFF);
i++;
}
GP0= 0;
while(1);

}
 

Check these PIC programming tutorials out, they are some of the best I've come across:

**broken link removed**

They cover both the basline and midrange PICs with assembly and C programming. Do a nice job of teaching many facets of timers, along with other interesting topics.
 

Thanks!

But I am facing problem not in making program but in connecting Pikit3 or ICD3 to program PIC10f206

Regards,

Navin
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top