chuck Posted February 11, 2007 Report Posted February 11, 2007 I'm a little confused, I was hoping someone could clear something up.When I look at the DOUT pinout chart at http://www.midibox.org/dokuwiki/doku.php?id=din_dout_pintable the pins on the registers are backwards from what I get in reality.For example, I have an LED on register 4, pin D6.The chart shows this should be pin 30 hex number 0x1eBut to turn this pin on, I need to use pin 25, hex number 0x19.This is exactly backwards.What could I be doing wrong?Is it possible that I installed a component backwards, such as the crystal?ThanksChuck Quote
stryd_one Posted February 12, 2007 Report Posted February 12, 2007 http://www.midibox.org/dokuwiki/doku.php?id=c_tips_and_tricks_for_pic_programming#c_functionsIs it that? Quote
chuck Posted February 12, 2007 Author Report Posted February 12, 2007 I'm sorry I don't understand the reference.Still confused.But thanks. Quote
bill Posted February 13, 2007 Report Posted February 13, 2007 Is it possible that I installed a component backwards, such as the crystal?Nope, if you have a component installed in the wrong way, that wont work at all ! ;) Quote
/tilted/ Posted February 13, 2007 Report Posted February 13, 2007 Are you sure you are talking about the right pin?According to the schematic diagram for the DOUT, the pins, running left to right, are:[tt]Reg 1 Reg 2 D07,D06,D05,D04,D03,D02,D01,D00 || D07,D06,D05,D04,D03,D02,D01,D00 P07,P06,P05,P04,P03,P02,P01,P00 || P15,P14,P13,P12,P11,P10,P09,P08[/tt]So yes, this is exactly backwards, you've done nothing wrong, except you've counted the pins left-to-right. Quote
stryd_one Posted February 13, 2007 Report Posted February 13, 2007 Thanks tilted for taking care of typing it out in a more clear fashion :)Yeh, Left-to-right order is otherwise known as "Big Endian" because you read starting from the end with the big numbers, and "little endian" is when you are reading from right to left; from the little end.It's all explained in the wikipedia article I linked to in that tip :) Quote
audiocommander Posted February 13, 2007 Report Posted February 13, 2007 two more questions:- are you using a DOUT board from Mike's or SmashTV? The reason I ask is, because SmashTV's boards have the pin numbers printed on and (IMHO) are therefore easier to handle- do you know the debug-function of MIOSStudio? you can send DOUT_PinSet1(pin) from the debug window to test what pin has what number (actually)Best regards,Michael Quote
chuck Posted February 13, 2007 Author Report Posted February 13, 2007 I'm using the SmashTV board.I'll try the debug tonight, thanks. Quote
TK. Posted February 13, 2007 Report Posted February 13, 2007 bit #0 should set the leftmost LED (D7) on a common DOUTX4 board - this mirroring has historical reasonsBest Regards, Thorsten. Quote
chuck Posted February 13, 2007 Author Report Posted February 13, 2007 Ah, I think thats my issue.I would have expected bit 0 to go to D0. Does that mean bit 7 goes to D0? Quote
stryd_one Posted February 14, 2007 Report Posted February 14, 2007 Yep :)Bit = Pin0 = 71 = 62 = 53 = 44 = 35 = 26 = 17 = 0 Quote
chuck Posted February 14, 2007 Author Report Posted February 14, 2007 Thanks all.I guess I just misunderstood the pin chart at http://www.midibox.org/dokuwiki/doku.php?id=din_dout_pintableI thought I was going crazy there for a moment. Appreciate the assistance.Chuck Quote
stryd_one Posted February 14, 2007 Report Posted February 14, 2007 I thought I was going crazy there for a moment.Now you're officially a midibox developer ;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.