Jump to content

voltages for din


Guest psytron
 Share

Recommended Posts

Guest psytron

i recently upgraded my box (1xcore 1xlcd 1xain with 8 pots)

After getting bored of just having 8 pots i felt the need for some digital in action. :)

so i went and got the parts for a dinx4 module.dick smiths didnt have all the parts so i ended up with 2 shift registers 10x 10k resistors 4x 12k resistors.

i used

8x 10k for buttons (first reg)

4x 12k for r33-r36

1x 74hc165 stuffed into first ic socket

using mios 1.3 (and associated test/example progs)

i used ain64_din128_dout128.zip

with the following mods

USER_Init
      ;; initialize the AIN driver

      ;; use 64 pots
      movlw      8   <- - - - - - - - - - - - - changed from 64 to 8
      call      MIOS_AIN_NumberSet

      ;; use the AIN 4051 multiplexers
      call      MIOS_AIN_Muxed

      ;; define the deadband (with 7-bit values, a deadband value of 8 is adequate;
      ;; calculated with the following formula: (2^(10 bit - 7 bit)) - 1 = (2 ^ 3) - 1 = 7

      ;; set value to 0 or 1 if you want to see the 10-bit value at the LCD
      movlw      7
      call      MIOS_AIN_DeadbandSet

      ;; define number of shift registers: for 128 buttons and LEDs, we need
      ;; 16 registers. Btw.: thats the maximum number of supported DIN/DOUTs
      movlw      1   <- - - - - - - - changed from 16 to 1
      call      MIOS_SRIO_NumberSet

      ;; define the update frequency (latency) of DIN/DOUTs in mS
      movlw      1 ; ms
      call      MIOS_SRIO_UpdateFrqSet

      return

the pots work fine but the buttons (no buttons yet just a wire from gnd to touch the sil headers) do not

my voltage for the buttons is .95v measured from gnd to sil header pin for button.

just wonderin if software or hardware prob?

one day i will throw my keyboard away and just use mios :)

Link to comment
Share on other sites

Guest psytron

ok after some mucking around

(found a bridge)

my button voltages are now aprrox 5v

however none of my buttons work, but when i close or open the first button from the left on the top (same side up as in pic on din page)

i recieve a din event (and midi) that corresponds to

buttons 0 thru 7 being turned all on then i close circut then the same again when i open the circut.

i.e.

press button----->

button 0     on

button 1     on

button 2     on

button 3     on

button 4     on

button 5     on

button 6     on

button 7     on

let go of button---->

button 0     off

button 1     off

button 2     off

button 3     off

button 4     off

button 5     off

button 6     off

button 7     off

or all the way to 127 when i use all 16 shift reg in mios code as above

Link to comment
Share on other sites

Guest psytron
does this happen if you short the ground to the SIL header now

isnt that what happens when you press a button?

i think a short is highly unlikely now i have been over the board a few times with my multimeter.

my chips (shift registers) are m74hc165b1

i know the m is no problem (i think).

the b1 i have not been able to find a data sheet on.

the ics are from SGS. i presume that they are just normal 74hc165 but i dont know enuf to say for sure.

the voltages for my shift reg are(measured from gnd)

pin1 5v

pin2 .11v

pin3 4.96

pin4 4.96

pin5 4.96

pin6 4.96

pin7 0

pin8 0

pin9 5.01/5.02

pin10 5.01/5.02

pin11 4.96

pin12 4.96

pin13 4.96

pin14 4.96

pin15 0

pin16 5.01/5.02

there are 2 ics stuffed the seconds voltages are the same EXCEPT for pin 10 whitch is 4.96/4.97v

Link to comment
Share on other sites

my chips (shift registers) are m74hc165b1

i know the m is no problem (i think).

the b1 i have not been able to find a data sheet on.

the ics are from SGS. i presume that they are just normal 74hc165 but i dont know enuf to say for sure.

The M is in front of almost all 74XX DIP series ST IC's, and the B1® just means it is a DIP package, Tube package (as opposed to bulk or tape&reel for SOP or TSSOP)

Sorry I can't be more help with your problem!

Datasheet is at :http://us.st.com/stonline/books/pdf/docs/1911.pdf

Later!

Smash

Link to comment
Share on other sites

Guest psytron

thanks for the clarification on the chip. As you can tell i am only learning about this stuff.

i checked up on the chip thru farnell's data sheets and was confused when  the data sheet said that pin 15 on my chip "SGS m74ch165b1" was "clock enhibit" where as on others it said "clock enable" to me they sound opposite to each other but they must be the same. thanks again for the info smashtv...

If so be sure that the buttons are wired in correctly
no buttons yet just me shorting it out to earth. just trying to limit the possable amount of errors.

Link to comment
Share on other sites

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