[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines

Home
Forum
Problem?-Solution
Projects Showcase
LCD-KEYS OnePort
PIC Introduction
PIC Programmer
Schematic Tool
PIC Projects
Tips & Techniques
PIC Tutorials
C Course
Digital Downloads
Store
My SECRET
Oscilloscopes
About Me
Search This Site
Freebies
Articles
Books
Resource Links
Site Map
Video du Jour
Rant/Rave
Privacy Policy
Contact
Terms of Use

16F690 MIKRO C - Code loop Problem

Hi,
I cannot get the code listed below to loop. When I load it onto the pic 16f690 only 1 led lights up. The debugger shows PORTC C is being increased by 1 each time. Yet the leds to not light up. Can anyone help? I am using PICKIT 2 to program.


void main(void){
TRISC=0;
while(1)
{
PORTC=PORTC+1;
}
}

Comments for
16F690 MIKRO C - Code loop Problem

Click here to add your own comments

Sep 09, 2007
Slow Down The Loop
by: circuited

If you want to see the change of the output put some delay inside the loop:

while(1){
PORTC = PORTC + 1;
Delay_ms(200);
}



Sep 04, 2007
RE
by: Anonymous

You must put a delay_ms(1000); after and before PORTC=PORTC+1;

Click here to add your own comments

Join in and write your own page! It's easy to do. How?
Simply click here to return to Ask for a Solution to your microcontroller problem


footer for microcontroller page