Parallax, Inc. • BS2p “Plus Pack” (#45184) • 10/2001
Page 29
PP_24LC32.BSP
•
Connect LCD to the BS2p Demo Board X5
•
Install jumper X6
•
Adjust contrast pot for best display
•
Assemble 24LC32 ciruit on breadboard
-- use on-board 4.7K resistors (R1 and R2) for pull-ups
' -----[ Title ]----------------------------------------------------------------
'
' BS2p Plus Pack
'
' File...... PP_24LC32.BSP
' Purpose... Demonstrates I2CIN, I2COUT and using an LCD
' Author.... Parallax
' E-mail.... [email protected]
' Started...
' Updated... 26 SEP 2001
' {$STAMP BS2p}
' -----[ Program Description ]------ --------------------------------------------
'
' This program writes to and reads from a 24LC32 I2C EEPROM. The status of the
' program and data are displayed on a 2x16 LCD.
'
' To run this program on the BS2p Demo Board, install the 24LC32 in the bread-
' board and wire connect to the BS2p with jumper wires. Connect the LCD to X5
' and enable by installing Jumper X6.
'
' Refer to the Hitachi HD44780 documentation for details on LCD control.
' -----[ I/O Definitions ] ------------------------------------------------------
'
LCDpin CON 0 ' LCD is connected to OutL
I2Cpin CON 8 ' SDA on 8; SCL on 9