Forum - MCS Electronics
View previous topic :: View next topic
Author
Message
kulisek Joined: 04 Jul 2006 Posts: 51
Posted: Sun Feb 28, 2016 8:50 pm Post subject: Atmega162 USART interrupt
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
i.dobson Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
Posted: Sun Feb 28, 2016 9:05 pm Post subject:
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
kulisek Joined: 04 Jul 2006 Posts: 51
Posted: Sun Feb 28, 2016 9:08 pm Post subject:
It is OK now.
Back to top
i.dobson Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
Posted: Mon Feb 29, 2016 7:12 am Post subject:
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
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