Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 10:07:53 10:07


Login with username, password and session length


Pages: [1]
Print
Author Topic: Sample Code ISD17XX  (Read 7159 times)
0 Members and 1 Guest are viewing this topic.
ICQ34791919
Guest
« on: October 27, 2008, 12:43:44 12:43 »

I can't to control ISD1790 by SPI interface.
I don't know why.

i send 0x40 to ISD1790 voice not responding but ISD1790 return value to PIC

any one have sample code


thanks.

reg.
Logged
Orcino Borges
Newbie
*
Offline Offline

Posts: 23

Thank You
-Given: 13
-Receive: 18


« Reply #1 on: July 26, 2010, 05:14:49 17:14 »

Hi,

 I am developing a project that uses the ISD1730 and am not having success with SPI interface. Does anyone have any examples in C that can share ?

              Thanks i advance
Logged
ICQ34791919
Guest
« Reply #2 on: December 30, 2010, 08:55:50 08:55 »

Bit Riversal
exp data sent 1 2 3 4 5 6

bit riversal

6 5 4 3 2 1

and ISD Work
Logged
kaizer
Newbie
*
Offline Offline

Posts: 21

Thank You
-Given: 8
-Receive: 54

I'm here therefore I'm not there


« Reply #3 on: January 24, 2011, 01:06:54 13:06 »

i dont know how ISD17xx works..

but this is my Soft SPI routine which i used in my ISD4002


Code:

   #define POWERUP 0b0010000000000000
   #define SETPLAYMODE 0b1110000000000111
   #define PLAYBACK 0b1111000000000000
   #define SETREC 0b1010000000000111
   #define REC 0b1011000000000000
   #define STOP 0b0011000000000000
   
   #define DATAPIN  ra2
   #define DATAIN  ra3
   #define CLOCKPIN  rb5
   #define CSPIN rb4

void SendSPI(long cmd)
{
   unsigned char ctr;

   CSPIN=LOW; //chipselect activate
   delay_us(20);
   
   for(ctr=0;ctr<16;ctr++)
   {     
      DATAPIN=(Data>>(ctr)) & 0x01;
      delay_cycles(400);
     
      CLOCKPIN=HIGH;     
      delay_us(500);     
      CLOCKPIN=LOW;
      delay_us(500);
   }
     
   CSPIN=HIGH; //chipselect deactivate
   delay_us(1);
}

void SetPlay()
{
   SendSPIData(POWERUP);
   delay_ms(15);
   SendSPIData(SETPLAYMODE | Address);
}

void SetRecord()
{
   SendSPIData(POWERUP);
   delay_ms(15);   
   SendSPIData(POWERUP);
   delay_ms(25);
   SendSPIData(SETREC | Address);
}

hope this helps you=)
Logged

whatever!
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