hardware jm 60

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hardware jm 60

4,222 Views
fredycolombia
Contributor I
I´m trying to get running jm 60 but  I don´t  work.
I do I simple program  to turn on and off a led , for test the mcu.
then I burn the program using bdm.
Until here, there is no problem with anything.
But when I want to see if it works, it don´t do anything.
I have burn diferents programs but nothing happens, I think the problem is in my hardaware.
I used:
xtal = 12Mhz
Rf = 1M
Rs=330k
all vdd = 5V
all Vss =ground.
I can´t see where is the problem or why the program no runs.
I do the connections  that suggest in datasheet.
as the attach.
Thanks for your help.
 
Regards,
Fredy
Labels (1)
0 Kudos
8 Replies

738 Views
JimDon
Senior Contributor III
Since you did not put pin numbers on your diagram or state which package you are using, it is impossible to say if you hooked things up correctly. In fact, since there are no pins numbers, how did you wire it? I usually take that page from the spec sheet, print it out and pencil in the pin numbers from the package diagram.
You don't show how the led is connect either. If you are using the 64/32/44 pin LQFP, there are at least 2 VDD and VSS pins that must be connected, possibly others..

I've wired up 6 boards using 6 different processors using the diagram from the spec sheet, and AFTER I corrected all my wiring errors, it always worked. My motto is wire once, check 3 times.

Are you saying that you can connect with a BDM and Codewarrior?

If so  you should generate a "default" project using Processor Expert (choosing the correct MCU) and use the internal clock generator to test things out first.  That way it does not matter if you correctly connect the xtal.



0 Kudos

738 Views
fredycolombia
Contributor I
Hi Jim,
that`s ok.
Here I go, I need to test jm60 with an external xtal because I need to use usb interface.
About bdm I`m using  demo_qe and it burns correctly.
I´m using  64 pin LQFP.
Now I attach the schematic that have the form like I wire it.
Can I test jm60 with a default project using a external cristal??
Can you see my mistake??
Can you help me with your schematic that works using an external cristal??

thanks.
fredy


Message Edited by fredycolombia on 2008-03-11 09:30 PM
0 Kudos

738 Views
JimDon
Senior Contributor III
My suggestion was to make the LED blink using the internal clock as a test, not to get rid of the xtal.

In any event, I recommend you download this schematic as it is the reference design for what you are trying to do. This defines how the circuit should  be built.

if you don't already  have one, I also recommend that you buy a DEMOJMSKT board for like 49.00 and get your code working on this first, this will make it much easier to figure out whats whats.





Message Edited by JimDon on 2008-03-11 11:00 PM
0 Kudos

738 Views
fredycolombia
Contributor I
hi,
Well,  I understand that my connections are correctly??
if I want to test using and  internal clock, can you helpme with a simple example that can I use to check the MCU??
So, if I use and internal clock,  I don't need to use and external clock. ¿don't you?

thanks for your help.
regards,
fredy

0 Kudos

738 Views
JimDon
Senior Contributor III
I did not check your connections. Download the schematic and check them.
If you look at the schematic, you will see how it should be.

Just because they are correct on paper, does not mean they are correct on the board either.

Do you know how to use CodeWarrior?
If you create a new project using Processor Expert and select JM60 it will show you how to set up the internal clock, as it uses this by default.
0 Kudos

738 Views
bigmac
Specialist III
Hello Fredy,
 
One of your problems is that the series resistor Rs is far too high (330k) for a 12 MHz crystal.  For this type of crystal, a more typical value would be zero ohms.  The inclusion of this resistor is usually necessary only for low frequency crystals, to control the drive level to the crystal.
 
The other resistor Rf should remain at 1Mohm.  What capacitor values are you using at the crystal?  Equal values of 22p should normally give satisfactory results.  I presume you have tied the earthy end of both capacitors to the ground plane, as well as to pin 59, and the components are located very close to the MCU package.
 
I also notice that you have not shown any bypass capacitor between pins 44/45 and 46/47.
 
Regards,
Mac
 
0 Kudos

738 Views
fredycolombia
Contributor I
Hello and thanks,
 
I check the values and the connections, and finally it runs with a default project.
 
Now want to use  bootloader in jm60,  for this I check the  AN3561,
 
So I understand that I have to burn the project  (AN3561SW)  using bdm,  and  next  I can update the program entering in bootloader mode,  or  run the programs, entering in user mode,  I can select this options using PTG0.
Adittional to wire the  usb  connections,   I have dudes about the value of the xtal that use the source code AN3561SW,   or what I have to wired ot get bootloader working.
Thanks for the help or suggestion about this.
 
Regards.
Fredy.
0 Kudos

738 Views
RickN
Contributor I
Hi,
 
 
  I recommend using the CMX_USB-Lite stack on the 9S08JM60 MCUs, as described in AN3565.  You have two options for USB stacks, and you should look closely at the CMX stack.  Free USB stack source code that can be built with CodeWarrior development tools (remember to get the JM60 patch, or the JM16 patch).
 
 
   Thanks,
 
      Rick
 
Message Edited by t.dowe on 2009-09-16 10:03 AM
0 Kudos