Exact match. Not showing close matches.
PICList
Thread
'[SX] Needing help with the I2C command to talk to '
2006\01\30@054223
by
ALTITUDEAPn/a
|
|
I recieved some very good help form jonathan. He sent me this information to talk to the Max chip form (i believe) a pic.
Init_Display:
i2cout dispSDA,dispSCL,dispDev,$01,[$FF,$FF] ' Set Intensity
i2cout dispSDA,dispSCL,dispDev,$03,[$01] ' Show all 4 chars
i2cout dispSDA,dispSCL,dispDev,$04,[%00001001]' Config Byte
i2cout dispSDA,dispSCL,dispDev,$60,[" "," "," "," "]' Clear display
i2cout dispSDA,dispSCL,dispDev,$60,["INIT"]',fail
pause 1000
i2cout dispSDA,dispSCL,dispDev,$60,[" "," "," "," "]' Clear display
Note that line 5 is the one that displays the word "INIT" using the internal font. Lines 1 -3 init the display.
Hope this helps. If you have any other questions, mail directly to jpeakall@madlabs.info, I will respond faster that way.
So i wrote mine like this.
Start:
' Max6953 I2C Initialization
I2CStart SDA 'Set Intensity
I2CSend SDA, TopSlaveID 'Addresses the top Max Chip
I2CSend SDA, $01
I2CSend SDA, [$FF,$FF]
I2CStop SDA
I2CStart SDA 'Show all 4 characters
I2CSend SDA, TopSlaveID
I2CSend SDA, $03
I2CSend SDA, $01
I2CStop SDA
I2CStart SDA 'Config Byte
I2CSend SDA, TopSlaveID
I2CSend SDA, $04
I2CSend SDA, %00001001
I2CStop SDA
I2CStart SDA 'Clear Screen
I2CSend SDA, $60
I2CSend SDA, [" "," "," "," "]
I2CStop SDA
I2CSend SDA, [$FF,$FF]
Max6953 I2C Initialization
I2CStart SDA 'Set Intensity
I2CSend SDA, TopSlaveID 'Addresses the top Max Chip
I2CSend SDA, $01
I2CSend SDA, $FF
I2CSend SDA, $FF
I2CStop SDA
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=107056
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\30@074408 by Jon Williamsn/a
|
|
One of the things you want to keep in mind is that I2C commands actually expand out to several instructions so you may want to wrap them into subroutine shells -- this will also give you the ability to add features to the commands. I've attached a program that wraps the I2C instructions like this; it should help you convert your program.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=107056#m107074
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
More... (looser matching)
- Last day of these posts
- In 2006
, 2007 only
- Today
- New search...