LCD I2C backpack

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nerdcore
 
Posts: 2
Joined: Sat Apr 28, 2012 12:22 pm

LCD I2C backpack

Post by nerdcore »

Hello,

I am trying to use this backpack with a generic 16x2 LCD in my uController class. I'm trying to interface this with a 68HC11 using ASM11 assembly. Can I get more information on how to make this backpack work with assembly programming.

Thanks!
Nik

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LCD I2C backpack

Post by adafruit_support_mike »

This tutorial page has links to the libraries we use for the Arduino:
https://learn.adafruit.com/i2c-spi-lcd- ... /downloads

You can use them as working design reference.

In general terms, you'll need to decide whether you want to communicate with the MCP23008 using I2C or SPI, write code to support that communication, then handle control of the LCD through that interface.

User avatar
nerdcore
 
Posts: 2
Joined: Sat Apr 28, 2012 12:22 pm

Re: LCD I2C backpack

Post by nerdcore »

I2C is the bus I'm using as per the thread title. Also the library is in C. I need Assmebly.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LCD I2C backpack

Post by adafruit_support_mike »

We don't have any assembly code for that library or device, but like I said, you can use the C code as a design reference. It will show you what signals need to be generated and in what order.

Your first step will be to build an I2C interface, so start by reading the I2C spec and the datasheet for the chip you want to program. It may have its own I2C hardware, or you might need to bit-bang the protocol.

http://www.nxp.com/documents/user_manual/UM10204.pdf

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”