theelectronicsfan
Junior Member level 3
how do i program a type of microcontroller with an usb port??ok the question is:
like making led light up flash and such
For an example
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
how do i program a type of microcontroller with an usb port??ok the question is:
For an example
#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
}
}