Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

XMEGA Timer and Port Config

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
enniom

Bascom Member



Joined: 20 Oct 2009
Posts: 486

PostPosted: Mon Oct 06, 2014 1:31 am    Post subject: XMEGA Timer and Port Config Reply with quote

Hello,

I'm in the midst of developing an small application and do not have a way to test the question below:

Imagine the first Timer in PORTE is defined as a timer with an ISR:
Code:
Config Tce0 = Normal , Prescale = 1024 , Resolution = Normal
Tce0_per = &H1E                                             ' period register
On Tce0_ovf Wait_timer_isr

Enable Tce0_ovf , Lo
 

Question: can PORTE.0 (or the other PORTs E1..E3 associated with this Timer) be configured as INPUT or OUTPUT?
For example:
Code:
Config PortE.0 =Output
PortE.0 = 1
 


(BASCOM-AVR version : 2.0.7.7 )
Back to top
View user's profile
Tiny

Bascom Member



Joined: 10 Nov 2010
Posts: 92
Location: The Netherlands

netherlands.gif
PostPosted: Mon Oct 06, 2014 5:59 am    Post subject: Reply with quote

dear enniom

Yes you can use de i/o pin on porte for example general i/o

regards Tiny
Back to top
View user's profile Visit poster's website
enniom

Bascom Member



Joined: 20 Oct 2009
Posts: 486

PostPosted: Mon Oct 06, 2014 11:29 am    Post subject: Reply with quote

Thanks tiny for your help.
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive 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