Second Physical Communication Laboratory

The clone Gainer

by admin on 1 月.27, 2009, under USB controlle

The parts list

  • A USB microcomputer board finished product (PIC18F2550) \1,000 (tax-included).
  • A RS232C cable & power supply set \800 (tax-included) for three AKI - PIC programmer Ver. kits.
  • A USB cable (A - mini B) 1.5m \150 (tax-included) (entering one case of 240).
  • A set of AKI - PIC programmer Ver.4 (a completion board) \5,700 (tax-included).

Update software
http://akizukidenshi.com/catalog/contents2/ver4support.aspx

MPLAB downloadhttp://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469

MPLAB C Compiler for PIC18 Down load
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014

#include <p18cxxx.h>
#include <delays.h>

#pragma config FOSC = HSPLL_HS
#pragma config WDT = OFF
#pragma config PLLDIV = 5
#pragma config CPUDIV = OSC1_PLL2
#pragma config USBDIV = 2
#pragma config PWRT = ON
#pragma config BOR = OFF
#pragma config BORV = 2
#pragma config LVP = OFF
#pragma config VREGEN = ON
#pragma config MCLRE = OFF
#pragma config PBADEN = OFF

void main(void)
{
TRISB = 0;
LATB = 0x00;
while(1){
Delay10KTCYx(100);
LATB ^= 0xff;
}
}

The infometion source
http://blog.goo.ne.jp/sim00/e/fee5a8d229457154de4d7c10095ebd89

No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.