Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi gj_leeson,
As you suggested I changed the TMP04 for a ADT7302. If I understand the datasheet correctly, this sensor uses a SPI-like data link. I looked on the internet for VHDL codes dealing with SPI but what I found was too big for the MAXV, so I wrote my own. I'm using one clock to trigger both the sensor and the MAXV. the chipselect line is set to '0' as soon as the first "rising_egde" of clk happens and is kept like this in order to get continuous 16bits temperature measures. After having tested it with testbenches, it seems to work. But I want to be sure my approach is correct. -is that right to activate the chipselect line as soon the first rising_edge of clk happens? -Is it ok to use one external clock for both components? -Is there anything important I missed concerning SPI-like data links? Best, Boris