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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top