PDA

View Full Version : 18f4550 usb problem.. so im getting crazy..



MeSaKu
- 11th May 2009, 20:53
I compile only this code using 18f4550

DEFINE OSC 48

and mcsp will compile.

http://img410.imageshack.us/img410/5823/bosq.jpg (http://img410.imageshack.us/my.php?image=bosq.jpg)


after this,i want to use easyhid for usb on 18f4550. Easyhid regenerates codes, i dont write anycode in it and compile only easyhid's code. So i take this;

http://img410.imageshack.us/img410/6494/easybos.jpg (http://img410.imageshack.us/my.php?image=easybos.jpg)


see them im so sad.. now i try to compile mister_e's 18f4550 usbdemo,i write any code in it. it looks ;

http://img410.imageshack.us/img410/4923/mistere1.jpg (http://img410.imageshack.us/my.php?image=mistere1.jpg)

MeSaKu
- 11th May 2009, 20:54
(continue of first message)

i read forum again and i do this ;


' ucfg var byte ext
'ucfg=%....
(deactivate ucfg registers in code )

but i take this ;

http://img410.imageshack.us/img410/7260/mistere2.jpg (http://img410.imageshack.us/my.php?image=mistere2.jpg)




Now i'm so bad,so sad and so so death.. How can i use usb with 18f4550 ?

Please someone help me :o

mister_e
- 11th May 2009, 20:59
This is because you're using the latest version of MPASM and PBP is not ready yet for newer version of MPASM.

The simple fix for now is to Download MPLAB 8.15, and the error messages will go away.

Download it from Melabs Website.
http://www.melabs.com/support/mplab.htm

MeSaKu
- 11th May 2009, 21:03
now im downloading,and try it.

many thanks for your fast replying..

i will write again after try .

MeSaKu
- 11th May 2009, 22:03
thanks a lot mister_e ..
now all of my problems solved.