Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to use PWM in 9200?
PostPosted: Sat Jan 08, 2005 1:40 pm 
Offline

Joined: Wed Dec 22, 2004 8:56 am
Posts: 1
I write those codes in CodeWarrior, but no signal can be detected in TIOA, I need your help.
main()
{

*AT91C_TC0_CCR = AT91C_TC_CLKDIS;
*AT91C_TC0_IDR = 0xFFFFFFFF;
dummy = *AT91C_TC0_SR;
*AT91C_TC0_CMR = TC_CLKS_MCK128|
AT91C_TC_ASWTRG_SET|
AT91C_TC_ACPC_SET |
AT91C_TC_ACPA_SET |
AT91C_TC_WAVE|
AT91C_TC_WAVESEL_UPDOWN;
*AT91C_TC0_RC = 0x6DDC;
*AT91C_TC0_RA = 0x685F;
*AT91C_TC0_CCR = AT91C_TC_CLKEN;
*AT91C_TC0_CCR = AT91C_TC_SWTRG;
}


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 08, 2005 1:50 pm 
Offline
User avatar

Joined: Thu Feb 12, 2004 7:48 pm
Posts: 164
Location: Atmel Corp.
Hi Sean,

I am at home now and I cannot try your setting, but, did you enable the clock of the timer at PMC level ?
One remark too, for other users, it more appropriate to call this peripheral Timer/Counter than PWM. Of course, it is possible to use it like PWM but without all needed PWM features as Width Pulse Modualtion synchronously vs. the cycle phase.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: