Define virtual port similar to PORTA (Farving)
Hi All, I'm working on a school project and going to build a control system to levitate an object through magnetism. From previous work I have a Bit to current converter which has a resolution of...
View ArticleUSB CDC Driver - Code 10 in some cases (eshaulx)
I am using PIC24 with USB CDC firmware. Connection to PC and driver installation works great in some cases: -Using USB hub -Connecting directly to PC back USB sockets. Connection fails in some cases...
View ArticleAddress Trap interrupt vector not processed (VolT)
PIC24F16KA102 MPLAB IDE 8.87 MPLAB ICD 3, Release Code All data mentioned below are extracted from an external EEPROM. Code uses WDT, and Sleep, things that are not easy to simulate for sustained...
View ArticlePic24 MSSP for I2C Master. (dkemppai)
Hi all, Been battling a MSSP problem with I2C master configuration on a PIC24F16KL402. I have working code, and am able to send data down the I2C port, to a I2C device. However, when I try to increase...
View ArticleDoes this really exist? (914paul)
On page 306 of this document: http://ww1.microchip.com/...oc/30003030b.pdf is says the device is available in a QFN20 package measuring 4x4x0.9mm. Am I looking at a un
View ArticleMCP2004 - Trying to read LINBUS signal (indiocochino)
Hi all, I am trying to read LIN signal from a steering wheel through a MCP2004 connected to an ARDUINO MEGA2560. The problem is that when I try to read the bytes sent to the RX port I don´t have a...
View ArticleHow do you use extended pointers? (Kentj)
I have seen other posts asking this question but they have not been answered yet. This was not the subject but ended up in the body. I have hundreds of compiler errors that say (variable) "may require...
View ArticleAN1157 Bootloader - Linker Errors on PIC24FJ128GA310 (Jack.P)
Hi Guys, I am in the process of adding a bootloader to an existing project using a PIC24FJ128GA310. I am using the AN1157 demo linker files (for a pic24fj128ga010) and adapting these to suit the GA310...
View ArticleReading ADCs on a PIC24FJ32GB002 (machetebath)
HI all, I'm having issues reading values from an ADC on a PIC24fjgb002. Here is what I'm using: unsigned int ReadADC(void) { unsigned int w; while(!AD1CON1bi
View ArticleInterrupt handling - PIC24HJ128GP202 (kumarlnt)
We are using PIC24HJ128GP202 in our design and in coding phase. Need help on coding. Scenario: Want to check the PWM signal width. The PWM we receive will be of only with either 20% or 85% duty cycle....
View Article[Solved] PIC24FJ48GA002 digital i/o pins (otti)
I'd like to use the PORTB pins RB6 - RB13 as digtial I/O for interfacing with a LCD. But it looks like RB8-RB12 aren't working as digital I/O. The pins RB0 - 2 and RB15 - 13 are working properly and...
View ArticlePIC24EP256MC202 QEI interface modulo mode interrupt (Skandar Graun)
I working with this controller, especially QEI interface, but the "Modulo Count mode for position counter" haven't any continue. Didn't find interrupts, status bits. The QEISTAT register bits not...
View ArticleBack from Application to Bootloader (mvollmer)
Hello folks, I've written an Bootloader which receives the program data via SPI. Because either - the program and the bootloader - uses interrupts i've decided to use the AIVT for the Bootloader and...
View ArticlePIC24HJ128GP202 - Input capture - PWM duty cycle measurement (kumarlnt)
Hi, Planning to use Input capture peripheral in PIC24HJ128GP202 for PWM duty cycle check. The incoming PWM shall be of 25% or 85% only. So, no much accuracy required in measurement. Initially planned...
View ArticlePIC24 Hex2bin problem (GuillaumeT)
Hi all, I have done a bootloader for my pic24fj256da210. The bootloader will copy the data in my serial external flash to the program memory of the PIC. I want to put binary data in my external flash....
View Articleclock problem: RESET instruction sometimes does not RESET successfully -...
Well, this is weird... A "RESET" instruction is issued to restart the chip. Sometimes, like 50%, works fine. The other times the chip appears hung and the few instructions to turn on an LED immediately...
View Articlemicrochip large code model bugs (chan1314)
Hi All, I got a function to read write flash, and it was working perfectly until recently code size getting bigger and gcc suggest me to use large code model due to PC relative branch out of range. I...
View ArticleOutput compare with 32-bit timer (cascade mode) (Hiro T)
I am having trouble getting the output compare module in 32-bit timer (cascade mode). I'd like to generate 2usec-width pulse by using Double Compare Single-shot mode. I can't generate the expected...
View Articlepic24f16ka102 with xbee in api mode (sunilnaidu)
I started to work on pic24f16ka102 with xbee series 2. on the transmitting side i am using pic24f with xbee end device in api mode, and rx side i am using aurdino with xbee coordinator in api mode.i am...
View ArticleBootloader For PIC24FJ64GA104 and for future generations... [:)] (mavropoulosg)
Hi all, This is a matter that has made me go almost crazy.... I am trying to make a bootloader for the PIC24FJ64GA104. I have read more than a dozen times the AN1157 and I have changed the files from...
View Article