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.

AD7314 MEMS based temp sensor

Status
Not open for further replies.

X4ROY

Newbie level 6
Joined
Jun 4, 2010
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,416
im trying to interface this 4 wire SPI based device AD7314 to a pic16f877a .
This IC sends 10 bit temperature data while the register (SSPBUF) where the received data is stored is 8 bit in size.
after the eighth bit of the 10 bits are received the BF flag (indicating SSPBUF is full) will go high .
now i dont mind loosing the last two bits .... but if i dont read the last two bits will the slave temp sensor continue sending data or will it stop ??

also please check my algorithm
1. initialize SSPSTAT , SSPCON1 , TRISC(data direction reg for PORTC)
2. start conversion SSPEN =1
3. load SSPBUF with address of configuration register
4. monitor BF
5. load SSPBUF with data of configuration register
6. monitor BF
i intend to set the continuous read mode
7. monitor BF if high
8. read 8 of 10 bit data store it in long int variable and display appropriately in LCD
9. goto step 7 and repeat forever

i use mplab ide ....... please help im stuck with this for a week ........:oops:
 

Attachments

  • AD7314.pdf
    170.2 KB · Views: 85

can someone please shed some light ......... pic experts please help .......
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top