Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mutzel
PostPosted: Jan 08, 2010 - 02:56 PM
Rookie


Joined: Jun 02, 2009
Posts: 28


Hi,

how do I toggle the value of a pin by using a signal from the XMEGAs EventSystem?

I already tried the following code without success:

Code:

    EVSYS.CH0MUX = EVSYS_CHMUX_PORTC_PIN0_gc;
    PORTCFG.CLKEVOUT = PORTCFG_EVOUT_PC7_gc;


This only gave me 0,5us impulses on PortC Pin7 each time the value of PortC Pin0 had been modified.
 
 View user's profile Send private message  
Reply with quote Back to top
mutzel
PostPosted: Jan 14, 2010 - 12:31 PM
Rookie


Joined: Jun 02, 2009
Posts: 28


push ... is this even possible?
 
 View user's profile Send private message  
Reply with quote Back to top
dmginc
PostPosted: Mar 11, 2012 - 06:30 AM
Wannabe


Joined: Apr 12, 2010
Posts: 76
Location: Melbourne, Australia

Hrmm... This post is over a year old.

It would be handy if the Event System could be used to toggle *any* pin on the XMEGA - I don't think it is possible though.

Can anyone confirm?

EDIT: This post should also be moved to the XMEGA forum.
 
 View user's profile Send private message  
Reply with quote Back to top
indianajones11
PostPosted: Mar 13, 2012 - 01:12 AM
Raving lunatic


Joined: Nov 28, 2004
Posts: 3552
Location: San Diego, Ca

Readers of this post: The Event system used as OP does it, will ONLY give a pulse lasting for ONE peripheral clk cycle, so it was working right .
Quote:
This only gave me 0,5us impulses on PortC Pin7...
Anybody DOUBT what OP's peripheral clk was running at ? Smile

dmginc : You can only use the pins indicated in the 'sheet, pin4 OR pin7 of the configured port .

_________________
1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits