http://vusb.wikidot.com/project:ps2usb ,build circuit on 5v, with two zener 3.6v diodes.
Placed 100nF close to uc, check all conections twice.
I flash the atmega8 succesfuly, set fuse bits acording to makefile instructions:
Code: Select all
################################## ATMega8 ##################################
ATMega8 FUSE_L (Fuse low byte):
0x9f = 1 0 0 1 1 1 1 1
^ ^ \ / \--+--/
| | | +------- CKSEL 3..0 (external >8M crystal)
| | +--------------- SUT 1..0 (crystal osc, BOD enabled)
| +------------------ BODEN (BrownOut Detector enabled)
+-------------------- BODLEVEL (2.7V)
ATMega8 FUSE_H (Fuse high byte):
0xc9 = 1 1 0 0 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000)
^ ^ ^ ^ ^ ^ ^------ BOOTSZ0
| | | | | +-------- BOOTSZ1
| | | | + --------- EESAVE (don't preserve EEPROM over chip erase)
| | | +-------------- CKOPT (full output swing)
| | +---------------- SPIEN (allow serial programming)
| +------------------ WDTON (WDT not always on)
+-------------------- RSTDISBL (reset pin is enabled)
############################## ATMega48/88/168 ##############################
ATMega*8 FUSE_L (Fuse low byte):
# 0xdf = 1 1 0 1 1 1 1 1
^ ^ \ / \--+--/
| | | +------- CKSEL 3..0 (external >8M crystal)
| | +--------------- SUT 1..0 (crystal osc, BOD enabled)
| +------------------ CKOUT (if 0: Clock output enabled)
+-------------------- CKDIV8 (if 0: divide by 8)
ATMega*8 FUSE_H (Fuse high byte):
0xde = 1 1 0 1 1 1 1 0
^ ^ ^ ^ ^ \-+-/
| | | | | +------ BODLEVEL 0..2 (110 = 1.8 V)
| | | | + --------- EESAVE (preserve EEPROM over chip erase)
| | | +-------------- WDTON (if 0: watchdog always on)
| | +---------------- SPIEN (allow serial programming)
| +------------------ DWEN (debug wire enable)
+-------------------- RSTDISBL (reset pin is enabled)
Low byte 0x9F
High byte 0xC9
Afterthat plug usb in PC and get pop up USB device not recognised.
Mesuring results on the board:
betwen + and - terminal (on 100uF) capacitor have 4.8V.
betwen pin 2 and gnd have 2.1V
betwen pin 4 and gnd have 12mV
Can i see on pc ps2usb interface connected without playstation yoystick connected on ps2usb interface?
Thanx