interrupts in xmega128a1

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
mototest
Posts: 10
Joined: 22 Aug 2013 21:13

interrupts in xmega128a1

#1 Post by mototest » 07 Sep 2013 19:56

Hi

How enable falling or rising externall interrupt in xmega ?
in microC is below

Code: Select all

  PORTB_PIN0CTRL |= 1;              // Set External Interrupt on rising edge
but I don't know how it convert to microbasic, because in microbasic compiler show error

Thanks
Boguslaw

aCkO
Posts: 1119
Joined: 14 Feb 2011 04:07
Location: Bar, Montenegro

Re: interrupts in xmega128a1

#2 Post by aCkO » 07 Sep 2013 20:04

Code: Select all

PORTB_PIN0CTRL = PORTB_PIN0CTRL or 1
Regards

mototest
Posts: 10
Joined: 22 Aug 2013 21:13

Re: interrupts in xmega128a1

#3 Post by mototest » 07 Sep 2013 20:23

Thanks aCkO

Post Reply

Return to “mikroBasic PRO for AVR General”