Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[AVR] HOW TO interface WITH 9-bit spi in atmega8 avr MCU?

Status
Not open for further replies.

shirko20

Member level 2
Joined
Sep 29, 2013
Messages
44
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Activity points
381
HI every one,i want to use Atmega8 MCU to inetrface Nokia 1202 lcd ,but problem here is that SPI of Atmega8 is 8-bit data transfer while this LCD uses 9-bit transfer data through SPI now is there any way to connect to this lcd wit Atmega8?
 

You get the answer by reading the STE2007 controller datasheet thoroughly.

Incomplete data bytes are discarded by the controller. Means if you are using a hardware SPI interface, which can send multiples of 8 bit only, you have to send e.g. 2 bytes (16 bits) to transfer 9 bit of data, but 7 bits are discarded.

Alternatively, you can send the d/c bit by bit banging and send data/command bytes through the hardware interface, you save the bit shift required otherwise. But the method involves enabling and disabling of the SPI interface.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top