 |
| Author |
Message |
|
|
Posted: Jan 08, 2010 - 02:56 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Jan 14, 2010 - 12:31 PM |
|

Joined: Jun 02, 2009
Posts: 28
|
|
| push ... is this even possible? |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2012 - 06:30 AM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Mar 13, 2012 - 01:12 AM |
|

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 ?
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
|
| |
|
|
|
|
|
|
|