Jump to content

Understanding of RC1 and RC2 (DIN/DOUT)


FantomXR
 Share

Recommended Posts

Hey people,

what is the meaning of the RC1 and RC2 lines on digital modules? I wonder that the official schematic of the DOUT-module uses only one select line:
http://ucapps.de/mbhp/mbhp_doutx4_r5.pdf

the DIN-module uses both
http://ucapps.de/mbhp/mbhp_dinx4_r5.pdf

and the DIO-module also only uses one:
http://ucapps.de/mbhp/mbhp_dio_matrix.pdf

I ask because I made a PCB that works perfectly when connected to the core directly but stops working as soon as a DIO-module is between the PCB and the core. If I put the DIO behind the PCB it works also... but not the other way around... on the PCB I have addressed RC1 to HC165 and RC2 to HC595. As the DIO doesn't seem to forward the RC2 this seems to make sense...

Can anybody confirm that?

Thanks,
Chris

//edit: I checked the LRE-PCB and he also addressed RC1 and RC2 like me.
http://jeromebo.free.fr/Wiki/MB-LRE8x2CS_Rev4.6/Schematic_MB-LRE8x2CS_Rev4.6.pdf
But I wonder how the DIO can work with both HC165 and HC595 connected to the same RC-line...

Edited by FantomXR
Link to comment
Share on other sites

If you look at the old PIC8 Core, there was only a single RC line. Now they are separated (different MCU pins and also buffered), but RC1 and RC2 send latch pulses at the same time. I.e. for the moment (and foreseeable future) there's no practical difference between them. This is not the case for other SPI ports, like J19 or J16, where the RCs are "chip selects" for separate peripherals.

When Wilba did his SEQ PCB, he simply bussed the two RCs together. My guess is running data busses in parallel is more important when you have chains of DIN/DOUT separated over multiple PCBs, rather than BLMs etc. on a single PCB. Still, the best practice is apparently to split both RC and SC (!) and run whole chains of DIN/DOUT. The SC on the output header is best sourced from the longer chain (either DIN or DOUT):

 

More to the point of your build, RC1 should be routed with the DOUT side, and RC2 with the DIN side. You've done it the other way around. I don't have any DIOMATRIX modules, but from the schem TK. is not following his own guidelines :confused:. Because RC2 isn't connected on DIOMATRIX, and your PCBs correctly spilt them, then the result is no connection for the RC2 line on your PCB. 

I think you can solve this by bridging RC1 -> RC2 on one of the headers e.g. on the output of DIOMATRIX or the input of your board.

 

Edited by latigid on
Link to comment
Share on other sites

Thanks for your reply! I'll try tomorrow what you suggested and will report back.

Do I get you right that you suggest to split RC as well as SC for 165 and 595? 
I don't want to change all PCBs I've made so far... so I hope it's not a problem to bridge RC1 and RC2...

Link to comment
Share on other sites

I route up my boards using separate traces for RC1 and RC2, and I split SC into SC_DOUT and SC_DIN if it's practical.

Hopefully it works to tie RC1 and RC2 together where it's needed. IMO it's the "least critical" signal of the SRIO chain as it just tells the shift register when to transfer the 8 bits from storage to the outputs in the case of DOUT, or when to scan the inputs for DIN.

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