Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Atmega162 USART interrupt

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

Bascom Member



Joined: 04 Jul 2006
Posts: 51

blank.gif
PostPosted: Sun Feb 28, 2016 8:50 pm    Post subject: Atmega162 USART interrupt Reply with quote

Hi,

Does anybody know why this interrupt "On UCSR0A.RXC0 Read_serial" gives me error message: "[Unknown interrupt UCSR0A.RXC0]"

for Atmega162 ?

Thanks

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile
i.dobson

Bascom Expert



Joined: 05 Jan 2006
Posts: 1570
Location: Basel, Switzerland

switzerland.gif
PostPosted: Sun Feb 28, 2016 9:05 pm    Post subject: Reply with quote

Hi,

Try
on URXC Read_serial0 - For Serial 0
on URXC1 Read_serial1 - For Serial 1

Don't forget to enable the Interrupt.


Regards
Ian Dobson

_________________
Walking on water and writing software to specification is easy if they're frozen.
Back to top
View user's profile
kulisek

Bascom Member



Joined: 04 Jul 2006
Posts: 51

blank.gif
PostPosted: Sun Feb 28, 2016 9:08 pm    Post subject: Reply with quote

It is OK now.
Back to top
View user's profile
i.dobson

Bascom Expert



Joined: 05 Jan 2006
Posts: 1570
Location: Basel, Switzerland

switzerland.gif
PostPosted: Mon Feb 29, 2016 7:12 am    Post subject: Reply with quote

Hi,

I don't know what you what to do with the ISR, but have a look in the help text for buffered Serial Input. That might also work for you.

Regards
Ian Dobson

_________________
Walking on water and writing software to specification is easy if they're frozen.
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