Discussion in "ARM Development" started by    mayank058    May 14, 2015.
Thu May 21 2015, 04:46 AM
#11
dear sir
there is nothing to zip.I just want to know, how to use DAC in LPC2378 or what kind of things I can do with this. Is it possible to convert a pulse wave into sine wave using this DAC.
Sat May 23 2015, 09:52 PM
#12


Does the speaker work?.
'Exactly' where on the board are you measuring ?.


Sir I want to measure the analog signal on CRO.

mayank058


ExperimenterUK


I know you want to measure the analog signal.
I asked where... what pin are you connecting the scope probe to?,
Also, does the onboard speaker work?.
Mon May 25 2015, 04:57 AM
#13
Dear sir,
I am taking output from PIN-8 (P0.26),,,,AOUT pin on the board..and the onboard speaker is also working good..,,
Mon May 25 2015, 06:16 PM
#14
We need to do some simple tests.
Get the speaker to make a sound, continuous if possible.
Check Pin8 with your scope.. do you see a sine or square wave ?
Test jumper 3.. do you see a signal there, while the sound is playing ?

After doing that, try this code.
Do you get any compilation errors ?
//add device  include files

int main() 
 { 
 int bits;
 bits=PINSEL1 & 0xffcfffff; //preserve current settings for other pins
 bits |=0x00200000;    //set P0.26 as AOUT
 PINSEL1 = bits;

 bits=PINMODE1 & 0xffcfffff; //preserve current settings for other pins
 bits |=0x00200000;    //set P0.26 as no pullup or pulldown
 PINMODE1 = bits;

 while(1) //generate squarewave output
 { 
 DACR =0;
 delay();
 DACR =0x0000ffc0;
 delay();
 } 
  
} //end main 


void delay(void)
 {
 int k;
 for(k = 1;k<= 10000;k++); 
}



[ Edited Tue May 26 2015, 09:45 PM ]
Fri Jun 26 2015, 10:00 AM
#15
dear Sir,
This program is working on the board.After downloading of this program, board shows a continuous pulse wave from the AOUT pin on the CRO and a beep sound from speaker.Now what to do. How can I vary the value of AOUT.
Sat Jul 04 2015, 06:14 AM
#16
You need to vary the digital value in DACR register to change the AOUT signal level.

Get Social

Information

Powered by e107 Forum System

Conversation

Tue May 04 2021, 08:34 PM
Chastity
Hi there! I could have sworn I've been to this site before but after browsing through some of the post I realized it's new to me. Anyways, I'm definitely glad I found it and I'll be book-marking and checking back frequently! check my score https://creditscorecheckn.com
Tue May 04 2021, 06:39 PM
Clarence
What's up everyone, it's my first go to see at this web page, and post is really fruitful in support of me, keep up posting these types of articles. Best Credit Score https://creditscoresids.com
Tue May 04 2021, 01:13 PM
Jerold
What's up to all, the contents present at this site are really remarkable for people knowledge, well, keep up the good work fellows. karma credit score https://getcreditscoreww.com
Tue May 04 2021, 09:49 AM
Shonda
I like the helpful info you provide in your articles. I will bookmark your blog and check again here frequently. I am quite certain I'll learn many new stuff right here! Good luck for the next! check credit report https://creditreportuss.com
Tue May 04 2021, 06:28 AM
Lucia
I am not sure where you are getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for wonderful information I was looking for this info for my mission. monthly credit report https://checkcreditscore24.com

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 58, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123