Can you achieve a 9bit SPI on MC9S08QG8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can you achieve a 9bit SPI on MC9S08QG8

1,788 次查看
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 ?

标签 (1)
0 项奖励
回复
2 回复数

814 次查看
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 项奖励
回复

814 次查看
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 项奖励
回复