View previous topic :: View next topic |
Author |
Message |
Ev3658
Joined: 30 Nov 2014 Posts: 32
|
Posted: Wed Nov 22, 2017 4:24 pm Post subject: Es gibt kein Register Tcf1_ovf in Xmega256A3 |
|
|
Hallo, ich schreibe über einen Dolmetscher.
In den Timern Xmega256A3 8 kann ich den Ereigniskanal für Interrupts über den Timer-Überlauf Tcf1_OVF nicht bestimmen.
In [INTLIST] ist er auch abwesend.
Config Event_system = Dummy , Mux1 = Tcf1_ovf - Kompiliert, aber es gibt keine Unterbrechung.
On Tcf1_ovf Pl1 - Kompiliert nicht, erzeugt einen Fehler.
Простите за перевод, во всё виноват translate.google.ru :roll:
(BASCOM-AVR version : 2.0.8.0 , Latest : 2.0.7.8 ) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Nov 22, 2017 5:07 pm Post subject: |
|
|
please write/translate to English.
There is no timer TCF1 in that micro. We will remove the references to TCF1.
So in short : it will not work since the resource is not available. _________________ Mark |
|
Back to top |
|
|
tomi
Joined: 22 Feb 2005 Posts: 155 Location: Universe
|
Posted: Wed Nov 22, 2017 9:36 pm Post subject: |
|
|
in attach you can find fixed dat file. _________________ Best regards,
/Tomi |
|
Back to top |
|
|
Sarek
Joined: 15 Oct 2009 Posts: 72
|
Posted: Thu Nov 23, 2017 1:48 pm Post subject: |
|
|
this is not a bug in dat-File
there is simply no TCF1 in XMEGA 256A3 !!
Please look inside data sheet! |
|
Back to top |
|
|
Ev3658
Joined: 30 Nov 2014 Posts: 32
|
Posted: Thu Nov 23, 2017 10:04 pm Post subject: |
|
|
Indeed, there are only seven timers.
Quote: | A wide range of interrupt or event sources are available, including T/C Overflow, Compare
match and Capture for each Compare/Capture channel in the T/C.
PORTC, PORTD and PORTE each has one Timer/Counter 0 and one Timer/Counter1. PORTF
has one Timer/Counter 0 |
I'm here not long ago, please tell me how to reset the counter on the index of quadrature decoding? (reset to zero on the 3 mark).
Code: | Config Pina.0 = Input 'A
Config Pina.1 = Input 'B
Config Pina.2 = Input 'Z
Config Xpin = Pina.0 , Sense = Rising
Config Xpin = Pina.1 , Sense = Rising '
Config Xpin = Pina.2 , Sense = Both
Config Event_system = Dummy , Mux0 = Porta.0 , Qd0 = Enabled , Qdi0 = Enabled , Qdirm0 = 2 , Digflt0 = 2
Config Tcc1 = Normal , Prescale = E0 , Event_source = E0 , Event_action = Qdec |
I want to go to zero by the Z signal, but there are no details in the documentation of Xmega.
And how can I organize a 32 bit two directional account of two timers? |
|
Back to top |
|
|
Sarek
Joined: 15 Oct 2009 Posts: 72
|
Posted: Fri Nov 24, 2017 9:28 am Post subject: |
|
|
you need a second Event
like this
Config Event_system = Dummy , Mux1 = Porta.2 , Digflt1 = 2
Read data sheet! |
|
Back to top |
|
|
Ev3658
Joined: 30 Nov 2014 Posts: 32
|
Posted: Fri Nov 24, 2017 10:04 am Post subject: |
|
|
Sarek wrote: | you need a second Event
... |
The problem is not to start the account, the problem is to reduce it and add it in the older timer.
QUAD----> ± Low Timer --EVENT- -> ± High Timer
I can not cause a (-) decrease in the second timer, only the (+) addition. (±) |
|
Back to top |
|
|
|