easybee 3 example with interrupt

Here you can ask for specific code examples and discuss about it with other forum members.
Post Reply
Author
Message
eng.amira
Posts: 18
Joined: 23 Feb 2012 13:02

easybee 3 example with interrupt

#1 Post by eng.amira » 25 Apr 2012 11:53

please I'm using easybee3 example , and want to modify the receiver example to receive when interrupt pin (RB0/INT0) activated ,
but it seems to receive nothing :(\
I use pic18f452.
please help me , this my code .
Attachments
rx.rar
(1.5 KiB) Downloaded 214 times
tx.rar
(6.46 KiB) Downloaded 208 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: easybee 3 example with interrupt

#2 Post by filip » 26 Apr 2012 10:42

Hi,

Which development system are you using ?

Regards,
Filip.

eng.amira
Posts: 18
Joined: 23 Feb 2012 13:02

Re: easybee 3 example with interrupt

#3 Post by eng.amira » 26 Apr 2012 21:53

no I use it alone , with PIC 18f452 , and it worked well with the example without modification.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: easybee 3 example with interrupt

#4 Post by filip » 27 Apr 2012 11:50

Hi,

Try declaring the EasyBEE3 connection like this :

Code: Select all

// EasyBee3 connections
sbit CS at LATA0_bit;    //CS pin
sbit RST at LATA1_bit;   //RST pin
sbit INT at LATA2_bit;   //INT pin
sbit WAKE at LATA3_bit;  //WAKE pin

sbit CS_Direction at TRISA0_bit;     //CS pin direction
sbit RST_Direction at TRISA1_bit;    //RST pin direction
sbit INT_Direction at TRISA2_bit;    //INT pin direction
sbit WAKE_Direction at TRISA3_bit;   //WAKE pin direction
And disable comparators also :

Code: Select all

CMCON  |= 7;                     // Turn off comparators
Regards,
Filip.

Post Reply

Return to “Code Requests”