Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void ATD_INI(void) {
  2.     ATD0CTL2 = 0x80;
  3.     Delay(20);
  4.     ATD0CTL3 = 0x08;
  5.     ATD0CTL4 = 0xE0;
  6.     PWMPRCLK = 0x02;
  7.     PWMCLK = 0x00;
  8.     PWMPOL = 0x01;
  9.     PWMCAE = 0x00;
  10.     PWMCTL = 0x00;
  11.     PWMPER0 = 255;    
  12. }