Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi,
I am trying to get the external interrupt (using external interrupt 3 ) code to work on my pic24fj64ga006. I can see the pin going low but not triggering the interrupt.
Is enabling the interrupt and setting priority enough for the interrupt to work ?
Please find the attached code...
Hi ,
We are using PIC24FJ64GA006 to read RAENERGY and AENERGY registers of ADE7763 using SPI . When we are reading AENERGY register followed by RAENERGY register we are observing that both the registers are giving the same value. But while changing the order of the registers ( RAENERGY followed...
Hi Okada,
I have tested UART connection between PIC and PC and it is working fine. But when tested with LORA module it is giving "err" message at the receiver pin.
Thanks
Hi ,
I am using the uart code shown below to connect between PIC24FJ64GA006 and LORA(RN2903) transmitting the command "sys get ver" to get the device version .Probing the transmitter pin of LORA , we are getting the command .But in the receiver pin , we are getting "err" when the LORA module...
Hi,
I have to communicate between PIC24FJ64GA006 and LORA module using UART .In the UART code to communicate between PIC and PC ,do I have to do the initialisation setting for LORA or else can I use the UART code as itself ?
Could someone please give suggestions on this?
Thanks
Hi Susan,
The default value of the register is 00 .We are getting values 00 05 2c and 05 and 2c are changing everytime.
Please find the code below.
unsigned short spiBufT[]={0x16,0x3e,0x0d,0}; // for demo only
void SPI2Init(void)
{
//config SPI1
SPI2STATbits.SPIEN = 0; // disable...
Hi Susan,
Apologies for the misunderstanding. We are connecting PIC to PC and now changed the value FCY=Fosc/2=16MHz and sending the character 'a' .Now getting the value 'a' in the serial terminal.
Thanks
Hi ,
I am trying to read 24 bit register by setting the PIC in 8 bit mode in the SPI code and sending 3 dummy variable to get 24 clock cycles .But I am getting different values everytime at the output. Could anyone suggest the correct way to read 24 bit registers ?
Thanks
Hi Susan,
I tried the following settings.
Changed _CONFIG2( FNOSC_PRIPLL) to _CONFIG2( FNOSC_FRCPLL)
Added CLKDIVbits.RCDIV =0
Tried with the POSCMOD values with XT and NONE.
But we are getting the following screenshot .
Please find the attached screenshot...
Hi all,
I have a PIC32MX695F512H running MLA_v2013-06-15. I have modified it to communicate with my desktop app.
I am able to communicate with my app provided the app initiates the communication. How can I change the DiscoveryTask() so that my PIC32 sends a command to the desktop...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.