Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 11, 2024, 03:06:30 15:06


Login with username, password and session length


Pages: [1]
Print
Author Topic: LTC1861  (Read 3322 times)
0 Members and 1 Guest are viewing this topic.
Sidinei
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 1


« on: March 25, 2007, 12:12:18 12:12 »

 Huh

Dear friends.
 
I need comunicate Ltc1861 and Pic16F628 + Proton.
 
Regards.
 
Sidinei.
Logged
frasenci
Translator
Active Member
***
Offline Offline

Posts: 171

Thank You
-Given: 142
-Receive: 84


« Reply #1 on: March 25, 2007, 01:29:57 13:29 »


Ok , so you are all set .

LT1861 is an SPI interfaced 12 Bit A/D convertor.
here is the Datasheet. YOU HAVE to read it to check its particular SPI Timing....

LT1861
Code:
http://www.ortodoxism.ro/datasheets/lineartechnology/18601f.pdf  

In Proton you have SHIN - SHOUT commands to comunicate with ANY SPI interface device.

It goes something like this , you have to read the help file ....

Code:
SYMBOL CLK = PORTB.0 ' define CLK Pin 
SYMBOL DTA = PORTB.1 ' Define DATA Pin
SHOUT DTA , CLK , MSBFIRST , [ 250 ] ' To talk TO de device
SHIN DTA , CLK , MSBPRE , [VAR1]  ' To Read FROM the device

You have to also read the PIC datasheet

16F628
Code:
http://ww1.microchip.com/downloads/en/DeviceDoc/40300C.pdf

 Roll Eyes

Hope it helps.
Greetings
FAA


Logged
Sidinei
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 1


« Reply #2 on: March 25, 2007, 04:50:35 16:50 »

Frasenci.

Thanks you.

Sidinei.
Logged
Sidinei
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 1


« Reply #3 on: April 01, 2007, 12:45:18 12:45 »

 Huh
Dear friends.

Help.

No working using shout and shin!

Sidinei
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC