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

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 Article


USB 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 Article


p24FJ64GB002 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 Article

Strange 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 Article

PIC24FJ64GB106 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 Article


Blocking 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 Article

Why 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 Article

Accuracy 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 Article


IRQ 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 Article


EZBL 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 Article

Switching 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 Article

PIC24FJ 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 Article

could 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 Article


Using 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 Article

Audio 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 Article


Clarification 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 Article

Timer1 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 Article


I2C 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 Article

RCON 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 Article

EZBL 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
Browsing all 3494 articles
Browse latest View live


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