Shop OBEX P1 Docs P2 Docs Learn Events
need help about the mcp3202 codes! — Parallax Forums

need help about the mcp3202 codes!

daniel dingdaniel ding Posts: 52
edited 2011-09-29 18:17 in Propeller 1
Hi everyone.Who can tell me why the “potline” has the same pin with “chipsel” in the following codes. The codes come from Utilities.spin.
high =1
low =0
PotLine =19
PotLine2 =20
repval =2
repval2 =2
BitsRead =12
BitsRead2=12
BitsRead3 =12
BitsRead4=12
chipSel = 19
chipClk = chipSel+1
chipDout = chipSel+2
chipDin = chipSel+3
chipSel2 = 23
chipClk2 = chipSel2+1
chipDout2 = chipSel2+2
chipDin2 = chipSel2+3
Thanks!

Comments

  • dandreaedandreae Posts: 1,375
    edited 2011-09-21 08:21
    Which code specifically are you referring to? The MCP3202Read1 object uses pin 21 for ChipSel.

    Dave
  • HarpritHarprit Posts: 539
    edited 2011-09-21 08:51
    This is from my book for beginners
    It is a mistake
    I do not have the original code any more so cannot offer corrections.

    Harprit.

    If you need to read a 3202, see my object in the object exchange, Search 3202.
    It is all in SPIN and easy to read. All lines are commented for beginners.
  • JonnyMacJonnyMac Posts: 9,205
    edited 2011-09-21 16:10
    Like others, I've written MCP320x objects because I frequently use these in professional projects. My object(s) are here:
    -- http://obex.parallax.com/objects/625/

    Each has a demo program.
  • daniel dingdaniel ding Posts: 52
    edited 2011-09-21 18:39
    Thanks Harprit, you know I am a beginner of the propeller chip of Parallax. As a Chinese student it's really hard work for me to read your book in English. It took me almost 1 year to read and study the propeller chip. Whatever I learned a lot from your book. Thanks for your reply, I have downloaded your object about MCP3202. Later I will study it.
    In addition, Can you tell me your Email-box or MSN. I will write to you directly if in trubble about the Propeller study.

    Daniel
  • HarpritHarprit Posts: 539
    edited 2011-09-22 08:48
    Daniel

    Please continue to use the discussion forum for communications so that all users can benefit from the discussion.
    I would prefer that.

    Thanks

    Harprit.
  • daniel dingdaniel ding Posts: 52
    edited 2011-09-27 03:46
    Harprit,

    I want wo use a keybord to the Propeller chip, can you show me some circuit diagrams about it.

    Others, what kind of keybord I should select , I need only numbers keybord.

    Daniel
  • daniel dingdaniel ding Posts: 52
    edited 2011-09-27 18:22
    Harprit,

    Hi!
    I want to study input words and commands to a propeller chip through a ps2 keyboard, anyone who can tell me where to get some circuits or examples .

    thanks!
  • HarpritHarprit Posts: 539
    edited 2011-09-28 13:07
    I do not have the expertise to help here. Maybe others can help.
    H.
  • daniel dingdaniel ding Posts: 52
    edited 2011-09-29 18:17
    I study your LCD16*2, now I want to backspace a position character . how could I do?
Sign In or Register to comment.