ankitvirdi4
Member level 4
- Joined
- Mar 13, 2012
- Messages
- 70
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 1,288
- Location
- India
- Activity points
- 1,928
Hello everybody, I am new to programming and PIC controllers, I just wrote down a code to blink led in MPLAB IDE v8.91 and compiled it using HI-TECH C.the code is
#include <htc.h>
#include "delay.h"
void main()
{
TRISC=0x00;
while(1)
{
PORTC=0x00;
DelayMs(500);
PORTC=0xff;
DelayMs(500);
}
}
it Compiles ok and the project builds successfully but it doesn't simulate in proteus. I have attached the workspace and simulation file please tell me where am i wrong.
#include <htc.h>
#include "delay.h"
void main()
{
TRISC=0x00;
while(1)
{
PORTC=0x00;
DelayMs(500);
PORTC=0xff;
DelayMs(500);
}
}
it Compiles ok and the project builds successfully but it doesn't simulate in proteus. I have attached the workspace and simulation file please tell me where am i wrong.
Attachments
Last edited: