Ian_Hurlock Posted July 6, 2003 Report Share Posted July 6, 2003 Tried to open the 1 encoder test .mcw app in MPLAB.It said that this was not a real .mcw / skeleton file and would not open it for me to edit..........Any ideasTaIan Quote Link to comment Share on other sites More sharing options...
Steven_C Posted July 6, 2003 Report Share Posted July 6, 2003 I thought all the user-editable functions would be in the .asm file, which I opened with no probs in MPlab, but maybe you are doing something a bit more complicated than I think? Quote Link to comment Share on other sites More sharing options...
ilmenator Posted July 6, 2003 Report Share Posted July 6, 2003 Hi Ian,are you using the latest version of MPLAB?Best, ilmenator Quote Link to comment Share on other sites More sharing options...
TK. Posted July 7, 2003 Report Share Posted July 7, 2003 My advice: don't use MPLAB as it makes everything more complicated than required ;-)The main.asm file can be assembled directly with MPASM:MPLAB IDE/MCHIP_Tools/mpasmwin.exeJust click on this program (make a shortcut on your desktop) and load the main.asm file. The result will be a "main.hex" file which can be converted within the DOS shell by executing "convert.bat" (Perl must be installed) to a main.syx file.The source files (main.asm and all *.inc and *.h files) are editable with your favourite text editor. I prefer emacs, but there are also some other usefull editors especially for Windows available on the net. Especially "code highlighting" is an important feature, so that comments can be regognized easier.Best Regards, Thorsten.P.S.: Ian - I've received the encoders last week - thanks again!! :) Quote Link to comment Share on other sites More sharing options...
pilo Posted July 7, 2003 Report Share Posted July 7, 2003 A sort of a DOS makefile maybe useful and faster for compiling, converting the hex 2 syx, and uploading it into the midibox... no? (I made this under linux) Quote Link to comment Share on other sites More sharing options...
Ian_Hurlock Posted July 7, 2003 Author Report Share Posted July 7, 2003 Ok thanks for all the reply's guys ;DI will edit in text editor  and the MPSAM the thing.I thought  ( from the instructions of the main .asm )that I had to open the files this way.(edit ) Also I figured out how to convert the hex to syx.Very simple very nice to watch that loading going on.Tk..........glad you like the encoders. Let me know how they work.I can't get anything to work with mios but the lcd so far.Guess it will only be a matter of time !Tk...Lo said that his encoders worked regardless of being configured so in the mios.Does detent for the Chinese ( where they were made ) mean ratchet ?Your thoughts ?CheersIan Quote Link to comment Share on other sites More sharing options...
LO Posted July 8, 2003 Report Share Posted July 8, 2003 yeah well my encoders are def working (SID 18F)but its kinda weird like sometimes they will only step 2 increments at a time & sometimes it depends on where you are in the menu as to if it moves 1 or 2 steps at a time!if anyone knows whats going on or how I configure the incrementsI'd like to knoTIALo Quote Link to comment Share on other sites More sharing options...
Ian_Hurlock Posted July 8, 2003 Author Report Share Posted July 8, 2003 Hi Mattwanna send me your syx for the sid so I can sort out what i hav'nt doneian Quote Link to comment Share on other sites More sharing options...
TK. Posted July 9, 2003 Report Share Posted July 9, 2003 Hi Lo,for the adaption to your encoders you need to change:mios_tables.inc: the correct encoder type (detented or non-detentedmain.asm: set CS_MENU_USE_DETENTED_ENCODER to 1 if you are using a detented encoder for the menucs_menu.inc: the CS_MENU_EncSpeedSet function allows you to totally customize the encoder behaviour - however, changes shouldn't be necessary thereBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
LO Posted July 9, 2003 Report Share Posted July 9, 2003 Thanks TKYeah Ian Ill have a play tonite hopefully and if I can get the mods to work ill send you the fileLO Quote Link to comment Share on other sites More sharing options...
Ian_Hurlock Posted July 9, 2003 Author Report Share Posted July 9, 2003 He heNice Lo...............don't send it till you get it right Eh !!!!lol ;) ;D :( :o 8) ::) :PIan Quote Link to comment Share on other sites More sharing options...
LO Posted July 9, 2003 Report Share Posted July 9, 2003 check your inbox; smart assBTW thanks for the hints on enc setup speed I set mine all to slow now she works real nice ;) Quote Link to comment Share on other sites More sharing options...
TK. Posted July 9, 2003 Report Share Posted July 9, 2003 Hi LO,a mixed mode (built into MIOS itself) which dynamically switches between slow and fast behaviour depending on the encoder speed is planned - maybe this will be the best compromise :)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
LO Posted July 10, 2003 Report Share Posted July 10, 2003 sounds real nicethanksBTW I pulled the "clicker" out of my detented encoder (one from Ian) which was very easy to do now I have a nice smooth non detented! Original idea from Steve C! cheers mate. Quote Link to comment Share on other sites More sharing options...
TK. Posted July 14, 2003 Report Share Posted July 14, 2003 Hi LO,I noticed that without this "clicker" the encoder doesn't send clean pulses, so that MIOS sometimes isn't able to determine the correct direction. However, I will try to add a new encoder type which reacts only on the two clean flangs (means: the quadrupled resolution will be halfed to double resolution).Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
LO Posted July 14, 2003 Report Share Posted July 14, 2003 Yeah I also notice this; although it doesnt do it all the time and when set to slow it only jumps once the wrong way then continues with the correct direction.Would be nice to have it perfect tho! ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.