Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Es gibt kein Register Tcf1_ovf in Xmega256A3

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Ev3658

Bascom Member



Joined: 30 Nov 2014
Posts: 26

russia.gif
PostPosted: Wed Nov 22, 2017 4:24 pm    Post subject: Es gibt kein Register Tcf1_ovf in Xmega256A3 Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5236
Location: Holland

blank.gif
PostPosted: Wed Nov 22, 2017 5:07 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
tomi

Administrator



Joined: 22 Feb 2005
Posts: 155
Location: Universe

blank.gif
PostPosted: Wed Nov 22, 2017 9:36 pm    Post subject: Reply with quote

in attach you can find fixed dat file.
_________________
Best regards,
/Tomi
Back to top
View user's profile Visit poster's website
Sarek

Bascom Member



Joined: 15 Oct 2009
Posts: 51

germany.gif
PostPosted: Thu Nov 23, 2017 1:48 pm    Post subject: Reply with quote

this is not a bug in dat-File

there is simply no TCF1 in XMEGA 256A3 !!
Please look inside data sheet!
Back to top
View user's profile
Ev3658

Bascom Member



Joined: 30 Nov 2014
Posts: 26

russia.gif
PostPosted: Thu Nov 23, 2017 10:04 pm    Post subject: Reply with quote

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
View user's profile
Sarek

Bascom Member



Joined: 15 Oct 2009
Posts: 51

germany.gif
PostPosted: Fri Nov 24, 2017 9:28 am    Post subject: Reply with quote

you need a second Event
like this

Config Event_system = Dummy , Mux1 = Porta.2 , Digflt1 = 2

Read data sheet!
Back to top
View user's profile
Ev3658

Bascom Member



Joined: 30 Nov 2014
Posts: 26

russia.gif
PostPosted: Fri Nov 24, 2017 10:04 am    Post subject: Reply with quote

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. Crying or Very sad (±)
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum