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.

SPI CLOCK GENERATOR OF AVR

Status
Not open for further replies.

amnakhan786

Junior Member level 3
Joined
Dec 30, 2009
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
pakistan
Activity points
1,493
I AM INTERFACING ADE7758 WITH AVR THROUGH SPI.WITH Fosc=22 MHZ, SCL=1.375 MHZ,. THE DATASHEET SAYS:
[u]When configured as a Master, the SPI interface has no automatic control of the SS line. This must be handled by user software before communication can start. When this is done, writing a byte to the SPI Data Register starts the SPI clock generator, and the hardware shifts the eight bits into the Slave. After shifting one byte, the SPI clock generator stops, setting the end of Transmission Flag (SPIF). If the SPI Interrupt Enable bit (SPIE) in the SPCR Register is set, an interrupt is requested. The Master may continue to shift the next byte by writing it into SPDR, or signal the end of packet by pulling high the Slave Select, SS line. The last incoming byte will be kept in the Buffer Register for later use.
THE DATA IN ADE7758 IS IN THE FORM OF 24 BIT REGISTERS.WONT THE LAST TWO BYTES WILL BE LOST IF CLOCK GENERATOR STOPS JUST AFTER SHIFTING ONE BYTE.
CAN SENDING A DUMMY BYTE RESOLVE THIS ISSUE.BUT HOW I CAN DO THAT?
 

Hi amnakhan786,
I'm trying to use AVR (AVtiny preferred) with a fast SPI (~8 MHz). most DS claim to require high voltage power to support higher frequecies, and also the SPI is 1/2 of system freq.
How did you connect >22 MHz f_osc? what voltage you use?
Thanks in advance,
uzi
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top