XboxHacker BBS
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 19, 2013, 04:56:27 AM


Login with username, password and session length


Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
  Print  
Author Topic: USB SPI Flasher with PIC18F2455 - now with source and binaries  (Read 314696 times)
threesixtyuser
Master Hacker
****
Posts: 115


View Profile
« Reply #580 on: January 13, 2010, 10:55:34 AM »

Have I misread the USB socket pinout?

From the datasheet - http://www.farnell.com/datasheets/29091.pdf it looks to me like pin1 is top left and then it goes clockwise and pins 1 and 2 are the rear board pins and 3 and 4 the front ones.
Nope, faulty datasheet! I used the same Lumberg socket and it simply doesn't match the USB standard. Just google for "usb b" pinout and you'll find this one is wrong.

I measured the pins because pin number weren't mentioned in the PCB layout of the datasheet either and came out with the following pinout (seen from te top) for the circuit board/socket:

Incorrect schematic removed, refer to this post for a (at this moment) correct one

« Last Edit: January 15, 2010, 09:13:38 AM by threesixtyuser » Logged
doveman
Master Hacker
****
Posts: 186


View Profile
« Reply #581 on: January 13, 2010, 11:16:22 AM »

Thanks. It won't take much re-arranging to correct for that.
Logged
bigfish58
Member
**
Posts: 27


View Profile
« Reply #582 on: January 13, 2010, 12:17:10 PM »

Can anyone confirm this is right before I go ahead and build it;



Thanks Smiley
« Last Edit: January 13, 2010, 12:19:58 PM by bigfish58 » Logged
Arakon
Administrator
Xbox Hacker
*****
Posts: 6925


View Profile
« Reply #583 on: January 13, 2010, 01:27:21 PM »

Pin 26 goes to GND on the chip, pin 27 doesn't have any connection after the resistor.
Logged

I do NOT give support by email, PM, ICQ or whatever. Anyone annoying me that way will have his balls removed. With a rusty butterknife. Slowly. And I'll enjoy doing it.
bigfish58
Member
**
Posts: 27


View Profile
« Reply #584 on: January 13, 2010, 01:37:14 PM »

Oops Tongue

Switched them round Smiley Thanks
Logged
bigfish58
Member
**
Posts: 27


View Profile
« Reply #585 on: January 13, 2010, 02:00:38 PM »

The final PCB;



Hopefully should get this made tomorrow Cheesy
« Last Edit: January 13, 2010, 02:04:04 PM by bigfish58 » Logged
SpikedCola
Member
**
Posts: 44


View Profile
« Reply #586 on: January 13, 2010, 02:43:14 PM »

If you relocate the parts and add a ground plane, you can make the entire board single-sided, with no jumpers Smiley
Logged
doveman
Master Hacker
****
Posts: 186


View Profile
« Reply #587 on: January 13, 2010, 03:24:21 PM »

I just realised there's a couple of mistakes in my layout.

Most importantly, I hadn't connected pin 19 to anything  Roll Eyes I also don't need that diagonal lead to the - of C3 as I can just join the long vertical lead to the GND of the jumper. Sorry for the sloppy edits, but I was only using a demo of LochMaster, so I couldn't save and my PC crashed!



Logged
doveman
Master Hacker
****
Posts: 186


View Profile
« Reply #588 on: January 13, 2010, 03:25:38 PM »

bigfish58, what 8x8 connecter and lead are you using as that would make my layout somewhat tidier?
Logged
bigfish58
Member
**
Posts: 27


View Profile
« Reply #589 on: January 13, 2010, 03:33:46 PM »

I'm using a 8x8 pin Header.

Btw, I'm using some software called PCB Wizard - good for this kinda thing Smiley

It also converts it to a PCB for you Tongue
Logged
doveman
Master Hacker
****
Posts: 186


View Profile
« Reply #590 on: January 13, 2010, 04:12:54 PM »

Cheers for the tip but I don't design enough to justify the price.

I think I'm going to stick with the 5x5 headers and 10-core cable. The 8x8 and 16-core are quite a bit more expensive and I'm not sure there's room to mount the 8x8 connector on the Xbox.
Logged
bigfish58
Member
**
Posts: 27


View Profile
« Reply #591 on: January 13, 2010, 04:27:18 PM »

Who says we have to buy it  Roll Eyes
Logged
Arakon
Administrator
Xbox Hacker
*****
Posts: 6925


View Profile
« Reply #592 on: January 13, 2010, 04:34:40 PM »

Who says we'll tolerate piracy discussions?
First and only warning.
Logged

I do NOT give support by email, PM, ICQ or whatever. Anyone annoying me that way will have his balls removed. With a rusty butterknife. Slowly. And I'll enjoy doing it.
doveman
Master Hacker
****
Posts: 186


