Discussion in "ARM Development" started by    mayank058    May 14, 2015.
Thu May 21 2015, 10:16 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.
Sun May 24 2015, 03:22 am
#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, 10:27 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, 11:46 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 Wed May 27 2015, 03:15 am ]
Fri Jun 26 2015, 03:30 pm
#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, 11:44 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

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am