dspic30f3011 blink led help

Status
Not open for further replies.

devil6600

Full Member level 5
Joined
Nov 15, 2008
Messages
250
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Activity points
2,931
hi
can any one tell me how to blink led using c30 compiler on dspic30f3011, i have already tried it but unable to blink it.
here is my code, this is not working i have connected led on 10 pin (RB8)
Code:
#include "p30f3011.h"

_FWDT(WDT_OFF);
_FBORPOR(MCLR_EN & PWRT_OFF);

int main(void)
{
	TRISB = 	0;
	ADPCFG =	0xffff;
	PORTB = 	0xffff;
	while(1)
	{
	}
return 0;
}
thanks

---------- Post added at 15:38 ---------- Previous post was at 14:22 ----------

i want to use its internal oscillator...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…