Can you achieve a 9bit SPI on MC9S08QG8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can you achieve a 9bit SPI on MC9S08QG8

1,790 Views
Gordon_Padkin
NXP Apps Support
NXP Apps Support

We have some folks here in Europe playing with an accelerometer project based on MC9S08QG8 and want to add an lcd. Have a nokia 6100 type display from www.sparkfun.com but looking through all the published code from nd sparkfuns displays i see they tend to use an alternate MCU device which can do 9 bit SPI.

 

Would like to use the SPI bus for the device, as it would leave it open to add an MMC card as well, ala lcd slide show badge in April.

 

Anybody now if 9bit SPI can be done using the MC9S08 ?

Labels (1)
0 Kudos
Reply
2 Replies

816 Views
tonyp
Senior Contributor II
The hardware SPI of 9S08QG8 is limited to 8-bit transfers.

But given that SPI is such an easy protocol to implement in software I don't see where implementing any variation of it (such as the 9-bit one) would be too much trouble.
0 Kudos
Reply

816 Views
Alban
Senior Contributor II
Hello,

I see two Application Notes on 8-Bit:
AN1954 p°5-6 (ASM code inside) and AN1951 p°11.
Just need to change 8 to 9.

Cheers,
Alban.
0 Kudos
Reply