Reading Microchip EEPROM (serial/SSP/microwire)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reading Microchip EEPROM (serial/SSP/microwire)

1,090件の閲覧回数
pszemol
Contributor I

I can use some help, guys...

 

I am interfacing LPC1788/LPC4088 cpu to a 1kbit Microchip serial EEPROM (93C46B).

 

I see the SSP controller can be configured to work in the "microwire" mode... cool.

How do I transmit 9 bits to the EEPROM to issue its READ command?

 

EEPROM datasheet requires me to send 1 as a start bit then the READ opcode '10' (2 bits) and then A5..A0 bits of address (total of 9 bits) and then 16 clocks to allow the slave chip to output 16 bits of data.

 

Check out page 5 of http://ww1.microchip.com/downloads/en/DeviceDoc/20001749K.pdf

 

How do I configure the SSP in cpu for such operation?

Do I set Control Register's DSS bits to 9 bits transfer? 16 bits transfer?

 

Any other way to make this CPU and this EEPROM talk without bit-banging on gpios?

Anybody with a clue? :-)

ラベル(3)
タグ(4)
0 件の賞賛
返信
1 返信

865件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi pszemol pszemol,

Thank you for interest in NXP Semiconductor products and the opportunity to serve you.

I'd highly recommend you to set the SPI format and 16-bit transfer.

Hope it helps.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信