SDCARD (SPI) BOOTLOAD EZBL PIC24F (JeanMarc)
Hi EverybodyI need to use a bootloader for my design with a PIC24F and a SDCARD (using SPI protocole).When a firmware file is detected inside the sdcard I want to reset the CPU and to download it...
View ArticleLong var return from near and far functions. (markQ)
I observed a weird effect when I was calling the TickGet function in the Ethernet stack code where it was returning corrupted values. It should return a 32 bit unsigined tick value but I found that the...
View Article24F08KL302 LPRC running at MUCH lower freq than nominal 31kHz (ReverseEMF)
I'm using the Watchdog timer to periodically wake from sleep, and flash a "heartbeat" LED -- whereupon it goes back to sleep for an intended period of around 2100mS ...FWPSA set to 1:128WDTPS set to...
View ArticlePIC24 I2C Master to EERAM 47L16 with MCC ADDRERR trap (iprat)
Hi everyone: In my last project I've used a PIC24FJ128GA606 that has a 47L16 EERAM interfaced with an I2C. Project build with MPLAB X IDE 5.20, XC16 (1.36) optimization level 0, and using Foundation...
View ArticlePIC24F I2C Slave - second and following MASTER READ fail (xavierlegrand)
Hi all, I'm building a setup with I2C communication between a master (ESP32 chip) and multiple slaves (PIC24FJ256GA705, curiosity board). I simply have SDA/SCL/GND wired between ESP32 and a PIC24F with...
View ArticleRTCC wakeup from Low-Voltage Retention Sleep (Stepik)
Dear all, I'm using PIC24FJ64GA102 where I set up RTCC running on SOSC. I configured the RTCC to trigger an interrupt every minute. This works fine. However, the problem is when I put the micro into...
View ArticleUse of IIC on PIC24FJ64GA002 (MTSPIKE)
I'm trying to use IIC communication with the PIC24FJ64GA002. Specifically the intention is to use the PIC24FJ64GA002 as Master, and communicate with a TI TMP102 temperature sensor, then subsequently...
View ArticlePIC24FJ256GA702 Get in sleep mode : too much current (JLC_Microchip)
Hello,I spent many weeks trying to search the solution to set that PIC into sleep mode and get low current consumption (µA). I found many informations from several sources : Microchip developpers,...
View ArticleUART Communication Troubles (jack.fining)
Hi, I'm really new to microcontrollers and C in general, so please bear with me here. I'm just trying to set up a simple LED system to test the functionality of UART with the OS I'm working with . It...
View ArticleProblems with SPI master-slave communication (Maldus)
Hello everyone, I'm having quite some trouble with SPI master-slave communication between two PIC24EP256GP206. I'm sending a total of 10 bytes as a packed enclosed in a preamble + crc combination. The...
View ArticleProgramming a PIC24EPXXX with PicKit 2 (vra)
Hi all, it is possible to program a PIC24EPXXX with the old PicKit 2?..
View ArticleFractional and percentage value calculation PIC24 (elektor18)
Hi All, I need to calculate value for x coordinate but I don't really know how to do that.My rage is from 0 to 65535(max_width) and x = max_width * (actual_position/65535).Any suggestion how to get...
View ArticleAnother question about " return type of 'main' is not 'int' " (vra)
Hi all, how are you?. I'm just starting a project using a PIC24EP with XC16 compiler, when I add a main file by adding a new file feature of mplabx but the main pre-made file comes with this content:...
View ArticleProblem finding data about ODCx register (vra)
Hi all, how are you?. I'm trying to find data on the datasheet and the respective Reference manual of the PIC24EP512XXX and it seems impossible to find which ports has that functionality. If I see...
View ArticleFloating to Hex convertion (KMDN)
I want to transfer data from RS-485 to Ethernet converter, using RTU-Mobdus format. Can I use sprintf(Buffer2,"%X",ADCValue2_float2); to convert float value to HEX...
View ArticlePWM control on PIC24FJ256GB410 (dantheman)
Hi all, I'm taking a stab at creating some PWM code for LEDs on the PIC24FJ256GB410 on Explorer Board 16/32 (using MCC compiler). I've read all the family data sheets and schematics for both the PIC...
View ArticleCDC_BASIC PIC24fj1024GB610 on board ex16/32 (hichamrol)
Good Morning Guys , So my problem is i want to send and receive datas from the pic to my computer throught usb cable , i build and make project device "CDC_basic" Demo project MLA given by Microchip on...
View ArticlePIC24EP256GP204 RTSP problem (rafy)
Hi, I'm working on a boot loader for PIC24EP256GP204. I was testing the erasing and writing to some portion of flash(which I would be using as application space) and observed some portion of flash...
View ArticleSPI SCK doesn't seem to outputting anything, problem with my setup?...
I am using PIC24FJ64GA002. Trying to setup SPI communication with an external ADC, MAX11202 (required that it be external for school project). My code compiles and flashes to PIC just fine, but using...
View Article