PIC24FJ64GA705 - unable to set URXEN in U1STA (APF)
I've got a weird problem here:bset U1STA,#URXEN doesn't work. If I compile the code with XC16 V1.150 the correct code is generated, i.e. the program memory dump showsBSET 0x39B, #4 However, when I...
View ArticleUSB CDC and Flushing the Tx FIFO Buffer (chriskraz)
Hi Guys, I have been developing a USB device that's using the CDC MCC framework. The device interacts with a Python environment and generally works just fine. The PIC that's being used is a...
View Articlep24FJ64GB002 MPLAB C30 config 4MHZ (vtrx)
_CONFIG1(WDTPS_PS1 & FWPSA_PR32 & WINDIS_OFF & FWDTEN_OFF & ICS_PGx1 & GWRP_OFF & GCP_OFF & JTAGEN_OFF)_CONFIG2(POSCMOD_HS & I2C1SEL_PRI & IOL1WAY_OFF &...
View ArticleStrange error message: error: '_LATB4' undeclared (first use in this...
Hello,I have generate a Project with the MCC. But when I use port RB4 (which is available in pin_manager.h) I get the following error message: '_LATB4' undeclared (first use in this function)'.But RB3...
View ArticlePIC24FJ64GB106 ADC (JacobTowsley)
I am trying to set up a simple ADC but it is multiple inputs. I have 10 Analog inputs, using TMR 3 as the timing i want to create those 10 inputs to fill buffer BUF0 to BUF 9. void ADC1_Init(void) {...
View ArticleBlocking IO using MCC and PIC24 (fsonnichsen)
PIC24FJ128GA010 Product Version: MPLAB X IDE v5.30 I usually use interrupt driven IO but I have need to use blocking IO on this project. I set up the UART with MCC using no interrupt. I would assume...
View ArticleWhy does entering in Idle mode clear the WDT? (Maldus)
I use the WDT function to ensure my device is reactive no matter what, and in case of an unforeseen error it will not get stuck.To achieve this I usually need to keep track of two execution threads:...
View ArticleAccuracy of dsPIC33CK256MP508 Family internal oscillator (hansp)
Hi,I cannot find the accuracy of the internal Oscillator of the dsPIC33CK256MP508 Family in the data sheet. Anyone know? BR Peter..
View ArticleIRQ the strange word on stack (LdB_ECM)
I have been playing with a new RTOS concept but not being familiar with the history of PIC there is a strange thing it does that perplexes me. When the PIC24F takes an interrupt it places 2 words on...
View ArticleEZBL potential bug in merge.S can lead to bricking (dmeehan)
There appears to be a bug in EZBL (Easy Bootloader) that can lead to a device being bricked. Application code validity is signalled by the appInstalled member of EZBL_INSTALLED_FLAGS structure, which...
View ArticleSwitching power on AVdd (mpittman)
Hello, I'm using a PIC24FJ128GC010. I have two separate linear regulators for the analog and digital portions of my circuit. One reg will power the analog pins of my PIC and the other reg will power...
View ArticlePIC24FJ SPI variable data length issue (Mattie)
Hi all, I have spi set-up and working in normal mode . (2 byte mode).Now I'm trying to set up a 3-byte SPI transfer using the SPI1CON2Lbits.WLENGTH control bits . The clock is working ok but the issue...
View Articlecould I use the PIC24FJ256GB110 as on-board programmer/debugger IC ?...
Hi, I am using the PIC32MZ EF Starter Kit and I would like to design a PCB based on that board, I can see that it uses a PIC24FJ256GB110 IC to program and debug the PIC32MZ, so how could I use...
View ArticleUsing output compare as interrupt timebase? (AndersG)
I just have to ask as i cannot seem to wrap my head around this :) I need to create a bitbanged, interrupted UART that can do 15 bit data. I thought I'd set up two timebases, one for transmit and one...
View ArticleAudio mode on PIC24FJ64GA702 (Charlie E)
Has anyone actually used the audio mode on the SPI bus for this device, and gotten it to work? It seems to be a feature that no one (especially at Microchip) has ever actually used. Not familiar enough...
View ArticleClarification needed on BRG calculation (Maldus)
I am working on a PI24EP512GU810 and using its I2C2 module. The family reference manual (http://ww1.microchip.com/downloads/en/DeviceDoc/70000195g.pdf) shows the formula to calculate the value for the...
View ArticleTimer1 ISR Help (lukasnoller)
Hello all,I am currently trying to understand timer1 of my PIC24FJ128GC010 MCU by writing a simple test application. My aim is to simply have one of the LEDs be toggled every 2s with the timer. I think...
View ArticleI2C peripheral library "Does not build on this target" (Maldus)
Hello everyone,I'm starting a simple project on a PIC24FJ64GA702. The PIC is connected to a FTDI converter, receives some data from the UART and writes some stuff to an i2c EEPROM. Simple enough.I had...
View ArticleRCON register checking (mpittman)
Hello, Using a PIC24FJ128GC010 with XC16 compiler. In the past I've used the RCONx registers on bootup to determine what caused the reset (not a PIC24 though). In those cases it seemed necessary to...
View ArticleEZBL merge.S files contain invalid comments (dmeehan)
EZBL generates {CONF}_merge.S and {CONF}_merge.gld files to be complied and linked into the application project. The merge.S file contains the bootloader code and also includes an ASCII debug of the...
View Article