electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Plz explain to me how i program and like that


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Plz explain to me how i program and like that
Author Message
theelectronicsfan



Joined: 05 Nov 2009
Posts: 24


Post05 Nov 2009 7:51   

Plz explain to me how i program and like that


Quote:
ok the question is:
how do i program a type of microcontroller with an usb port??
like making led light up flash and such
Quote:
For an example


Link

plz help me
Back to top
Google
AdSense
Google Adsense




Post05 Nov 2009 7:51   

Ads




Back to top
wp100



Joined: 15 May 2009
Posts: 327
Helped: 45
Location: England


Post05 Nov 2009 10:23   

Re: Plz explain to me how i program and like that


Hi,

Flashing a led is one of the first things to do with a micro.

You need a bit of hardware, could be a breadboard as shown in that video or a ready made developement board - depends what is easily avaialable where you are.
You also need a programmer to put the code into the micro chip - that will depend on which type of micro you go for. AVR or PIC etc.

You then need to decide on which programming language you want to use Assembler or things like C or Basic.

Look around this forum and the web for tutorials for whichever chip and language you prefer.

Here is an example of a Pic tutorial in assembler which also incorperates a hardware series.

http://www.winpicprog.co.uk/pic_tutorial.htm
Back to top
anandpv2009



Joined: 11 Aug 2009
Posts: 63
Helped: 4
Location: India


Post05 Nov 2009 14:35   

Re: Plz explain to me how i program and like that


ha here is the code
//ccs


Code:
 #include <18F2550.h>
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock=20000000)
#include <lcd.c>

void main()
{
   int a=1;

   while(1)
   {   
      output_b(a);
      if(a==0x80)
      {   
         a=1;
      }
         else
      {
         a=a*2;
      }
      delay_ms(100);     //required delay
      
   }
   
}
Back to top
elrayes



Joined: 03 Jun 2008
Posts: 164
Helped: 8
Location: Egypt


Post05 Nov 2009 15:07   

Plz explain to me how i program and like that


get PIC18F4550 mcu from microchip, download MPLAB, C18 and Microchip USB framework from microchip website, use project called "CDC basic demo" for PICDEM board, modify in it, compile and build, download hex file on the PIC, your PC now will see a virtual COM port, you can now send data to and from the microcontroller using C++/VB or even matlab and windows hyperterminal, thats how you can make control over USB.
I know its very brief but if you need more details I don't mind at all.
good luck
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Plz explain to me how i program and like that
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
DEVELOPMENT OF SEQUENTIAL(C-like program) PROGRAM ON FPGA--- (3)
how can i write a program that computes the far field..... (2)
what is flat and hierarchical design plz expain that topic? (5)
Does it support to behave like that ? (1)
Temperature “sensor” that works like a fuse (2)
I am lookin for a company that sells flatcable like this one (4)
can I transfer data between two clock domain like that? (9)
want a program like dvbstream (3)
Similar program like workbench? (1)
who can explain a c program for me (8)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS