- Interface a DAC and generate Triangular waveform using LPC 1768.
#includeint main () {unsignedinti=0; LPC_PINCON->PINSEL0=0x00000000; LPC_GPIO0->FIODIR|=0x00000FF0; while(1) { for(i=0;i!=0xFF;i++) { LPC_GPIO0->FIOPIN=(iFIOPIN=(i Algorithm used for generating triangular waveform using LPC 1768.
The post Arm Lab Interface Programs appeared first on Techgeetam.com .