Sign In

Want A Code For Spi Interfacing Of Ltc 2983 (temprature Sensor Ic) With Tm4c123d5(arm Cortex M4 Cpu)

kumpal patel kumpal.patel7@gmail.com India

Hardware: Tm4c1232d5pm 80 Mhz Arm Cortex Cpu Software: C Using Keil

i want to know how to interface it to measure temprature using RTD sensors

Images

Replies

R Avinash
2016-05-25 15:36:18
How far have you gone? Where you are facing problem?
R Avinash
2016-05-27 11:34:57
we are waiting for your reply ...
R kumpal patel
2016-05-27 13:00:05
void spi_master_ini(void){
SYSCTL->RCGCSSI|=(1<<2); //selecting SSI2 module
SYSCTL->RCGC2|=(1<<1); //providing clock to PORTB
GPIOB->AFSEL|=(1<<4)|(1<<5)|(1<<6)|(1<<7);//selecting alternative fuctions
GPIOB->PCTL=0x22220000;//selecting SSI as alternative function
GPIOB->DEN|=(1<<4)|(1<<5)|(1<<6)|(1<<7);//enabling digital mode for PORTB 4,5,6,7
GPIOB->PUR|=(1<<4)|(1<<5)|(1<<6)|(1<<7);//selecting pull ups for 4,5,6,7
SSI2->CR1=0; //disabling SSI module for settings
SSI2->CC=0; //using main system clock
SSI2->CPSR=64; //selecting divisor 64 for SSI clock
SSI2->CR0=0x7; //freescale mode, 8 bit data, steady clock low
SSI2->CR1|=(1<<1); //enabling SSI


here i have implemented ssi interfacing (initioalization part)

this is in freescale mo0de, i need is TI mode(based on texas instruments serial format) in second last line.. so what are the changed that i need to make


thank you

Post a reply to kumpal patel

Think you can help kumpal patel ? Then post your thoughts that might help kumpal patel. You will earn a lot of reputation in the technical community.

If your program is in multiple files, then ZIP the entire folder and attach below

Images and Screenshots

These helps other better understand your suggestion.