Jump to content

Traktorizer - a Midibox to control Traktor-DJ-Studio -


MTE
 Share

Recommended Posts

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_Pin4567

MIOS_SRIO_Get2_Cont_Pin0123

IFSET MIOS_PARAMETER1, 1, rgoto MIOS_SRIO_Get2_Cont_Pin23

MIOS_SRIO_Get2_Cont_Pin01

movlw 0x00

IFSET INDF1, 0, iorlw 0x01

IFSET INDF1, 1, iorlw 0x02

rgoto MIOS_SRIO_Get2_End

MIOS_SRIO_Get2_Cont_Pin23

movlw 0x00

IFSET INDF1, 2, iorlw 0x01

IFSET INDF1, 3, iorlw 0x02

rgoto MIOS_SRIO_Get2_End

MIOS_SRIO_Get2_Cont_Pin4567

IFSET MIOS_PARAMETER1, 1, rgoto MIOS_SRIO_Get2_Cont_Pin67

MIOS_SRIO_Get2_Cont_Pin45

movlw 0x00

IFSET INDF1, 4, iorlw 0x01

IFSET INDF1, 5, iorlw 0x02

rgoto MIOS_SRIO_Get2_End

MIOS_SRIO_Get2_Cont_Pin67

movlw 0x00

IFSET INDF1, 6, iorlw 0x01

IFSET INDF1, 7, iorlw 0x02

;; rgoto MIOS_SRIO_Get2_End

MIOS_SRIO_Get2_End

andlw 0x03 ; for correct status (Z flag set/not set...)

movwf MIOS_PARAMETER1

return[/quote']

Link to comment
Share on other sites

  • Replies 130
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Gmorning Sasha

you 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

Link to comment
Share on other sites

And don`t forget some strobe protectors too!

:D

I 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 ;)

Link to comment
Share on other sites

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...

638894808_2e921e9841_o.jpg

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 434212161_cba6cc95a4_o.gif 

All my connectors are hot-glued and fitted with shrink-hose's....so it will be took many time to fix this  :(  :'(

Link to comment
Share on other sites

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...

638894808_2e921e9841_o.jpg

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 434212161_cba6cc95a4_o.gif 

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.

Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...