0% found this document useful (0 votes)
78 views

Arduino: Help Me For Interfacing Arduino With AMTP32M VOICE IC

Uploaded by

Mike Thomson
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Arduino: Help Me For Interfacing Arduino With AMTP32M VOICE IC

Uploaded by

Mike Thomson
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Anybody can ask a question

Arduino Stack Exchange is a question and


answer site for developers of open-source
hardware and software that is compatible with
Arduino. It only takes a minute to sign up. Anybody can answer

Sign up to join this community The best answers are voted up and
rise to the top

Arduino

Help me for interfacing Arduino with AMTP32M VOICE IC Ask Question

Asked 10 months ago Active 10 months ago Viewed 54 times

i'm trying to get control an Aplus chip aMTP32M (stores audio samples) with Arduino . this amtp32m ic provide CPU
SERIAL MODE its come with DATA and CLOCK pin.i try Spi mode with Amtp32m ic but its not working.
1
Please help me for this. Link for for DATASHEET of AMTP32M IC -
http://www.aplusinc.com.tw/proimages/Mtp%20Vioce%20Ic/aMTP32M/aMTP32M/Datasheet/aMTPxxM-
Datasheet_V1.1_20141216.pdf

arduino-uno arduino-ide spi

Share Improve this question Follow asked Sep 10 '20 at 5:45

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Arun
31 3

Add a comment

2 Answers Active Oldest Votes

Finely i try the below code for serial mode. it's worked perfectly...

1 type def union


{
unsigned char BYTE;
struct
{
unsigned BIT0:1;
unsigned BIT1:1;
unsigned BIT2:1;
unsigned BIT3:1;
unsigned BIT4:1;
unsigned BIT5:1;
unsigned BIT6:1;
unsigned BIT7:1;
};
}ByteToBit;

void Play(unsigned char Val)


{
ByteToBit SectionNo;

SectionNo.BYTE = Val;

CLOCK = 1;
DATA = 0;
CLOCK = 0;

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
DATA = SectionNo.BIT0;
CLOCK = 1;
CLOCK = 0;
DATA = SectionNo.BIT1;
CLOCK = 1;
CLOCK = 0;

Share Improve this answer Follow answered Sep 17 '20 at 4:25


Arun
31 3

Add a comment

according to this :

it's more similar to I2C than SPI. anyway, it's just 2 wire custom serial interface. you can use any 2 GPIOs for this
purpose. for sending a byte, you have to:

1. initialize 2 GPIOS (CLK_IO and DAT_IO) to output, high.

2. set DAT_IO low

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
3. wait at least 1us (according to datasheet ver 1.1, page 18) then set CLK_IO low.

4. place the D0 bit value on the DAT_IO

5. toggle the CLK_IO (set it high, wait at leas 1us, set it low)

6. do steps 4 and 5 for all the remaining bits.

7. at the end set CLK_IO high

8. wait for at least 1us and set the DAT_IO high.

Share Improve this answer Follow answered Sep 10 '20 at 6:05


Tirdad Sadri Nejad
521 2 5

thank you for your replay.i will try your suggestions. –  Arun Sep 10 '20 at 6:18

1 According to datasheet page 25, it would be much easier to use the Parallel mode than the Serial mode. – hcheung Sep 12 '20 at
0:23

hcheung..Yes parallel mode is much easier .but it's give only 32 sections for audio storage. in serial mode it give 255 sections for
audio storage. –  Arun Sep 17 '20 at 8:36

Add a comment

Your Answer

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Sign up or log in
Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Post as a guest
Name

Email
Required, but never shown

Post Your Answer By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Not the answer you're looking for? Browse other questions tagged arduino-uno arduino-ide spi or ask your own
question.

The Overflow Blog

Communities are a catalyst for technology


development

Podcast 363: Highlights from our 2021


Developer Survey

Featured on Meta

Join me in Welcoming Valued Associates:


#945 - Slate - and #948 - Vanny

2021 Community Moderator Election


Results

Related

0 How to use ROHM LB202VL display (on


BP-006LH-GC board) with Arduino?

6 How do I transfer more than 1 byte at once


via SPI bus?

2 STPM10 using Arduino SPI communication

6 Syncing/taking external clock for SPI on


Arduino Due

1 Error message - Need help

1 Interfacing SPI (MCP3903)

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Hot Network Questions
Meaning of "-0.0" in Python?

Do you typically need to program-in a USB


communication protocol?

Choosing reaction stoichiometry in organic


synthesis

Can the fish topple the bowl?

How and why did Disney reuse animation?

How can the wealthy prevent the illegal


propagation of their genetic code?

Stack Implementation in JavaScript

Have there been any studies on how vehicles


directly contribute to a rising global temperature?

Question about Untapping Creatures with Abilities

How to (more) securely attach a latch to a


frequently-used wooden gate

Identify this older military-style prop plane?

Why is this position drawn?

Shouldn't an I2C address be 7-bit binary?

What would happen if a huge solid ball


(temperature zero kelvin) of helium appeared
suddenly in a deep sea?

Are Shadow Pokémon more or less powerful?

Up and down spin are orthogonal, not antiparallel

'a large number' without 'of'

Does 我听到这个消息很惊讶 have more than one


meaning?

Build me a room

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
How do I play this chord with an overlapping sharp
and flat?

Can you sue someone for parodying your


character?

"haber cuéntame" = "so, tell me". Why is it


translated like this?

What if Apollo Lunar Rover failed on the Moon?

What is the consensus (if any) on Peters "The


ergodicity problem in economics" (2019)?

Question feed

ARDUINO COMPANY STACK EXCHANGE Blog Facebook Twitter LinkedIn Instagram


NETWORK
Tour Stack Overflow
Technology
Help For Teams
Life / Arts
Chat Advertise With Us
Culture / Recreation
Contact Hire a Developer
Science
Feedback Developer Jobs
Other
Mobile About
Disable Responsiveness Press
Legal
Privacy Policy
Terms of Service
Cookie Settings
site design / logo © 2021 Stack Exchange Inc; user
Cookie Policy contributions licensed under cc by-sa. rev 2021.8.2.39897

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD

You might also like