Quantcast
Channel: PIC24 Topics
Browsing all 3494 articles
Browse latest View live

I2C Header file for Explorer 16, Using MPLAB X IDE V3.60 & XC16 Compiler...

I'm using Explorer 16 Development board, and I'm following the text book "Programming 16-bit Microcontrollers". For I2C communication, the text suggests using the headers EX16.h and I2c.h, neither of...

View Article


PIC24EP512GU810 SOSC (yxj123)

How to disable PGED2 and PGEC2 in pin 73 and 74? I want to use pin 73 as SOSCI and pin 74 as SOSCO,the two pins are connected to the external 32.768K crystal...

View Article


UART code is not working for pic24fj64gc010, I am not getting data on serial...

U2BRG = 78 ; // // Baud Rate setting for 9600 U2MODEbits.UARTEN = 0; // UARTx is disabled U2MODEbits.USIDL = 0; // Continues module operation in Idle mode U2MODEbits.IREN = 0; // IrDA encoder and...

View Article

ADC on PIC24F16KM202 (nlomb)

I'm having trouble getting a reading using debugger on this microcontroller. I used MCC to set up ADC peripheral and I'm trying to read a single analog input. I stripped down the project to ONLY...

View Article

ADC on pic24fj64gc010 (kushalnandanwar)

what n represent in all ADC resistors ADLnCONH, ADLnCONL, ADLnSTAT, ADLnPTR, ADTBLn, ADTHnL...

View Article


PIC24 offcal adc calibration not working (picy2620)

Hi all, Did anyone of you tried calibrating the 12bit adc using the offcal bit inside AD1CON2 register?The 12bit adc datasheet says not much about it. See first attachment. When trying to get the adc...

View Article

When we start calibartion ADC get hang 24fj64gc010 (kushalnandanwar)

void adc_con_1_int(void){//ADCON1bits.ADON = 1; //Module is enabled ADCON1bits.PWRLVL = 0; //Low-Power mode; A/D clock rates from 1 MHz to 2.5 MHz are allowedADCON1bits.ADCAL = 0; // Initiates internal...

View Article

PIC24FJ1024GB610 unable to write second partition flash (lyersin)

Hi, I am using the PIC24FJ1024GB610 in dual partition mode. I am trying to write a bootloader for it. So far I was able to write in flash into the active partition (RTSP), but as soon as I try to write...

View Article


Can I use PIC24FJ64GC010 in debugging mode (kushalnandanwar)

Can I use PIC24FJ64GC010 in debugging mode..

View Article


PIC24FJ1024GB606 Flash Programming bootloader dual partition (michael.dale)

Hi I am currently writing a micro sdcard boot loader for this device, I have found a lot of info on writing to the flash but nothing seems to work here's a few things I have tried. I am working in dual...

View Article

Unable to get PWM output to work on PIC24F16KM102 (Goose)

I'm new to PIC controllers. I've successfully got the ADC to work and set up timer to toggle LED's. I even got pin 20 to output a s/w generated PWM but only at a few hundred Hz. However, I can not get...

View Article

How to do 32 bit input capture? (mdresser)

I'm trying to figure out if there is a good way to do 32 bit input capture operations with a PIC24HJ64502GP502. When timer 2 & 3 are configured as a 32 bit timer, does input capture trigger the...

View Article

PORTAbits.RA1 pin problem (kushalnandanwar)

PORTAbits.RA1 never go low, always remain high my controller working on 3.3V but pin showing 4.5V my controller is pic24fj256da210..

View Article


PIC24EP Microcontroller Bootloader Issue with MPLAB? (abhiarora4)

I am working on pic24EP bootloader. My bootloader has it's own packet format to communicate with a python script to update the firmware of the microcontroller. The bootloader resides at the first free...

View Article

PIC24FV32KA301 - cannot set LATB1 via LATBbits.LATB1 (HerBY)

Hi, I use the named device.My Problem:I cannot set the PIN B1 and LATBbits.LATB1 using the following code:TRISBbits.TRISB1 = 0;LATBbits.LATB1 = 1;This seems to be working for all ports except B1. But...

View Article


[GB610] MCCP outputs not available via PPS? (Stromlo)

Hi, I am trying to use the MCCP as a half-bridge output on a PIC24FJ1024GB610, but if I am reading the datasheet correctly I can't re-map the OCMxy pins . Is this correct? You can re-map the older...

View Article

Has anyone written an **ACTUAL** PIC24E program? (jim_hahn)

My friend and I have been working with the PIC24E ("E" as in Easy) starter kit for about a month. There have been enough speed bumps and roadblocks that I have to ask: Has ANYONE written an ACTUAL c...

View Article


PIC24 FOR CAN PROJECT (electronicsArtist)

Hello I am looking for a PIC24 micro-controller that supports DMA, CAN, and has built in RTC and comparator module for a projectAny suggestion?Thanks in advance..

View Article

PIC24EP512GU810 bootloader (DarioG)

I tried adapting the Serial Bootloader (used several times for PIC24FJ256GA/GB PICs) to this new PIC24E, and am facing some difficulties - the first one is that the PC software goes into an OVerflow...

View Article

itoa spritnf xc16 (zwakrim)

hello all, im using a pic24f16ka102 with mplab and i send som strings via uart. for the moment i use sprintf but i saw that it takes a lot of memory is there any other function to use ?or to change an...

View Article
Browsing all 3494 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>