Mpc23016
Newzed
Posts: 2,503
Seems like I can not get my MPC23016 to work.· I think I have it wired correctly - does anyone have a schematic of it connected to a Stamp and the code to run it on a BS2P.· I don't ask for help very often but this time I'm stuck.
Sid
Sid
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 9/2/2004 2:44:16 PM GMT
What schematic layout software is did you use in this thread?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Sid
Sid
[noparse][[/noparse]PDF] Column #109: Expansion Made Easy Column #109 May 2004 by Jon ...
File Format: PDF/Adobe Acrobat - View as HTML
... We're not using that here, but we still need the RC circuit for the MPC23016
to run. The values shown are recommended by Microchip. ...
www.parallax.com/dl/docs/cols/nv/vol5/col/nv109.pdf - Similar pages
Did you mean to search for: MCP23016
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
Just so everyone will know - on the Rev B and Rev C boards the Stamp Vdd comes from the regulator on the Stamp, not the external regulator.· Max current is 60ma.· Yesterday I had the MPC hooked up to my BS2P with four LEDs attached to the MCP.· When I powered up the four LEDs came on briefly, then I fried my BS2P.· Be careful what you attach to the Stamp Vdd on these BOEs.
Sid
Vdd on BOE boards has always come from the onboard regulator and not the BASIC Stamp.· The output from the regulator does attach to Vdd on the BASIC Stamp, however.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
On the Rev A BOE, pin 24 - Vin - is not connected to anything.· Stamp Vdd comes from the external regulator.
Are you saying that on the Rev B and Rev C boards, Stamp Vdd comes from the Stamp regulator, and that Stamp Vdd - pin 21 also connects to the external regulator?
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Ran the program and in line 133:
IF (i2cAck = Nak) THEN Write_Byte
I get a constant " 1 " - busy.· I would have to assume something is bad on the MCP23016 board.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
SDA and SCL appear to be switching normally - both patterns the same.
I looked pin the clock - pin 9.· Base line was 5 volts, with a negative-going pulse of about 2.5 volts every 15ms, which corresponds to a frequency of about 66 Hz.· I don't know what effect the Optascope would have on the clock frequency.· Seems to me the frequency should be a lot higher than that.
Sid
Can you confirm that Stamp pin 21 is tied to the output of the external regulator?· This is important - I think that is why I fried my BS2P - I was trying to pull all the current for the Stamp and the MCP23016 with its LEDs through the Stamp's regulator, which is 60ma max.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
On a serious note though, I have 2 Rev B BOE boards, and the output of the external regulator connects to Vdd directly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
I have two Rev B boards.· If I UNPLUG the Stamp from the boardm there is no power on Stamp Vdd Pin 21, nor on the Vdd pin of the AppMod header.
There is a power trace running from Stmp Vdd to AppMod Vdd, but on the bottom of the board nothing is connected to the Vdd pin of the AppMod - no traces, no cap, no·nothing.· AppMod Vdd is NOT connected to the external regulator even though the schematic says it is.
Chris, pull the Stamp from one of your Rev B boards and see if you still have power on Stamp pin 21.
The reset trace from the Stamp goes to the AppMod header between P14 and Vdd, then turns downward to the reset button at the bottom of the board, so there is no way a power trace could continue from Vdd to the external regulator.· If you would like to check my Rev B board I will be happy to send it to you.
I have not checked my Rev C board yet so I don't know about that one.
Look at the bottom of the Rev B boards - you will see that AppMod Vdd has nothing connected to it.
Sid
·· You are right...Vdd on the Stamp is NOT connected to the output of the external regulator.· Now here is why I was wrong...I tested the Vdd at the top of the breadboard, assuming that Vdd was common all the way through the board.· This is not the case.· The Vdd terminals above the breadboard are connected to the output of the external regulator, the Vdd from the Stamp and going to the AppMod header is not connected to the External Regulator.
·· I have to admit, I am sure glad you had me do this, because I can see where there is the·potential for problems, if you don't realize you're sucking current from the Stamp's on-board regulator.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
I can fix my boards but I have to come up with something that will work on someone else's board.· Oh, the agony of it all !!
No wonder I fried my BS2E and the BS2P.
Sid
But, here is a solution that I offer that the Parallax techs can either agree with, or not...
Since the lines are supposed to be tied together anyway, why not just tie them together on your BOE?· I would double check the traces, but it seems to me you should be able to do this without incident.· I fully understand where you're coming from, and I am as stumped as you are.
As I said, I tested my BOE Rev B from the Vdd pins above the header, since I had an AppMod in the way of the stamp.· When you asked me to unplug my stamp, I wentand removed the AppMod and unplugged the stamp.· So that's why I too was sure it was fed from the output of the external regulator.
Well, now we know...Good luck with hopefully getting your stamps repaired.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
I plan on running a jumper on the bottom of the board from the AppMod Vdd pin to the most convenient point from the external regulator.· Haven't figured out exactly what that point is - probably the Vdd strip at the top of the breadboard.· 22 ga. wire should be adequate.
I posted the new code for the Stamp Tester.· Did you download it?
Have a nice weekend.· We are waiting for Frances and whatever she might bring us.· A bunch of wind and water for sure.
Sid
·· Bite your tongue!· Frances isn't welcome!· Yes, I got the new code, thanks!· And I too will be modding my BOE Rev B. to make the necessary adjustments.· I have 2, but one is a BOE-Bot with the Crawler Kit (See My Web Page).· So I am not too worried about that, but I will keep it in mind for future AppMod considerations.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·