View Profile
« Reply #593 on: January 13, 2010, 04:48:20 PM »

Is there a maximum recommended length for the LPT cable to the ART2003 programmer? I'm re-using the lead I was using for flashing the NAND, which worked most of the time (had to re-dump the odd block, but then there was the additional wiring inside the Xbox), so should that be OK?
Logged
chaoz2
Member
**
Posts: 10


View Profile
« Reply #594 on: January 13, 2010, 06:35:25 PM »

just a final note on pin 20 and pin 14 capacitors value


the creator of art2003 programmer also made an usb programmer using pic18f2550

schematics here http://www.foxdelta.com/products/programmer/upp/fd-upp-schematic.jpg

part list here http://www.foxdelta.com/products/programmer/upp/usbprogrammer-kit.pdf

firmware here http://www.vu2fd.com/software/FD-UPP.zip


he even add leds if can be of help (that busy led is juicy)

i am not too good to read schemes in detail, but someone hopefully can do it!


(i see 10uf for pin 20 and 100nf for decoupling and 0,4uf for pin 14 but i can be mistaken)
« Last Edit: January 13, 2010, 06:57:20 PM by chaoz2 » Logged
maximilian0017
Xbox Hacker
*****
Posts: 684


View Profile
« Reply #595 on: January 13, 2010, 07:04:42 PM »

Ok, lets settle this  Smiley

Latest Pic datasheet
--------------------------
17.2.2.8 Internal Regulator
An external 220 nF (±20%) capacitor is required for stability.

TABLE 28-5:USB INTERNAL VOLTAGE REGULATOR SPECIFICATIONS
Min 0.22 μF
Typ 0.47 μF
Max 12(2) μF Ceramic or other low-ESR capacitor recommended

2: This is a recommended maximum for start-up time and in-rush considerations. When the USB regulator is
disabled, there is no maximum.
--------------------------

Ok 220nF seems to be the minimum, but 0.47 μF is typical and should this be the best option, agreed?
( higher as 0.22 μF would probably be used id the Vusb was used for something.)

100nF is standard for decoupling per ic but i would ad a larger capacitor for the complete circuit. Would it be better to add two independant capacitors or would one larger one be enough?
Logged
SpikedCola
Member
**
Posts: 44


View Profile
« Reply #596 on: January 13, 2010, 09:13:28 PM »

Correct, 0.47uF is *the* proper value.
Logged
geep6
Member
**
Posts: 27


View Profile
« Reply #597 on: January 14, 2010, 12:38:19 AM »

here is the one im making here is the eagle cad file    http://www.filefactory.com/f/bb3892e1da3ae838/        
« Last Edit: January 14, 2010, 01:10:21 AM by geep6 » Logged
threesixtyuser
Master Hacker
****
Posts: 115


View Profile
« Reply #598 on: January 14, 2010, 03:17:39 AM »

Ok, lets settle this  Smiley

Latest Pic datasheet
--------------------------
17.2.2.8 Internal Regulator
An external 220 nF (±20%) capacitor is required for stability.

TABLE 28-5:USB INTERNAL VOLTAGE REGULATOR SPECIFICATIONS
Min 0.22 μF
Typ 0.47 μF
Max 12(2) μF Ceramic or other low-ESR capacitor recommended

2: This is a recommended maximum for start-up time and in-rush considerations. When the USB regulator is
disabled, there is no maximum.
--------------------------

Ok 220nF seems to be the minimum, but 0.47 μF is typical and should this be the best option, agreed?
( higher as 0.22 μF would probably be used id the Vusb was used for something.)

100nF is standard for decoupling per ic but i would ad a larger capacitor for the complete circuit. Would it be better to add two independant capacitors or would one larger one be enough?


So shortly this means that the ideal conclusion for this circuit ends up in:

Crystal Cap (COG/NPO): (2x Ccrystal) - PIC's Cosc2

Cap on pin 14 (X7R/X8R): 470nf/0,47μF (or within a range of 0,22μF - 12μF)
Cap on pin 19/20 (X7R/X8R): 100nF/0,1μF (or within a range of 0,1μF - 10μF)

COG/NPO and X7R/X8R because X5V X7S Z5U and Y5V have too much capacitance change over temp (this doesn't mean they won't work)

Correct me if I'm wrong and I'll correct my post!
« Last Edit: January 14, 2010, 10:15:59 AM by threesixtyuser » Logged
maximilian0017
Xbox Hacker
*****
Posts: 684


View Profile
« Reply #599 on: January 14, 2010, 04:12:50 AM »

So shortly this means that the ideal conclusion for this circuit ends up in:

Looks good,

The only question remaining is the single 10 μF or a 100nF and a 10 μF.

Logged
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM