> Does the MCF52223 need a 48MHz crystal or an 8MHz crystal ?
I believe you can use either.
I have run the part with just the internal 8MHz relaxation oscillator, and it seems to work just fine on USB; however, I would not recommend this except in prototype applications since the USB full speed spec requires a 2500ppm clock tolerance, and the relaxation oscillator has a 20,000ppm tolerance.
The disadvantage of using an 8MHz crystal is that USB *has* to run at 48MHz, so you have to PLL from 8MHz to 48MHz and set USB_CTRL:CLK_SRC to 3, limiting the CPU speed to the same speed as USB (48MHz); the advantage of using an 8MHz crystal is that you can run the exact same SW (PLL dividers, etc.) as with the relaxation oscillator, with just a change of the CLKMOD0 pin.
The advantage of using a 48MHz crystal, on the other hand, is you can drive USB directly from the oscillator by setting USB_CTRL:CLK_SRC to 1, and then you can PLL the CPU up to 64MHz or 80MHz, depending on the part (I do this).
> What should i connect VDD_USB to ? Just to Vdd ?
I connect it to VDD, but I just followed the DEMO board schematic.
-- Rich