stryd_one Posted June 27, 2007 Report Posted June 27, 2007 OK I read some more, and you do need to start with an even number....Edit: Seeing as you are interested...This is the code that gets the pin status for the pair. The first pin number should be put into in W. The address of the beginning of the contents of the whole SR should be loaded into FSR1. (This is done by MIOS_DIN_2PinsGet when it is called from MIOS_ENC_Tick. This happens automatically when the encoder is moved.)The function checks the bits of the pin number after copying them to MIOS_PARAMETER1, and uses the bits to jump to the appropriate code (this is an optimisation which makes slightly bigger code which is much faster). These sections are specially designed to get pins 0+1,2+3,4+5,6+7 from each SR: MIOS_SRIO_Get2_Cont_Pin01, MIOS_SRIO_Get2_Cont_Pin23, MIOS_SRIO_Get2_Cont_Pin45, MIOS_SRIO_Get2_Cont_Pin67....Then the specialised section of the function gets the pin values from the SR, and sets bits in W accordingly.At the very end W is copied to MIOS_PARAMETER1 for ease of use.;; --------------------------------------------------------------------------;; INTERNAL;; MIOS SRIO Get2: returns value from two DIN/DOUT Neighbour Pins;; IN: number of first Pin in WREG' date=' register address in FSR;; OUT: 0, 1, 2, 3 in MIOS_PARAMETER1 and WREG;; USES: FSR1 and BSR;; --------------------------------------------------------------------------MIOS_SRIO_Get2 movwf MIOS_PARAMETER1 rlf WREG, F swapf WREG, W andlw 0x0f addwf FSR1L, F IFSET MIOS_PARAMETER1, 2, rgoto MIOS_SRIO_Get2_Cont_Pin4567MIOS_SRIO_Get2_Cont_Pin0123 IFSET MIOS_PARAMETER1, 1, rgoto MIOS_SRIO_Get2_Cont_Pin23MIOS_SRIO_Get2_Cont_Pin01 movlw 0x00 IFSET INDF1, 0, iorlw 0x01 IFSET INDF1, 1, iorlw 0x02 rgoto MIOS_SRIO_Get2_EndMIOS_SRIO_Get2_Cont_Pin23 movlw 0x00 IFSET INDF1, 2, iorlw 0x01 IFSET INDF1, 3, iorlw 0x02 rgoto MIOS_SRIO_Get2_EndMIOS_SRIO_Get2_Cont_Pin4567 IFSET MIOS_PARAMETER1, 1, rgoto MIOS_SRIO_Get2_Cont_Pin67MIOS_SRIO_Get2_Cont_Pin45 movlw 0x00 IFSET INDF1, 4, iorlw 0x01 IFSET INDF1, 5, iorlw 0x02 rgoto MIOS_SRIO_Get2_EndMIOS_SRIO_Get2_Cont_Pin67 movlw 0x00 IFSET INDF1, 6, iorlw 0x01 IFSET INDF1, 7, iorlw 0x02 ;; rgoto MIOS_SRIO_Get2_EndMIOS_SRIO_Get2_End andlw 0x03 ; for correct status (Z flag set/not set...) movwf MIOS_PARAMETER1 return[/quote'] Quote
MTE Posted June 27, 2007 Author Report Posted June 27, 2007 ok got it :) many thnx for that information Quote
MTE Posted June 28, 2007 Author Report Posted June 28, 2007 Namaste :)Oh man, what a work, but its done... :)for larger Image click mefor larger Image click mefor larger Image click mefor larger Image click mefor larger Image click mefor larger Image click mefor larger Image click meCya later ;) Quote
NorthernLightX Posted June 28, 2007 Report Posted June 28, 2007 That panel is madness ;DGreat artwork, me likes the magic mushrooms 8)Are you going to leave it transparent? Won't that make it very hard to distinguish which LEDs are lit? Quote
MTE Posted June 28, 2007 Author Report Posted June 28, 2007 Many thnx :)The Panel was transparent Acryl, but before foil-gluening ive silver-sprayed from behind ;) Quote
Sasha Posted June 29, 2007 Report Posted June 29, 2007 Great work Robert! What you will do with place where display will go as it is satinized. I suppose you will cut the panel and add some window on top of it. Right? Quote
MTE Posted June 29, 2007 Author Report Posted June 29, 2007 Gmorning Sashayou almost right...the places where u see the black bold borders are for the displays. I'll connect them directly on the frontside of the panel and put a window-glass over it....the EL-Foil will be mounted on the backside on the panel....this sections in the borders arent sprayed from behind, only satiniced....so this area will glow nice for backlighting the displays ;)More Pictures in a few days, this Plates must dry for 2-4 days, how longer so better the foil holds on the panel for centuries :D Quote
Sasha Posted June 29, 2007 Report Posted June 29, 2007 OK. Will you have something around the displays to protect it against dust? And don`t forget some strobe protectors too! ;D Quote
MTE Posted June 29, 2007 Author Report Posted June 29, 2007 And don`t forget some strobe protectors too!:DI thinking about a metal-border around the displays, connected to ground. In german section a user gives me that hint, cause about of the electromagnetic fields....also he said the connection-wires should be so short as possible....I'll test this if im mounting the parts on the panel ;) Quote
MTE Posted July 8, 2007 Author Report Posted July 8, 2007 Oh f....ing Shit :'( >:(I was wondering why my Encoders dosnt works...2 days I soldered all together very, very concentrated....Now 2 hours of Bugsearching I found this bad mistake...well, we discussed this here some posts ago (Reply #47 - #50) and I marked my Pintable to dont get this mistake....but after hours of soldering and a overdose of Solderfume i overseen that All my connectors are hot-glued and fitted with shrink-hose's....so it will be took many time to fix this :( :'( Quote
NorthernLightX Posted July 8, 2007 Report Posted July 8, 2007 Oh f....ing Shit :'( >:(I was wondering why my Encoders dosnt works...2 days I soldered all together very, very concentrated....Now 2 hours of Bugsearching I found this bad mistake...well, we discussed this here some posts ago (Reply #47 - #49) and I marked my Pintable to dont get this mistake....but after hours of soldering and a overdose of Solderfume i overseen that All my connectors are hot-glued and fitted with shrink-hose's....so it will be took many time to fix this :( :'(Wouldn't it be easier to just adapt the code? I have little experience with coding, but in the code I saw it's very easy to move functions to different DIN pins. Just a suggestion. Quote
MTE Posted July 8, 2007 Author Report Posted July 8, 2007 Wouldn't it be easier to just adapt the code? I have little experience with coding, but in the code I saw it's very easy to move functions to different DIN pins. Just a suggestion.Have u readed Reply #50 of this Thread ??Add a encoder to dissimilar pins wont work :( Quote
NorthernLightX Posted July 8, 2007 Report Posted July 8, 2007 Add a encoder to dissimilar pins wont work :(Sorry for talking bogus again, I do that a lot lately :-[ Quote
Sasha Posted July 9, 2007 Report Posted July 9, 2007 I know how you feeling mate. :-X I find hot glue very helpful, but it can also be true nightmare. I experienced what Robert is talking about myself. I learned one thing... If it is not just connector-cable connection don`t glue it. All parts must be easily replaceable. But, one must pay price to learn it. :( I cannot say I didn`t expect it, but thought... everything is tested and working great, lets glue it to make it more tidy, but sometimes is better to have messy wires than have a nerve wrack if things go wrong. Quote
MTE Posted August 23, 2007 Author Report Posted August 23, 2007 HiIve switched my Wiki-Projectpage to http://www.your-mte.de.vu ...or... http://traktozier.de.vu ... enjoy new pictures there :)Final Release coming soon after the PCD-Problem is solved and some other bugs fixed......so stay tuned ;)Best RegardsMTE Quote
Sasha Posted August 23, 2007 Report Posted August 23, 2007 Alot of work and still to come... Congratulations, once again mate. ;) Quote
MTE Posted February 7, 2008 Author Report Posted February 7, 2008 Clickenjoy some more building pics...scroll down ;) Quote
MTE Posted February 8, 2008 Author Report Posted February 8, 2008 Eyyyyyyy who have stolen my jogs ?? ;D Quote
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.