CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Help! TDC gp21 SPI not working

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
zhangz64



Joined: 18 Jul 2013
Posts: 2

View user's profile Send private message Send e-mail

Help! TDC gp21 SPI not working
PostPosted: Thu Jul 18, 2013 12:21 pm     Reply with quote

Hello, eveyone, we really need some helps from someone who has done gp21 SPI before.

Our team is trying to design a ultrasound imaging system which involves using the TDC-GP22 for the transducer.

We designed the transducer board our self.
Right now, We are trying to use Beagle-board to establish the communication with the transducer board through SPI interface.

Based on the information from the data sheet and the info here( http://www.ccsinfo.com/forum/viewtopic.php?p=160435 )
I coded the program myself, I used a GPIO to control the SSN line ,so it will be set to low before writing/reading the Data and set high after write/read.
Same goes for RESET, I set RESET it to low before writing/reading the Data and set high after the write/read.

I also confirmed the CLK/MOSI on the scope and so we know that we are sending the right Data. However, We failed to read anything back from the chip. We tested the MISO with the scope and it shows the read-back pulse but it is very weak.(200mv)
So we can not read anything back on the beagle-board,b/c the signal is too weak, We tried to re-solder some part and fix some potential short-circuit. but It did not work.
Does anyone know why is this happening.
It would be great if We could get some helps here.
Please advise.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 18, 2013 1:07 pm     Reply with quote

Quote:
We are trying to use Beagle-board

Beagleboard is an ARM board. This is a CCS C compiler PIC forum.
It's focused on that, it's not a general electronics forum. We are not
allowed to give help on ARM projects. But to give you a hint before you
go, you shouldn't drop RSTN low during each SPI transaction. Pulse it
low at the start of main(), then keep it high after that.
zhangz64



Joined: 18 Jul 2013
Posts: 2

View user's profile Send private message Send e-mail

PostPosted: Thu Jul 18, 2013 1:47 pm     Reply with quote

PCM programmer wrote:
Quote:
We are trying to use Beagle-board

you shouldn't drop RSTN low during each SPI transaction. Pulse it
low at the start of main(), then keep it high after that.


Thank you so much PCM programmer.
I tried your method and set the Reset pin to 0 only at the start of the program.

It worked, I finally be able to read back from the register 1 and register 0.(but only 1 byte)

Well, it is something.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group